Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294643 - app-emulation/libvirtd-0.x.x does not start anymore with qemu-kvm
Summary: app-emulation/libvirtd-0.x.x does not start anymore with qemu-kvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Doug Goldstein (RETIRED)
URL: http://blog.cardoe.com/archives/2009/...
Whiteboard:
Keywords:
Depends on: 294169
Blocks:
  Show dependency tree
 
Reported: 2009-11-25 20:54 UTC by Rafael Kolless
Modified: 2010-02-03 20:03 UTC (History)
3 users (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 Rafael Kolless 2009-11-25 20:54:48 UTC
Since the maintainer of app-emulation/kvm dropped the ebuild app-emulation/kvm
libvirtd is not able to start up anymore with configured kvm based systems if autostart is enabled.
It crashes silently.


Reproducible: Always

Steps to Reproduce:
1.update with portage kvm which will be altered to qemu-kvm
2.start libvirtd service
3.

Actual Results:  
libvirtd crashes.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2009-11-26 08:19:17 UTC
Attach your emerge --info, emerge -pv qemu-kvm libvirtd, your log from libvirtd and a backtrace. For info how to get a backtrace, see  http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Rafael Kolless 2009-11-26 09:58:31 UTC
Actually it crashes because it can´t find /usr/bin/kvm anymore. It´s a real simple error.

I remerge kvm-88-r2 out of an overlay and the error is gone.

qemu-kvm is fully incompatible to libvirtd
Comment 3 Conrad Kostecki gentoo-dev 2009-11-26 20:15:54 UTC
Jep!
I can confirm this error here.

Downgrade to kvm-88-r2 helped.

My /usr/bin/kvm is also missing.
Comment 4 Lasse Lindner 2009-11-26 20:19:39 UTC
I can confirm this bug. Made an update today and I can't start or use my kvm machines anymore with libvirt. Please readd app-emulation/kvm.
Comment 5 John Lowry 2009-11-28 08:07:42 UTC
(In reply to comment #4)
> I can confirm this bug. Made an update today and I can't start or use my kvm
> machines anymore with libvirt. Please readd app-emulation/kvm.
> 

I think part of the issue is that libvirt is looking for /usr/bin/kvm. I symlinked my qemu to /usr/bin/kvm and it worked for me. See
http://wiki.libvirt.org/page/Tips#Libvirt_wont_connect_to_qemu_hypervisor_.28KVM.29
Comment 6 Dragos Delcea 2009-11-29 21:51:30 UTC
After upgrading to qemu-kvm (up from the old kvm), you should rebuild libvirt; in my case that worked and picked up the new qemu/kvm binary. I had problems with the existing VMs (which had the old binary in the xml), but libvirtd starts and works after a rebuild.
Comment 7 Conrad Kostecki gentoo-dev 2009-12-04 07:41:58 UTC
Well, it seems not to work for me?
When I want to start with kvm-0.11 and libvirt, I get this error:
internal error no supported architecture for os type 'hvm'
Comment 8 Dragos Delcea 2009-12-06 01:26:10 UTC
(In reply to comment #7)
> Well, it seems not to work for me?
> When I want to start with kvm-0.11 and libvirt, I get this error:
> internal error no supported architecture for os type 'hvm'
> 
you probably built qemu-kvm without defining QEMU_SOFTMMU_TARGETS; this is different than what is discussed here.
Comment 9 Mike Auty (RETIRED) gentoo-dev 2010-01-27 11:59:40 UTC
Also, in case this helps, any pre-existing VMs built before the re-merge of kvm and qemu will specify a vm-type of kvm in their XML descriptor file.  This can be altered to read qemu and the machine will continue to boot normally (and if qemu-kvm is installed, with kvm extensions).  As such this probably doesn't affect new VMs after the rebuild, just existing ones.  Symlinking /usr/bin/qemu to /usr/bin/kvm will solve the problem, but isn't as good as setting the vm type in the XML descriptor file itself...
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2010-02-03 18:40:36 UTC
qemu-kvm installs a /usr/bin/kvm symlink. You should have never used an architecture type of "kvm". It was always "hvm".

This issue should really be completely solved now.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2010-02-03 20:03:31 UTC
As I stated in my last comment, fixed.