[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Asistar srl Ivan Bolognani <bolognani@xxxxxxxxxx>
  • Date: Sat, 14 May 2011 14:30:21 +0200
  • Delivery-date: Sat, 14 May 2011 05:31:53 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcwSMrDAaeD6LIDNXESDu9+ogitm1Q==
  • Thread-topic: [Xen-users] migrate virtual machine to another server

My config file is:

******************
kernel         = 'hvmloader'
builder        = 'hvm'
memory         = 512
shadow_memory  = 8
name           = "bill"
device_model   = 'qemu-dm'
boot           = 'dc'
sdl            = 0
vnc            = 1
stdvga         = 0
vnclisten      = '192.168.0.181'
# vfb            = [
#                    'type=vnc,'
#                  'vncdisplay=1,'
#                  'vncpasswd=foo'
#                  ]
# http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=585
usbdevice      = "tablet"
# serial         = 'pty'

disk    = [
            'phy:/dev/europe_storage/bill-wdisk,hda,w',
          ]
vif         = [
                (
                  'type=ioemu,'
                  'ip=10.0.1.42,'
                  'bridge=eth1,'
                  'script=vif-bridge,'
                  'vifname=bill.0,'
                  'mac=00:16:3f:d5:f4:31'

                )
              ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'destroy'
****************





Il 14/05/11 14:25, "Joseph Glanville" <joseph.glanville@xxxxxxxxxxxxxx> ha
scritto:

> Hi,
> 
> Can you post the config file?
> 
> Joseph.
> 
> On 14 May 2011 21:59, Asistar srl Ivan Bolognani <bolognani@xxxxxxxxxx> wrote:
>> Good morning
>> 
>> I followed the instructions,
>> I moved the image with command dd,
>> I moved on server 2 file.cfg  and after on server 2 I typed xm create
>> file.cfg
>> 
>> but will not start anything
>> 
>> I must moved from server 1 to server 2  1 virtual machine wit windows 2003
>> and 2 virtual machine with debian
>> 
>> 
>> 
>> Il 13/05/11 17:55, "Joseph Glanville" <joseph.glanville@xxxxxxxxxxxxxx> ha
>> scritto:
>> 
>>> Hi,
>>> 
>>> If the devices are in /dev/mapper you are probably using LVM.
>>> You can use these commands to move the disks to server2 substituting
>>> in the names of the LVM logical volume names.
>>> 
>>> # 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
>>> 
>>> #create a new LV assuming the volume group is already setup
>>> lvcreate -n<lvname> -L<sizeofdisk> <vgname>
>>> 
>>> #copy the image onto the newly created lv
>>> dd if=/tmp/<vmname>.img of=/dev/mapper/<vgname>-<lvname>
>>> 
>>> You should now be able to start the VM with the same configuration
>>> file assuming networking etc is setup the same as server1.
>>> 
>>> Joseph.
>>> 
>>> 
>>> On 14 May 2011 01:38, Ivan Bolognani <bolognani@xxxxxxxxxx> wrote:
>>>> Good morning.
>>>> 
>>>> I have a question can you help me?
>>>> 
>>>> I must migrate a virtual machine from server1  to server2 but I do not know
>>>> where to start
>>>> 
>>>> files are all in / dev / mapper / but I do not understand how to move
>>>> 
>>>> Can you help me posting the procedure  to do to migrate the virtual server
>>>> 
>>>> Sorry for my english
>>>> Thanks
>>>> Ivan
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Xen-users mailing list
>>>> Xen-users@xxxxxxxxxxxxxxxxxxx
>>>> http://lists.xensource.com/xen-users
>>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>> 
> 
> 






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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.