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 virtual machine to another server

To: Joseph Glanville <joseph.glanville@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] migrate virtual machine to another server
From: John Madden <jmadden@xxxxxxxxxxx>
Date: Fri, 13 May 2011 11:59:03 -0400
Cc: Ivan Bolognani <bolognani@xxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 13 May 2011 09:01:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTi=fP4tODMjxfdMb4ykP_-hDvoEd+g@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <C9F31CFA.2872%bolognani@xxxxxxxxxx> <BANLkTi=fP4tODMjxfdMb4ykP_-hDvoEd+g@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
# 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@xxxxxxxxxxx

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