Changes

Jump to: navigation, search

Migrating Xen domainU Guests Between Host Systems

4 bytes added, 16:23, 11 June 2008
Preparing the Xen Migration Environment
The first requirement for performing live migrations involves the creation of a Xen domainU guest to migrate. For the purposes of this tutorial, we will need a disk image based domainU guest environment installed in the ''/xen'' directory of a server. The steps required to create such a guest are outlined in detail in the chapter entitled [[Building a Xen Virtual Guest Filesystem on a Disk Image (Cloning Host System)]]. Throughout this tutorial we will also work on the assumption that the ''source host'' has an IP address of 192.168.2.20 and the ''target host'' has an IP address of 192.168.2.21.
Once the domainU guest has been created the server needs to be configured to allow the ''/xen'' sub-directory on the source host to be mounted via NFS on the target host. On Linux systems this typically involves adding an entry to the ''/etc/exports'' file. As an example, the following entry enables the target host (IP addess address 192.168.2.21) to mount the ''/xen'' file directory located on the source host (192.168.2.20) via NFS:
<pre>
</pre>
Of particular importance in the above configuration is the ''no_root_squash'' which allows the target host to write to the ''/xen'' directory via NFS as ''super-user'', a key requirement for performing the live migration. Once the ''/etc/exports'' file has been modified the change needs to be exported using the ''exportfs-a'' command:
<pre>
exportfs -a
</pre>
1,798
edits

Navigation menu