Specifications

Appendix B. Lab 2
Live Migration
Goal: To configure and perform a live migration between two hosts.
Prerequisite: Two workstations installed with Red Hat Enterprise Linux 5.0 Beta 2 with
Virtualization Platform, and a Fedora Core 6 Xen guest on one of the two workstations.
For this lab, you will configure the migration and execute a live migration between two hosts.
Introduction: Before you begin
For this lab, you will need two Virtualization hosts: a Xen guest and a shared storage. You must
connect the two Virtualization hosts via a UTP cable. One of the Virtualization hosts exports a
shared storage via NFS. You must configure both of the Virtualization hosts so they migrate
successfully. The Xen guest resides on the shared storage. On the Xen guest, you should
install a streaming server. You must make sure that the streaming server still runs without any
interruptions on the Xen guest, so the live migration takes place between one Virtualization host
and the other. For Lab 2, you will refer the two Virtualization hosts as host1 and host2 .
Sequence 1: Configuring xend (both Xen hosts)
In this Lab procedure, you configure xend to start up as a HTTP server and a relocation server.
The xend daemon does not initiate the HTTP server by default. It starts the UNIX domain socket
management server (for xm) and communicates with xend. To enable cross-machine live
migration, you must configure it to support live migration:
1. To make a backup of your xend-config.sxp file:
cp -pr /etc/xen/xend-config.sxp /etc/xen/xend-config.sxp.default
2. Edit /etc/xen/xend-config.sxp and make the following changes:
#(xend-unix-server yes)(xend-relocation-server
yes)(xend-relocation-port 8002)(xend-relocation-address
'')(xend-relocation-hosts-allow '')#(xend-relocation-hosts-allow
'^localhost$
^localhost\\.localdomain$')
111