Re: [Xen-users] migrate virtual machine to another server

John Madden
Fri, 13 May 2011 15:59:03 -0000

> # copy the LV to an image file
> dd if=/dev/mapper/<vgname>-<lvname>  of=/tmp/<vmname>.img
bs=1M
>
> #transfer the image file
> scp<user>@server2:/tmp/<vmname>.img

Tsk, tsk.  Do it in one step:

dd if=/dev/mapper/srcdisk bs=1M | ssh root@targetserver "dd
of=/dev/lvm/tgtdisk bs=1M"

=)





--
John Madden
Sr UNIX Systems Engineer / Office of Technology
Ivy Tech Community College of Indiana
jmadden@ivytech.edu