Gentoo Archives: gentoo-user

From: Heiko Zinke <mails@××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] qemu-kvm replacement
Date: Tue, 10 Jun 2014 21:31:48
Message-Id: 2889749.bhUys7Nap2@chiefwiggum
1 Hi,
2
3 with my recent qemu update from 1.6 to 2.0 I got the following error:
4
5 * The kvm/qemu-kvm wrappers no longer exist, but your libvirt
6 * instances are still pointing to it. Please update your
7 * configs in /etc/libvirt/qemu/ to use the -enable-kvm flag
8 * and the right system binary (e.g. qemu-system-x86_64).
9 * ERROR: app-emulation/qemu-2.0.0::gentoo failed (pretend phase):
10 * update your virt configs to not use qemu-kvm
11 *
12 * Call stack:
13 * ebuild.sh, line 93: Called pkg_pretend
14 * qemu-2.0.0.ebuild, line 225: Called die
15 * The specific snippet of code:
16 * die "update your virt configs to not use qemu-kvm"
17
18 I found this bug which explains the why but sadly not the how.
19 https://bugs.gentoo.org/show_bug.cgi?id=506566
20
21 I need to get rid of the reference to the /usr/bin/qemu-kvm shell script which
22 is basically only a wrapper for "exec /usr/bin/qemu-system-x86_64 -machine
23 accel=kvm "$@""
24
25 So if I "sudo virsh edit vmname" and substitute "/usr/bin/qemu-kvm" by
26 "/usr/bin/qemu-system-x86_64 -machine accel=kvm -enable-kvm" I only get this
27 error :(
28 "error: Cannot check QEMU binary /usr/bin/qemu-system-x86_64 -machine
29 accel=kvm -enable-kvm: No such file or directory"
30
31 How is this supposed to work? Do I need to create a custom shell skript or
32 just use /usr/bin/qemu-system-x86_64 w/o the args an hope it magically uses
33 kvm acceleration?
34
35 thanks for the help!
36 heiko
37 --
38 Just go ahead and write your own multitasking multiuser os!
39 Worked for me all the times.
40 -- Linus Torvalds

Replies

Subject Author
Re: [gentoo-user] qemu-kvm replacement Rich Freeman <rich0@g.o>
[gentoo-user] Re: qemu-kvm replacement walt <w41ter@×××××.com>