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

Joseph Glanville
Fri, 13 May 2011 17:33:29 -0000

I was trying to make it simple but yes that is a much better option. :)

Joseph.

On 14 May 2011 01:59, John Madden <jmadden@ivytech.edu>
wrote:
>> # 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
>



--
Kind regards,
Joseph.
Founder | Director
Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56
99 52 | Mobile: 0428 754 846