Book Image

Xen Virtualization

By : Prabhakar Chaganti
Book Image

Xen Virtualization

By: Prabhakar Chaganti

Overview of this book

<p><br />Xen is an open-source paravirtualization technology that provides a platform for running multiple operating systems on one physical hardware resource, while providing close to native performance. Xen supports several operating systems&acirc;&euro;&rdquo;Linux, FreeBSD, Windows, and NetBSD. It enables you to easily test, deploy and run your software and services on multiple operating systems with resource isolation and great performance. It is also a terrific way to consolidate your servers, save hardware and maintenance costs, and minimize downtime. Xen is one of the most popular open source projects in the world and vendors like IBM, Sun, HP, RedHat and Novell are working on integrating Xen into their Linux servers.<br /><br />Xen was originally developed in 2003 at the <a href="http://www.cl.cam.ac.uk/research/srg/netos/xen/">University of Cambridge Computer Laboratory</a> and we now have both commercial and free versions of the Xen hypervisor. The commercial versions are built on top of the open-source version with additional enterprise features. In this book we explore and use the open-source version of Xen.<br /><br />This concise handbook is ideal for professionals who want a user-friendly reference beside them while they get working with Xen and virtualization. Its easy-to-navigate content offers bite-sized walkthroughs for a wide variety of common virtualization tasks using Xen. We use Fedora Core as the host operating system in this book. The book shows you how to add Xen support to it, leads you through the creation of guest domains running different operating systems and follows up by dissecting a range of common virtualization tasks.</p> <p>&nbsp;</p> <p>&nbsp;</p>
Table of Contents (14 chapters)

Files


Simple files can be used as virtual block devices containing Xen domains. This is the quickest way to get started using Xen. We used them in Chapter 3when we were setting up various operating systems to run as Xen guest domains. In Chapter 3 in the Time for Action—Bootstrapping an Ubuntu system we created the files that hold are guest domain and then installed Ubuntu on them.

We created the files for holding the guest domain and then installed Ubuntu to them in Chapter 3.

File-backed virtual block devices are a convenient way to get started with Xen. We use the venerable dd command to create the file that will be used to store our image. Doing this ensures that the file will be sparse, and space will be allocated only as parts of the file are used, not up front when the file is created.

Although files are a simple and quick way of storing VMs, there are some disadvantages of using files as virtual block devices:

  • They are not suitable for I/O-intensive uses, as they experience some...