This book covers Xenâ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âLinux, FreeBSD, Windows, and NetBSD. It was originally developed in 2003 at the University of Cambridge Computer Laboratory and now both commercial and free versions of the Xen hypervisor are available. The commercial versions are built on top of the open-source version and have additional enterprise features. In this book we explore and use the open-source version of Xen.
Each chapter in this book is a collection of practical tasks that demonstrates how to achieve common virtualization tasksâyou then learn how it works so that you can apply this knowledge to your Xen installation and environment.
Chapter 1 introduces the world of Xen and virtualization. It discusses the concepts and advantages of using Xen.
Chapter 2 walks us through the installation of Xen on a Fedora Core system. It discusses installation using yum and also installation by compiling from source.
Chapter 3 creates virtual machines or Xen guest domains that run on top of our Fedora Core system. Ubuntu Feisty, NetBSD, CentOS, and Slackware domains are created.
Chapter 4 explores the management tools available for administering Xen instances. It shows how to install and use xm, XenMan, and virt-manager.
Chapter 5 examines some of the networking options that are available when using Xen and walks through both bridged and routed networking configurations for connecting guest domains to each other as well as to the outside world.
Chapter 6 walks us through some of the storage options that can be used for storing Xen domains. Storage systems such as the file system, Network File System (NFS), and Logical Volume Management (LVM) are discussed.
Chapter 7 shows how to secure Xen domains by encrypting the root file systems. The two techniques covered are plain device mapper-based encryption and key-based encryption using LUKS.
Chapter 8 introduces the options available for the migration of Xen instances. We will save and restore domains, and explore live migration. We will also look at what happens behind the scenes when Xen performs a live migration of a domain.
Chapter 9 talks about some of the newer ideas based on Xen such as libvirtâa virtualization API for interacting with multiple virtualization implementations, and VMCastingâan RSS based technology that can automate the deployment of Xen images using the RSS 2.0 format.
Chapter 1 introduces the world of Xen and virtualization. It discusses the concepts and advantages of using Xen.
Chapter 2 walks us through the installation of Xen on a Fedora Core system. It discusses installation using yum and also installation by compiling from source.
Chapter 3 creates virtual machines or Xen guest domains that run on top of our Fedora Core system. Ubuntu Feisty, NetBSD, CentOS, and Slackware domains are created.
Chapter 4 explores the management tools available for administering Xen instances. It shows how to install and use xm, XenMan, and virt-manager.
Chapter 5 examines some of the networking options that are available when using Xen and walks through both bridged and routed networking configurations for connecting guest domains to each other as well as to the outside world.
Chapter 6 walks us through some of the storage options that can be used for storing Xen domains. Storage systems such as the file system, Network File System (NFS), and Logical Volume Management (LVM) are discussed.
Chapter 7 shows how to secure Xen domains by encrypting the root file systems. The two techniques covered are plain device mapper-based encryption and key-based encryption using LUKS.
Chapter 8 introduces the options available for the migration of Xen instances. We will save and restore domains, and explore live migration. We will also look at what happens behind the scenes when Xen performs a live migration of a domain.
Chapter 9 talks about some of the newer ideas based on Xen such as libvirtâa virtualization API for interacting with multiple virtualization implementations, and VMCastingâan RSS based technology that can automate the deployment of Xen images using the RSS 2.0 format.
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
There are three styles for code. Code words in text are shown as follows: "Create a directory named xen-images
. We will create all our guest images in this directory."
A block of code will be set as follows:
<?xml version="1.0" ?><appliance> <name xml:lang="en">
Any command-line input and output is written as follows:
~ make linux-2.6-xenU-config
New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "clicking the Next button moves you to the next screen".
Note
Tips and tricks appear like this.
Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.
To send us general feedback, simply drop an email to< [email protected]>
, making sure to mention the book title in the subject of your message.
If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email< [email protected]>
.
If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
Although we have taken every care to ensure the accuracy of our contents, mistakes do happen. If you find a mistake in one of our booksâmaybe a mistake in text or codeâwe would be grateful if you would report this to us. By doing this you can save other readers from frustration, and help to improve subsequent versions of this book. If you find any errata, report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the Submit Errata link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.
You can contact us at< [email protected]>
if you are having a problem with some aspect of the book, and we will do our best to address it.