On Fri, Jul 06, 2012 at 04:13:26PM +0100, Richard W.M. Jones wrote:
On Fri, Jul 06, 2012 at 04:06:13PM +0100, Daniel P. Berrange wrote:
> On Fri, Jul 06, 2012 at 03:51:58PM +0100, Richard W.M. Jones wrote:
> >
> > Here is the output of virsh capabilities. It seems to make no sense.
> > But it might indicate that something about detection of the
> > qemu-kvm-1.1.0 binary fails, so libvirt assumes that it's not working.
>
> With luck libvirt should have said what's wrong via syslog. Can
> you see if there were any log messages ?
The full output of that failing command is:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
/usr/bin/qemu-system-x86_64 -device ? -device pci-assign,? -device virtio-blk-pci,?
-device virtio-net-pci,? -device scsi-disk,?
KVM not supported for this target
No accelerator found!
Adding the option '-machine accel=kvm:tcg' fixes the output.
Sigh, qemu-kvm.git has done a broken merge yet again. Binaries built from
qemu.git work fine when /dev/kvm is missing & this shoud not be changed
by qemu-kvm.git I've previously fixed it with
commit ce967f6610dcd7b7762dbad5a639fecf42d5c76d
Author: Daniel P. Berrange <berrange(a)redhat.com>
Date: Fri Aug 5 09:50:29 2011 +0100
Fix default accelerator when configured with --disable-kvm
The default accelerator is hardcoded to 'kvm'. This is a fine
default for qemu-kvm normally, but if the user built with
./configure --disable-kvm, then the resulting binaries will
not work by default
* vl.c: Default to 'tcg' unless CONFIG_KVM is defined
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti(a)redhat.com>
but this code seems to have changed somewhat
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|