cfg <<
"EOF"
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 256
name = "ubuntu_feisty_nfs_domU"
vif = [ 'ip=192.168.1.111' ]
nfs_server = '192.168.1.67'
nfs_root = '/xen-storage'
root = '/dev/nfs'
EOF
7. Now we have a guest domain running on palantir that is using the NFS
exported directory for storage. You can check whether the domains are
running correctly by using the xm command on palantir.
8. We will live migrate this guest domain to the boromir server. This will
take several minutes before completion. If the migration fails to complete
successfully, a message indicating the failure on the console will be shown.
# xm migrate --live ubuntu_feisty_nfs_domU boromir
9. That's all it takes to migrate a live running domain to another Xen server! If
you use the xm command to list the running domains on both palantir and
boromir servers, you will see that the migrated domain now only appears on
the boromir server and is no longer displayed in the list of running domains
on the palantir server.
Chapter 8
[ 119 ]
What Just Happened?
Live migration is the movement of a virtual machine from one physical host to
another while continuously powered-up. This process takes place without any
noticeable effect by the end user and allows an administrator to take the physical
server offline for maintenance or upgrading without subjecting the users that are
using the virtual machines to downtime.
We modified the default xend configuration file in order to enable relocation of
domains.
Pages:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112