Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249029 - app-emulation/virt-manager-0.6.0 + app-emulation/libvirt-0.4.6 fails to create disk images
Summary: app-emulation/virt-manager-0.6.0 + app-emulation/libvirt-0.4.6 fails to creat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 22:11 UTC by Doug Goldstein (RETIRED)
Modified: 2009-12-18 16:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Goldstein (RETIRED) gentoo-dev 2008-11-26 22:11:16 UTC
I tried to create a kvm disk image via it's GUI utility but it fails when it actually goes to create the disk image with the following message:

Unable to complete install: 'internal error Cannot find QEMU binary /usr/lib64/xen/bin/qemu-dm: No such file or directory'

On Gentoo that file is actually located at /usr/bin/kvm-img

Here are my libvirt USE flags.

[ebuild   R   ] app-emulation/libvirt-0.4.6  USE="avahi kvm parted -iscsi -lvm -openvz -qemu -sasl (-selinux) -xen"
Comment 1 Micheal Marineau (RETIRED) gentoo-dev 2008-12-02 04:16:39 UTC
Hm, this is very strange indeed. I greped though the source and the only refrences to qemu-dm are in the documentation and in xen_internal.c which should nt have anything to do with creating a disk for kvm (or xen for that mater, qemu-dm is the emulator binary that libvirt uses for xen).

Could you provide the exact steps you took to hit this problem? Creating disks for kvm is working for me with the same use flags.

My best guess is that for whatever reason your virtual machine xml file was originally created for a xen guest so it lists qemu-dm instead of kvm and the error you are seeing is for guest startup, not disk creation. Changing the emulator tag to <emulator>/usr/bin/kvm</emulator> should fix that. After editing the file use virsh define to reload the xml file.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-12-02 15:03:44 UTC
First time I ever used this stuff so it could be user error.

1) Edited /etc/libvirt/libvirtd.conf and changed unix_sock_group to "kvm" since that's the group that Gentoo uses instead of upstream's "libvirt" group.
2) started libvirt via /etc/init.d/libvirtd start
3) Started virt-manager
4) Clicked File -> Add Connection
5) Changed Hypervisor from Xen to QEMU (only other choice)
6) Connection was local
7) Clicked Connect
8) Clicked on local qemu
9) Clicked New on the bottom
10) Clicked Forward
11) System Name: "TestVM"
12) Forward
13) Only available choices here are Fully Virtualized, CPU x86_64, blank hypervisor
14) Forward
15) Local install media
16) OS Type: UNIX
17) OS Variant: FreeBSD 7.x
18) Forward
19) ISO Image location: /home/doug/7.0-RELEASE-i386-disc1.iso
20) Forward
21) Simple File, Location: /var/lib/libvirt/images/TestVM.img, Size: 8000 MB
22) Uncheck Allocate entire virtual disk now
23) Forward
24) Virtual Network, Network: Default
25) Forward
26) VM Max Memory and VM Startup Memory: 256 MB. VCPUs: 1
27) Forward
28) Finish

Immediately get error message that reads as follows..

Unable to complete install: 'internal error Cannot find QEMU binary /usr/lib64/xen/bin/qemu-dm: No such file or directory'

Details:

Unable to complete install '<class 'libvirt.libvirtError'> internal error Cannot find QEMU binary /usr/lib64/xen/bin/qemu-dm: No such file or directory
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 722, in do_install
    dom = guest.start_install(False, meter = meter)
  File "//usr/lib64/python2.5/site-packages/virtinst/Guest.py", line 732, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "//usr/lib64/python2.5/site-packages/virtinst/Guest.py", line 767, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "//usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error Cannot find QEMU binary /usr/lib64/xen/bin/qemu-dm: No such file or directory
'

Comment 3 Evildad 2009-02-02 20:54:00 UTC
I can confirm the problems because I'm experiencing the exact problem.
Any progress in fixing the problem?
Comment 4 Evildad 2009-03-08 17:49:57 UTC
app-emulation/virt-manager-0.6.1 fixed the Problem for me
Comment 5 Gen2 2009-03-11 10:50:39 UTC
@ Evildad:

could you post the output of emerge -pv libvirt virt-manager please? Cause i still experience this problem with version 0.6.1 of virt-manager.
Comment 6 Evildad 2009-03-16 10:39:46 UTC
I made the Version Bumps in my local Oberlay.

emerge -pv libvirt virt-manager

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-emulation/libvirt-0.6.1  USE="hal kvm -avahi -iscsi -lvm -lxc -openvz -parted -qemu -sasl (-selinux) -uml -xen" 0 kB [1]
[ebuild   R   ] app-emulation/virt-manager-0.6.1  USE="-gnome-keyring" 0 kB [1]
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2009-05-20 17:44:15 UTC
(In reply to comment #4)
> app-emulation/virt-manager-0.6.1 fixed the Problem for me
> 

as we have 0.7.0 closing this one for now, please reopen if it's still (or again) a problem w/ 0.7.0.