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. Error information # 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): libvirt-0.1.7-2.src.rpm Version : 0.1.7 Release : 2 How reproducible: everytime Steps to Reproduce: 1.Start domain #xm create /etc/xen/Para_FC6 2.Dump xml #virsh dumpxml Para_FC6 > /tmp/dump_Para_FC6.xml 3.Stop domain #virsh shutdown Para_FC6 4.Start domain #virsh create /tmp/dump_Para_FC6.xml Actual results: Virtual System didn't start after creating a VM based on the XML file which dumped from Virtual System made by "Para-Virtualized". Expected results: Virtual System can start with XML file, which dumped from a running Virtual system by "dumpxml" command. Additional info: 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, Daniel
Created attachment 142233 [details] patch to drop the kernel information when creating a xen domain with bootloader
Commited in libvirt upstream, Daniel
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 inclusion.
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 (image (linux (ramdisk /var/lib/xen/initrd.zRAFzd) (kernel /var/lib/xen/vmlinuz.pMML_l) (args 'ro root=/dev/VolGroup00/LogVol00 rhgb quiet') (vncunused 1) (vnc 1) (display localhost:10.0) (xauthority /root/.Xauthority) ) ) I don't see a solution. Daniel
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. Daniel
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.