Bug 840444
| Summary: | qemu is built without KVM support | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alexander Bokovoy <abokovoy> |
| Component: | qemu | Assignee: | Fedora Virtualization Maintainers <virt-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, knoel, pbonzini, rjones, scottt.tw, virt-maint |
| 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: | 2012-07-18 21:34:25 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: | |||
|
Description
Alexander Bokovoy
2012-07-16 12:01:47 UTC
The sources are built twice. The first time: KVM support yes as you can see in that build log. Actually the build process for qemu-kvm is very complex (probably unnecessarily so) and I haven't really looked at it. Also the command line options to enable and disable KVM are frustrating complex and undocumented, so I don't even know whether the output from the command above is correct or not. There is a separate bug in upstream qemu-kvm.git which we have tried to work around with a patch. This bug affects libvirt, although the patch doesn't help: http://pkgs.fedoraproject.org/gitweb/?p=qemu.git;a=blob;f=0001-qemu-kvm-Fix-default-machine-options.patch;h=fc9e2e019b5d4d11bedd36efe271a398005339de;hb=HEAD The end result is that qemu-system-x86_64 in the package does not have KVM support and the whole libvirtd setup which previously worked does not work. So what to do with it? I really think you're seeing a different bug (one which also affects me). libvirt fails to detect the capabilities of this version of qemu. I've no idea how to fix this, although I have made several attempts. Please ask Dan Berrange. Ok, so what happens is following: Upon start libvirtd will run system-specific qemu binary to discover possible options. In my case it is qemu-system-x86_64 and it is the version *without* KVM support. Command line that libvirtd runs is: /usr/bin/qemu-system-x86_64 -no-user-config -device ? -device pci-assign,? -device virtio-blk-pci,? -device virtio-net-pci,? -device scsi-disk,? Basically, this commandline fails due to absent accelerator, as instructed in qemu's vl.c:configure_accelerator() (2134-2154 in upstream qemu code). Since all accelerators are not available, no accelerator is initialized and qemu exits. As a workaround right now I did symlinked qemu-system-x86_64 to qemu-kvm and everything started working. What is the reason to supply qemu-system-x86_64 binary without kvm support by default? Can we use alternatives to configure actual qemu-system-x86_64 binary and default to KVM? For the libvirt problem, try the -8 package from here: http://koji.fedoraproject.org/koji/taskinfo?taskID=4243685 This fixes all known libvirt+qemu problems for me. I can confirm that 1.1.0-8 solves the issue for me. Thanks! |