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)

Xen Management User Interface—xm


xm is a management tool that communicates with the Xen hypervisor through xend—the Xen daemon. Running xm commands requires administrative privileges on the system as it uses the privileged communication channel between xend and the Hypervisor. xm is also designed to perform its functions in an asynchronous way.

Executing an xm command will immediately return to the caller, but the actual operation may not be complete. Some of the domain commands may actually take quite a long time to complete. The only way to determine whether the command is successfully completed is to print out the list periodically and check it. The two most fundamental operations that we use xm for are to create a domain and to list the state of all the domains in the current Xen environment. The state field in the list of domains has one of the five possible states for a domain:

  • r—running: Lists domains currently active on a CPU.

  • b—blocked: Lists domains that are...