[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [fedora-virt] qemu 1.1.0 in Rawhide, and planned backport to F17 (was: Re: Upgrading qemu to 1.1 in rawhide)



On Fri, Jul 06, 2012 at 04:26:22PM +0100, Daniel P. Berrange wrote:
> 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 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 redhat com>
>     Signed-off-by: Marcelo Tosatti <mtosatti redhat com>
> 
> 
> but this code seems to have changed somewhat

It was broken by this commit

commit 3ad763fcba5bd0ec5a79d4a9b6baeef119dd4a3d
Author: Jan Kiszka <jan kiszka siemens com>
Date:   Fri Mar 2 10:30:43 2012 +0100

    qemu-kvm: Use machine options to configure qemu-kvm defaults
    
    Upstream is moving towards this mechanism, so start using it in qemu-kvm
    already to configure the specific defaults: kvm enabled on, just like
    in-kernel irqchips.
    
    Signed-off-by: Jan Kiszka <jan kiszka siemens com>
    Signed-off-by: Avi Kivity <avi redhat com>



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 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]