Xen guest installation failure with virt-manager due to missing qemu-dm

Bug #936048 reported by Cerin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virtinst (Debian)
Fix Released
Unknown
virtinst (Ubuntu)
Fix Released
Undecided
Marc Deslauriers

Bug Description

Attempting to install a Xen guest VM (Ubuntu 11.04 64-bit) using virt-manager fails with the error:

    Unable to complete install: 'POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: device model '/usr/lib64/xen/bin/qemu-dm' not found")'

    Traceback (most recent call last):
      File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
        callback(asyncjob, *args, **kwargs)
      File "/usr/share/virt-manager/virtManager/create.py", line 1899, in do_install
        guest.start_install(False, meter=meter)
      File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 1223, in start_install
        noboot)
      File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 1291, in _create_guest
        dom = self.conn.createLinux(start_xml or final_xml, 0)
      File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1686, in createLinux
        if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
    libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err "Error creating domain: device model '/usr/lib64/xen/bin/qemu-dm' not found")

The path being used appears to be obsolete. This binary seems to be actually located in /usr/lib/xen-4.1/bin/qemu-dm.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: virt-manager 0.9.0-1ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-12.20-server 3.0.4
Uname: Linux 3.0.0-12-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sun Feb 19 04:46:40 2012
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Cerin (chrisspen) wrote :
Revision history for this message
Cerin (chrisspen) wrote :

I attempted to patch the install, following the instructions at http://www.beyondlinux.com/2011/11/02/install-xen-4-1-and-setup-your-cloud-os-on-ubuntu-11-10/

Namely, by running:

sudo mkdir /usr/lib64/xen -p
sudo cp /usr/lib/xen-4.1/* -r /usr/lib64/xen/
sudo cp -r /usr/share/qemu-linaro/ /usr/share/qemu

This seems to have fixed the initial error, but now I receive the new error:

Unable to complete install: ''0feae7c5-1b2b-0c89-aa94-b224b74b45f3''

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1904, in do_install
    vm = self.conn.get_vm(guest.uuid)
  File "/usr/share/virt-manager/virtManager/connection.py", line 693, in get_vm
    return self.vms[uuid]
KeyError: '0feae7c5-1b2b-0c89-aa94-b224b74b45f3'

affects: virt-manager (Ubuntu) → virtinst (Ubuntu)
Changed in virtinst (Ubuntu):
status: New → Confirmed
assignee: nobody → Marc Deslauriers (mdeslaur)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtinst - 0.600.1-1ubuntu2

---------------
virtinst (0.600.1-1ubuntu2) precise; urgency=low

  * debian/patches/0004-Fix-path-to-qemu-dm.patch: fix the path to the
    qemu-dm binary. (LP: #936048)
 -- Marc Deslauriers <email address hidden> Fri, 24 Feb 2012 15:51:30 -0500

Changed in virtinst (Ubuntu):
status: Confirmed → Fix Released
Changed in virtinst (Debian):
status: Unknown → New
Revision history for this message
Heiko Sieger (h-sieger) wrote :

Installed virt-manager on LMDE 1204 64-bit with Xen-kernel. When trying to install a guest OS, I get the above error "Error creating domain: device model '/usr/lib64/xen/bin/qemu-dm' not found".

Turns out LMDE (64-bit) doesn't use /usr/lib64... but /usr/lib... In addition, there is no /usr/lib64/xen folder.

Workaround:

sudo ln -s /usr/lib /usr/lib64
sudo ln -s /usr/lib/xen-default /usr/lib/xen

Would be nice if this could be fixed.

Changed in virtinst (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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