WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Migrate a domU

Yes i can stop domUs but i don't know about dd over ssh :(
Is anyone has examples of this command ?

do it like this (change values of "if" and "remotehost" and "of"):

dd if =/dev/hdb3 | ssh remotehost dd of=/home/xen/domU.disk


or use tar + ssh:

Create and mount your domU image on the target server.

Create a file /tmp/exclude-list and specify all directories you don't want to copy over, e.g. /dev, /proc, /sys ...
Then do

cd /
tar –c -z --numeric-owner –X /tmp/exclude-list –f - * |
ssh remotehost “cd /mnt; tar –x –z- -p –f –“


Bye,
Andrej

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>