[Bug 797699] New: libvirt: wrong path to pygrub breaks paravirt
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c0 Summary: libvirt: wrong path to pygrub breaks paravirt Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: chenxiaolong@cxl.epac.to QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 openSUSE installs Xen's pygrub to /usr/bin/pygrub, but libvirt looks for /usr/lib/xen-default/bin/pygrub. It gives a rather unhelpful error: Error starting domain: POST operation failed: xend_post: error from xen daemon: (xend.err "Bootloader isn't executable") The libvirt package should be patched to use the correct path. Reproducible: Always Steps to Reproduce: 1. Create a paravirtualized guest using virt-install or virt-manager. 2. Run "virsh dumpxml myguest" Actual Results: Notice that the xml output contains: <bootloader>/usr/lib/xen-default/bin/pygrub</bootloader> Expected Results: The expected result is: <bootloader>/usr/bin/pygrub</bootloader> The issue can be manually worked around in the meantime by dumping the xml, modifying it, and loading it back into libvirt. $ virsh dumpxml myguest > myguest.xml $ sed -i 's|/usr/lib/xen-default/bin/pygrub|/usr/bin/pygrub|g' myguest.xml $ virsh create myguest.xml -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c Jason Douglas <jdouglas@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdouglas@suse.com AssignedTo|jdouglas@suse.com |jfehlig@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c1 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@suse.com --- Comment #1 from James Fehlig <jfehlig@suse.com> 2013-01-10 15:30:53 UTC --- (In reply to comment #0)
Steps to Reproduce: 1. Create a paravirtualized guest using virt-install or virt-manager. 2. Run "virsh dumpxml myguest" Actual Results: Notice that the xml output contains:
<bootloader>/usr/lib/xen-default/bin/pygrub</bootloader>
Seems virt-install generates the incorrect bootloader path. Have you tried vm-install? It generates the correct bootloader path. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c2 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |chenxiaolong@cxl.epac.to --- Comment #2 from Charles Arnold <carnold@suse.com> 2013-01-10 16:40:03 UTC --- (In reply to comment #1)
(In reply to comment #0)
Steps to Reproduce: 1. Create a paravirtualized guest using virt-install or virt-manager. 2. Run "virsh dumpxml myguest" Actual Results: Notice that the xml output contains:
<bootloader>/usr/lib/xen-default/bin/pygrub</bootloader>
Seems virt-install generates the incorrect bootloader path.
No, it generates the correct path.
Have you tried vm-install? It generates the correct bootloader path.
Yes, but using virt-install via virt-manager also works for me. I see no place where 'xen-default' is used accept in the python-virtinst tests (which are not contained in the RPM and should not be installed). Have you installed virt-install from some other source (eg, checked out the 'git' repo and installed)? What are the package versions you have installed for libvirt, python-virtinst and virt-manager (rpm -qa | grep virt)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c3 --- Comment #3 from Xiao-Long Chen <chenxiaolong@cxl.epac.to> 2013-01-10 17:39:29 UTC --- Thanks for the reply! I'm using the stock packages from openSUSE 12.2 with no packages from other repositories and nothing compiled from source. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c4 --- Comment #4 from Xiao-Long Chen <chenxiaolong@cxl.epac.to> 2013-01-10 17:43:55 UTC --- I must apologize for filing this bug report. I've found that when running virt-manager locally, there are no problems. But if I connect remotely (via "xen+ssh//...", not "ssh -X virt-manager ...") then libvirt takes some settings from the client. In this case, I was connecting from an Ubuntu client and libvirt used Ubuntu's path, which happens to be /usr/lib/xen-default/bin/pygrub. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=797699 https://bugzilla.novell.com/show_bug.cgi?id=797699#c5 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|chenxiaolong@cxl.epac.to | Resolution| |INVALID --- Comment #5 from Charles Arnold <carnold@suse.com> 2013-01-10 22:50:34 UTC --- Closing bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com