[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 15:15:44 +0200
  • Delivery-date: Sat, 14 May 2011 06:17:33 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcwSOQfJt+7SwbfGIEqMGN/8jvZeow==
  • Thread-topic: [Xen-users] migrate virtual machine to another server

i write xm create bill.cfg
the domain i started and in the comand line i read:
xm create  bill.cfg
Using config file "./bill.cfg".
Started domain bill

after this i write xm list and i have this outpot:
omain-0         0       256     1     r----- 211270.5
IR3UNI          17      768     1     -b----   6346.7
macaion         20      768     1     -b---- 288823.8
ariete          5       128     1     -b----   7855.1
backup          14      512     1     -b----   6502.5
company         7       256     1     -b----  43803.1
bill            10      512     1     ------      0.0
                                      ^^^^^^


in the xend.log i have

2011-05-14 15:08:04 2669] DEBUG (XendDomainInfo:1618)
XendDomainInfo.constructDomain
[2011-05-14 15:08:04 2669] DEBUG (balloon:132) Balloon: 280304 KiB free;
need 2048; done.
[2011-05-14 15:08:04 2669] DEBUG (XendDomain:443) Adding Domain: 12
[2011-05-14 15:08:04 2669] DEBUG (XendDomainInfo:1703)
XendDomainInfo.initDomain: 12 256
[2011-05-14 15:08:04 2669] DEBUG (image:234) No VNC passwd configured for
vfb access
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: boot, val: dc
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: fda, val: None
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: fdb, val: None
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: soundhw, val: None
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: localtime, val: 0
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: serial, val: None
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: std-vga, val: 0
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: isa, val: 0
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: acpi, val: 1
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: usb, val: 0
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: usbdevice, val: tablet
[2011-05-14 15:08:04 2669] DEBUG (image:476) args: pci, val: []
[2011-05-14 15:08:04 2669] DEBUG (XendDomainInfo:1738)
_initDomain:shadow_memory=0x8, memory_static_max=0x10000000,
memory_static_min=0x0.
[2011-05-14 15:08:04 2669] DEBUG (balloon:132) Balloon: 279012 KiB free;
need 278528; done.
[2011-05-14 15:08:04 2669] INFO (image:139) buildDomain os=hvm dom=12
vcpus=1
[2011-05-14 15:08:04 2669] DEBUG (image:523) domid          = 12
[2011-05-14 15:08:04 2669] DEBUG (image:524) image          =
/usr/lib/xen-3.2-1/boot/hvmloader
[2011-05-14 15:08:04 2669] DEBUG (image:525) store_evtchn   = 2
[2011-05-14 15:08:04 2669] DEBUG (image:526) memsize        = 256
[2011-05-14 15:08:04 2669] DEBUG (image:527) vcpus          = 1
[2011-05-14 15:08:04 2669] DEBUG (image:528) acpi           = 1
[2011-05-14 15:08:04 2669] DEBUG (image:529) apic           = 1
[2011-05-14 15:08:04 2669] INFO (XendDomainInfo:1514) createDevice:
[2011-05-14 15:08:05 2669] DEBUG (XendDomainInfo:1092)
XendDomainInfo.handleShutdownWatch
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
vif.
[2011-05-14 15:08:05 2669] DEBUG (DevController:156) Waiting for 0.
[2011-05-14 15:08:05 2669] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vif/12/0/hotplug-status.
[2011-05-14 15:08:05 2669] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vif/12/0/hotplug-status.
[2011-05-14 15:08:05 2669] DEBUG (DevController:609) hotplugStatusCallback
1.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
vbd.
[2011-05-14 15:08:05 2669] DEBUG (DevController:156) Waiting for 768.
[2011-05-14 15:08:05 2669] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vbd/12/768/hotplug-status.
[2011-05-14 15:08:05 2669] DEBUG (DevController:595) hotplugStatusCallback
/local/domain/0/backend/vbd/12/768/hotplug-status.
[2011-05-14 15:08:05 2669] DEBUG (DevController:609) hotplugStatusCallback
1.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
irq.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
vkbd.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
vfb.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
console.
[2011-05-14 15:08:05 2669] DEBUG (DevController:156) Waiting for 0.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
pci.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
ioports.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
tap.
[2011-05-14 15:08:05 2669] DEBUG (DevController:151) Waiting for devices
vtpm.
[2011-05-14 15:08:05 2669] INFO (XendDomain:1165) Domain bill (12) unpaused.



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

> Hi,
> 
> What errors are printed to screen on xm/xl create?
> 
> Also post relevant portions of xm log. I can't seem to think of why
> your domain wouldn't start.
> 
> Joseph.
> 
> On 14 May 2011 23:00, Asistar srl Ivan Bolognani <bolognani@xxxxxxxxxx> wrote:
>> the path is correct
>> 
>>  on server 2 is already running multiple virtual machines with Xen. vwindows
>> is that Linux
>> Every machine in the server 2 are all working.
>> The drivers qemu is installed
>> 
>> 
>> 
>> Il 14/05/11 14:37, "Joseph Glanville" <joseph.glanville@xxxxxxxxxxxxxx> ha
>> scritto:
>> 
>>> Hi,
>>> 
>>> Ensure this path is correct:
>>>  'phy:/dev/europe_storage/bill-wdisk,hda,w',
>>> Also if you aren't using the QEMU ioemu driver make sure you have
>>> PVonHVM drivers installed or GPLPV if this is a Windows guest.
>>> Is there any error output when you try to start the domain?
>>> 
>>> Joseph.
>>> 
>>> On 14 May 2011 22:30, Asistar srl Ivan Bolognani <bolognani@xxxxxxxxxx>
>>> wrote:
>>>> 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
>>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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®.