1. Live migration needs shared storage. A practical minimum network
requirement would be a 100 MB network. The other setup related
requirements for migration are mentioned earlier in the chapter. So let us set
up a NFS server on our first Xen host for sharing storage. The domain that
we will be migrating will run off the shared storage space on the NFS server.
Chapter 6 shows you the steps needed for getting the NFS server installed
and working.
2. Edit /etc/exports and add the following line to export the storage directory:
# /xen-storage *(r,sync,no_root_squash)
3. Save the file and restart the NFS server. Add the NFS server to the services
on the server and set it up to start on reboot:
# service nfs startchkconfig nfs on
4. We need to set up the two Xen servers so they can use the NFS server exports
for storage. Add mount points on each of the two Xen servers to mount the
exported directory:
# mount palantir:/xen-storage
# mount boromir:/xen-storage
Migration
[ 118 ]
5. Modify the xend configuration file to allow live migration. Edit the /etc/
xen/xend-config.sxp file and ensure that the following two lines are not
commented out:
(xend-relocation-port 8002)
(xend-relocation-address '')
This will enable the Xen daemon to listen to and respond to requests for
live migration:
6. Follow the steps that we used in Chapter 6 for getting a Xen domain running
on a NFS server storage. Start up the guest domain on palantir. Use the
following configuration for the guest domain:
cat > /home/pchaganti/xen-images/ubuntu_feisty_nfs_domU.
Pages:
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111