Bug 890950

Summary: libvirt is unable to run software qemu emulation when kvm is not present
Product: [Community] Virtualization Tools Reporter: Alexander Vershilov <qnikst>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, qrilka, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-24 00:26:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix none

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