Help with migration Hi, I''m trying to develop a script which I can use to migrate a guest domain. I need to move an existing guest to another machine and start it up there. Right now my script copies the .img dir to another host, and then writes out a custom xml file for use with the virsh create command on the target host. I''m met with the following error: libvir: Xen Daemon error: POST operation failed: (xend.err "Error creating domain: Bootloader isn''t executable") error: Failed to create domain from xvm.xml Here''s the xml I''m using: <!-- <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> <name>abc-1.0-lm1-dom0.sfbay.sun.com-22</name> <uuid></uuid> <bootloader>/usr/lib/xen/bin/pygrub </bootloader> <os> <type>solaris</type> </os> <memory>1048576</memory> <vcpu>1</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <interface type="bridge"> <source bridge="e1000g0"/> <target dev="vif57.0"/> <mac address="00:16:3e:00:00:16"/> <script path="vif-vnic"/> </interface> <disk device="disk" type="file"> <driver name="file"/> <source file=''/export/xvmimages/abc-1.0-lm1-dom0.sfbay.sun.com-22.img''/> <target dev="xvda"/> </disk> </devices> </domain> --> The source file does exist at that location. The mac address is unique. I''m not sure why the error indicates the bootloader. (By the way I only put the html comments around it to make it show up on the page.) Any idea what is wrong? Is my whole scheme of copying the .img dir and constructing an xml file misguided? Should I be using the "virsh migrate" command instead? I don''t need the migration to be live. Any help is appreciated. -Dan -- This message posted from opensolaris.org
Hi Daniel, You can look at http://wikis.sun.com/display/OpenSolarisInfo200906/How+to+Use+OpenSolaris+xVM+Live+Migration+to+Balance+Workloads+Across+Servers How to Use OpenSolaris xVM Live Migration to Balance Workloads Across Servers Hope this helps, Penny On 09/03/09 09:57, Daniel wrote:> Help with migration > > Hi, > > I''m trying to develop a script which I can use to migrate a guest domain. I need to move an existing guest to another machine and start it up there. > > Right now my script copies the .img dir to another host, and then writes out a custom xml file for use with the virsh create command on the target host. I''m met with the following error: > > libvir: Xen Daemon error: POST operation failed: (xend.err "Error creating domain: Bootloader isn''t executable") > error: Failed to create domain from xvm.xml > > Here''s the xml I''m using: > > <!-- > <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> > <name>abc-1.0-lm1-dom0.sfbay.sun.com-22</name> > <uuid></uuid> > <bootloader>/usr/lib/xen/bin/pygrub > </bootloader> > <os> > <type>solaris</type> > </os> > <memory>1048576</memory> > <vcpu>1</vcpu> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>restart</on_crash> > <devices> > <interface type="bridge"> > <source bridge="e1000g0"/> > <target dev="vif57.0"/> > <mac address="00:16:3e:00:00:16"/> > <script path="vif-vnic"/> > </interface> > <disk device="disk" type="file"> > <driver name="file"/> > <source file=''/export/xvmimages/abc-1.0-lm1-dom0.sfbay.sun.com-22.img''/> > <target dev="xvda"/> > </disk> > </devices> > </domain> > --> > > The source file does exist at that location. The mac address is unique. I''m not sure why the error indicates the bootloader. (By the way I only put the html comments around it to make it show up on the page.) > > Any idea what is wrong? Is my whole scheme of copying the .img dir and constructing an xml file misguided? Should I be using the "virsh migrate" command instead? I don''t need the migration to be live. Any help is appreciated. > > -Dan
On Thu, Sep 03, 2009 at 09:57:51AM -0700, Daniel wrote:> libvir: Xen Daemon error: POST operation failed: (xend.err "Error creating domain: Bootloader isn''t executable") > error: Failed to create domain from xvm.xml > > Here''s the xml I''m using: > > <!-- > <?xml version="1.0" encoding="UTF-8"?><domain type="xen"> > <name>abc-1.0-lm1-dom0.sfbay.sun.com-22</name> > <uuid></uuid> > <bootloader>/usr/lib/xen/bin/pygrub > </bootloader>Probably it''s this extra newline. regards john
Thanks for the replies. John, That did clear up the bootloader error but then I got this one: libvir: Xen Daemon error : POST operation failed: (xend.err ''Device 51712 (vbd) could not be connected. Backend device not found.'') error: Failed to create domain from xvm.xml Any clue? -Dan -- This message posted from opensolaris.org
On Thu, Sep 03, 2009 at 11:32:05AM -0700, Daniel wrote:> libvir: Xen Daemon error : POST operation failed: (xend.err ''Device 51712 (vbd) could not be connected. Backend device not found.'') > error: Failed to create domain from xvm.xmlLook in /var/log/xen/xpvd-event.log - most likely your file path is wrong, or the file isn''t writable by the xvm user. regards john