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
_______________________________________________
xen-discuss mailing list
[email protected]