How to move a virtual machine from one computer to another
#create a snapshot of the LV drive /usr/sbin/lvcreate -L5G -s -n vm_test_snap /dev/VolGroup00/vm_test #turn the snapshop into a file image dd if=/dev/VolGroup00/vm_test_snap | gzip -9 >/backup/vm_test.dd.gz #remove the snapshot /usr/sbin/lvremove /dev/VolGroup00/vm_test_snap #move the file image #copy and modify the Xen config file cp /etc/xen/test /etc/zen/test2 vi /etc/zen/test2 #change the name of the LV drive to vm_test2 #uncompress the file image into a LV drive /usr/sbin/lvcreate -n vm_test2 --size 5G VolGroup00 gzip -dc /backup/vm_test.dd.gz | dd of=/dev/VolGroup00/vm_test2 #start the new VM /usr/sbin/xm create -c test2
Источник: http://quadruple.ca/how-move-virtual-machine-one-computer-another