Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: qemu-kvm replacement
Date: Wed, 11 Jun 2014 01:52:54
Message-Id: CAJ0EP41Q-WaNXzYbZJdrse9G-Y=ObJmpBmDitWPw9J-XQhiBSA@mail.gmail.com
In Reply to: [gentoo-user] Re: qemu-kvm replacement by walt
1 On Tue, Jun 10, 2014 at 7:45 PM, walt <w41ter@×××××.com> wrote:
2 > On 06/10/2014 02:31 PM, Heiko Zinke wrote:
3 >> Hi,
4 >>
5 >> with my recent qemu update from 1.6 to 2.0 I got the following error:
6 >>
7 >> * The kvm/qemu-kvm wrappers no longer exist, but your libvirt
8 >> * instances are still pointing to it. Please update your
9 >> * configs in /etc/libvirt/qemu/ to use the -enable-kvm flag
10 >> * and the right system binary (e.g. qemu-system-x86_64).
11 >> * ERROR: app-emulation/qemu-2.0.0::gentoo failed (pretend phase):
12 >> * update your virt configs to not use qemu-kvm
13 >> *
14 >> * Call stack:
15 >> * ebuild.sh, line 93: Called pkg_pretend
16 >> * qemu-2.0.0.ebuild, line 225: Called die
17 >> * The specific snippet of code:
18 >> * die "update your virt configs to not use qemu-kvm"
19 >>
20 >> I found this bug which explains the why but sadly not the how.
21 >> https://bugs.gentoo.org/show_bug.cgi?id=506566
22 >>
23 >> I need to get rid of the reference to the /usr/bin/qemu-kvm shell script which
24 >> is basically only a wrapper for "exec /usr/bin/qemu-system-x86_64 -machine
25 >> accel=kvm "$@""
26 >>
27 >> So if I "sudo virsh edit vmname" and substitute "/usr/bin/qemu-kvm" by
28 >> "/usr/bin/qemu-system-x86_64 -machine accel=kvm -enable-kvm" I only get this
29 >> error :(
30 >> "error: Cannot check QEMU binary /usr/bin/qemu-system-x86_64 -machine
31 >> accel=kvm -enable-kvm: No such file or directory"
32 >>
33 >> How is this supposed to work? Do I need to create a custom shell skript or
34 >
35 >> just use /usr/bin/qemu-system-x86_64 w/o the args an hope it magically uses
36 >> kvm acceleration?
37 >
38 > I believe "accel=kvm" is obsolete now. "-enable-kvm" is the magic word
39 > lately. Try "qemu-system-x86_64 -help" for more info than you want :)
40 >
41
42 Reading through the source code, -enable-kvm seems to be equivalent to
43 -machine accel=kvm.