Red Hat Bugzilla – Bug 214741
VM cannot start with the XML file, which was dumped by "virsh dumpxml".
Last modified: 2010-10-22 02:53:22 EDT
Description of problem:
The error occured after the command "virsh create" is executed by the XML
which dumped from Virtual System made by "Para-Virtualized", and Virtual
System didn't start.
# virsh create /tmp/dump_Para_FC6.xml
libvir: Xen Daemon error : POST operation failed: (xend.err 'Error creating
domain: Kernel image does not exist: /var/lib/xen/vmlinuz.FMDJma')
Failed to create domain Para_FC6
error: Failed to create domain from /tmp/dump_Para_FC6.xml
Version-Release number of selected component (if applicable):
Version : 0.1.7
Release : 2
Steps to Reproduce:
#xm create /etc/xen/Para_FC6
#virsh dumpxml Para_FC6 > /tmp/dump_Para_FC6.xml
#virsh shutdown Para_FC6
#virsh create /tmp/dump_Para_FC6.xml
Virtual System didn't start after creating a VM based on the XML
file which dumped from Virtual System made by "Para-Virtualized".
Virtual System can start with XML file, which dumped from a running
Virtual system by "dumpxml" command.
The XML file "dump_Para_FC6.xml" which I used is attached.
Created attachment 140747 [details]
The XML file I used
I have a patch for this issue that I plan to push upstream. Basically when
creating a domain, if there is a pygrub bootloader, then the whole <os>
section should be ignored when passing the informations to xend.
The patch below was tested successfully,
Created attachment 142233 [details]
patch to drop the kernel information when creating a xen domain with bootloader
Commited in libvirt upstream,
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
In this patch, in case of pygrub bootloader, it seems that the
virDomainParseXMLGraphicsDesc function is not called for pygrub.
If it is true, is there any influence that graphic console of paraVM
cannot be connected because the SXP conversion for <graphics> tag will
not be done.
w.r.t. comment #7, exact but as soon as there is an (image ...) block
then the (bootloader ...) information is ignored by xend. Since the
SXP conversion for <graphics> tag is expected to occur within the
(image ...) block as in
(args 'ro root=/dev/VolGroup00/LogVol00 rhgb quiet')
I don't see a solution.
The problem described in comment #7 is already being tracked in a separate ticket
bug 211909 for the libvirt part of the fix, and bug 211928 for the XenD part. So
lets keep discussion in this ticket to be just about the fixing of
bootloader/kernel arg prioritization.
QE ack for RHEL5.
Okay libvirt-0.1.8-6.el5 has been built with the fix. As pointed out in #8 and #9
the point raised in #7 is a separate issue and not covered by this update.
A package has been built which should help the problem described in
this bug report. This report is therefore being closed with a resolution
of CURRENTRELEASE. You may reopen this bug report if the solution does
not work for you.