Bug 890950 - libvirt is unable to run software qemu emulation when kvm is not present
Summary: libvirt is unable to run software qemu emulation when kvm is not present
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-31 11:24 UTC by Alexander Vershilov
Modified: 2016-03-24 00:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-24 00:26:53 UTC
Embargoed:


Attachments (Terms of Use)
fix (569 bytes, patch)
2012-12-31 11:24 UTC, Alexander Vershilov
no flags Details | Diff

Description Alexander Vershilov 2012-12-31 11:24:46 UTC
Created attachment 670773 [details]
fix

Description of problem:

Libvirt is unable to run software qemu emulation (domain type="qemu") if kvm is not present, because qemu monitor is not working and libvirt probing kvm executables without -no-kvm module, so every call ended with "no kvm module" and libvirt unable to find qemu support.

This bug has a known workaround: create a shell script that will add cmd arg params can call qemu.


Version-Release number of selected component (if applicable): 1.0.0 and higher


How reproducible: always


Steps to Reproduce:
1. install qemu without monitor (non tested with monitor support) on a system that lacks kvm module.
2. run libvirt
3. run virsh capabilities | grep hvm
  
Actual results:
nothing is found

Expected results:
there should be results for software hvm emulation

Additional info:
I'm attaching a patch, that fixes situation assuming that qemu-system-* executable is no hvm.

Comment 1 Cole Robinson 2016-03-24 00:26:53 UTC
Sorry this didn't receive a response until now... but this change is definitely not acceptable as is. It forces -no-kvm for all qemu-system-* binaries, which is not correct: KVM should be usable with many qemu-system binaries like arm, aarch64, ppc64, etc

Given the age of this bug, closing as deferred. But if you can still reproduce with modern libvirt and qemu, please provide

- The error you were receiving that you were trying to fix
- The XML of a VM you were trying to run


Note You need to log in before you can comment on or make changes to this bug.