wrong default hvm bootloader path for xen

Bug #334447 reported by schoubi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: virt-manager

Create a DomU with virt-manager ends with :

Unable to complete install '<class 'libvirt.libvirtError'> virDomainCreateLinux() failed POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (1, 'Internal error', 'Could not open kernel image (2 = No such file or directory)')")
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 652, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 902, in start_install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 923, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 841, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: virDomainCreateLinux() failed POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: (1, 'Internal error', 'Could not open kernel image (2 = No such file or directory)')")
'

In the log virt-manager wants to use /usr/lib/xen-default/hvmbootload as a bootloader :

'loader': '/usr/lib/xen-default/boot/hvmloader'

but the real path is /usr/lib/xen/boot/hvmloader

make a symbolic link do the trick :

cd /usr/lib/
ln -s xen xen-default

Linux 2.6.24-23-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86_64 GNU/Linux

ii libxen3 3.3.0-1ubuntu7 library interface for Xen, a Virtual Machine
ii linux-image-2.6.24-23-xen 2.6.24-23.48 Linux kernel image for version 2.6.24 on Thi
ii linux-ubuntu-modules-2.6.24-23-xen 2.6.24-23.37 Ubuntu supplied Linux modules for version 2.
ii python-xen-3.3 3.3.0-1ubuntu7 python bindings for Xen, a Virtual Machine M
ii xen-hypervisor-3.3 3.3.0-1ubuntu7 The Xen Hypervisor for i386 and amd64.
ii xen-utils-3.3 3.3.0-1ubuntu7 XEN administrative tools
ii virt-manager 0.5.4-2ubuntu1 desktop application for managing virtual mac

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for reporting this issue.

Are you able to reproduce this issue with a more recent version of virt-manager, such as the one in Karmic or Lucid?

Changed in virt-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to 'New'. Thanks again!

Changed in virt-manager (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Tim Kornhammar (tim-kornhammar) wrote :

This bug is still active in Ubuntu 13.04 with virt-manager 0.9.4-2ubuntu3.

Revision history for this message
Vivien GUEANT (vivienfr) wrote :

This bug is still active in Ubuntu 13.04 64bits with virt-manager 0.9.4-2ubuntu3 / libvirt 1.0.2

I have the error « POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: kernel '/usr/lib/xen-default/boot/hvmloader' not found") »

The workaround: Create a symbolic link
mkdir /usr/lib/xen-default
mkdir /usr/lib/xen-default/boot
ln -s /usr/lib/xen-4.2/boot/hvmloader /usr/lib/xen-default/boot/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.