Xen Virtualization

Xen Virtualization
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
save 44%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters


  • Installing and configuring Xen
  • Managing and administering Xen servers and virtual machines
  • Setting up networking, storage, and encryption
  • Backup and migration


Book Details

Language : English
Paperback : 148 pages [ 235mm x 191mm ]
Release Date : December 2007
ISBN : 1847192483
ISBN 13 : 9781847192486
Author(s) : Prabhakar Chaganti
Topics and Technologies : All Books, Virtualization and Cloud, Architecture & Analysis, Linux Servers, Open Source, Virtualisation

Table of Contents

Chapter 1: Introduction
Chapter 2: Running Xen
Chapter 3: Creating Virtual Machines
Chapter 4: Managing Xen
Chapter 5: Networking
Chapter 6: Storage
Chapter 7: Encryption
Chapter 8: Migration
Chapter 9: Xen Future
  • Chapter 2: Running Xen
    • Installing Xen from Binary Packages
      • Time for Action—Installing Xen with yum
    • Installing Xen from Source
      • Time for Action—Compile Xen
    • Summary
  • Chapter 3: Creating Virtual Machines
    • A Plan for Creating Xen Domains
    • Physical Address Extension
    • Compiling a domU Kernel
    • Xen Domain Memory
    • Pygrub
    • Ubuntu Feisty
      • Time for Action—Bootstrapping an Ubuntu System
    • NetBSD
      • Time for Action—Install NetBSD
    • CentOS
      • Time for Action—Using qemu to Create a CentOS Image
    • Slackware
      • Time for Action—Utilize Xen Images from jailtime.org
    • Summary
  • Chapter 4: Managing Xen
    • Xen Domain Configuration Files
    • Xen Management User Interface—xm
      • Time for Action—Xen Manager
    • XenMan— Installing and Running
      • Time for Action—Install and Run XenMan
    • Virtual Machine Manager
      • Time for Action—Running virt-manager
    • Summary
  • Chapter 5: Networking
    • Bridged Networking
      • Time for Action—Using Bridged Networking
    • Routed Networking
      • Time for Action—Using Routed Networking
    • Virtual Local Network with Network Address Translation
      • Time for Action—Using VLAN with NAT
    • Summary
  • Chapter 6: Storage
    • Files
    • NFS
      • Time for Action—Using NFS
    • Logical Volume Management
      • Time for Action—Using LVM
    • Advanced Storage Options
      • Redundant Array of Independent/Inexpensive Drives
      • Global Network Block Device
    • Summary
  • Chapter 7: Encryption
    • Device Mapper-Based Encryption
      • Time for Action—Encrypting Block Devices
    • Device Mapper-Based Encryption Using LUKS
      • Time for Action—by Extending dm-crypt
    • Summary
  • Chapter 8: Migration
    • Migration Requirements
    • Saving and Restoring a Domain
      • Time for Action—Migrate Domains on your Xen Server
    • Live Migration
      • Time for Action—Relocation of an Active Running domain
    • Summary

Prabhakar Chaganti

Prabhakar Chaganti is the founder and CTO of Ylastic, a start-up that is building a single unified interface to architect, manage, and monitor a user's entire AWS Cloud computing environment: EC2, S3, RDS, AutoScaling, ELB, Cloudwatch, SQS, and SimpleDB. He is the author of Xen Virtualization and GWT Java AJAX Programming, and is also the winner of the community choice award for the most innovative virtual appliance in the VMware Global Virtual Appliance Challenge. He hangs out on Twitter as @pchaganti.

Read about his tips on time management...

Sorry, we don't have any reviews for this title yet.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 5 submitted: last submission 06 Jan 2012

Errata type: code | Page number: 34

Extra space in the mount command in step 9 :
# mount -o loop /home/pchaganti/xen-images/ubuntu_feisty_domU.img/
home/pchaganti /xen-mounts/ubuntu_feisty_domU
It should read:
# mount -o loop /home/pchaganti/xen-images/ubuntu_feisty_domU.img/home/pchaganti


Errata type: code | Page number: 38

Extra space in the mount command:
mount -o loop /home/pchaganti/xen-images/ubuntu_feisty_domU.img
/ home/pchaganti /xen-mounts/ubuntu_feisty_domU
It should read:
mount -o loop /home/pchaganti/xen-images/ubuntu_feisty_domU.img/


Errata type: code | Page number: 39

Two extra spaces in the line:
xm create /home/pchaganti/xen-images/ ubuntu_feisty_domU .cfg -c
It should read:
xm create /home/pchaganti/xen-images/ubuntu_feisty_domU.cfg -c


Errata type: Technical issue | Page number: 57

The code in point 2,under "Time for Action—Xen Manager" reads:
# xm list Domain-0 –long.
It should read:
# xm list --long Domain-0


Errata type: Technical issue | Page number: 58

The code in point 3,under "Time for Action—Xen Manager" reads:
# xm list –-long centos-domU.
It should read:
# xm list --long ubuntu_feisty_domU


Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Xen Virtualization +    Mastering Web Application Development with AngularJS =
50% Off
the second eBook
Price for both: $34.95

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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)
  • XenMan
  • Virt-manager
  • 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

In Detail

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 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.



A practical, solution focused book for attaining Xen nirvana


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.

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software