A fast and practical guide to supporting multiple operating systems with the Xen hypervisor
About This Book
Installing and configuring Xen
Managing and administering Xen servers and virtual machines
Setting up networking, storage, and encryption
Backup and migration
Who This Book Is For
This book is for Linux administrators who want to use Xen virtualization for development, testing, virtual hosting, or operating systems training.
What You Will Learn
Getting started with virtualization and Xen
Installing Xen from pre-built packages using yum
Installing and compile Xen from source
Running guest domains under Xen:
Create Ubuntu guest domain using debootstrap
Create NetBSD domain using install image
Create a Centos image using Qemu
Create Slackware domain using domU image from jailtime
Managing remote Xen instances using:
Xen manager (xm)
Configuring Xen for networking
Connecting domains using:
Bridged networking uses network bridge and hardware MAC addresses
Routed networking uses Dom0 for all traffic
Implementing storage solutions for guest domains:
Using Filesâ€”file based; perfect for testing
Using Network File Systems (NFS) works with remote NFS server
Using Logical Volume Management (LVM) for enterprise-grade storage
Securing your domain by encrypting root file systems
Plain device mapper-based encryption
Key-based device mapper encryption using LUKS
Migrating live domains from one server to another
Saving and restoring a domain
Trends and forthcoming advances in the Xen world:
libvirt to simplify access to virtualization domains in a vendor/hypervisor-independent way
VMcasting for transferring virtual machine images from the server to the client using RSS 2.0
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â€”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.
Xen was originally developed in 2003 at the http://www.cl.cam.ac.uk/research/srg/netos/xen/ University of Cambridge Computer Laboratory 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.
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.
Style and approach
Each chapter is a collection of practical tasks that demonstrate how to achieve common virtualization tasks ou then learn how it works so that you can apply this knowledge to your Xen installation and environment.
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.