Bhasker C V
2012-Apr-18 20:56 UTC
[libvirt-users] Problems using latest qemu-kvm and latest libvirt ( hvm missing )
Hi all
I have faced this issue already and the solution was to go back to a
old version of qemu-kvm and/or libvirt and things start falling into
place but this time I would want to solve this.
I have used these versions as per the o/p of the commands below. To
jumpstart a new machine which is libvirt capable, it always is a hastle
to find out which of the version combination of libvirt,qemu-kvm will work.
Just by picking the latest of the two versions does not help and ends up
not supporting hvm at all
$ sudo virsh capabilities
<capabilities>
<host>
<uuid>34373030-3635-435a-4a32-313230485156</uuid>
<cpu>
<arch>x86_64</arch>
<model>Westmere</model>
<vendor>Intel</vendor>
<topology sockets='2' cores='4'
threads='2'/>
<feature name='rdtscp'/>
<feature name='pdpe1gb'/>
<feature name='dca'/>
<feature name='pdcm'/>
<feature name='xtpr'/>
<feature name='tm2'/>
<feature name='est'/>
<feature name='smx'/>
<feature name='vmx'/>
<feature name='ds_cpl'/>
<feature name='monitor'/>
<feature name='dtes64'/>
<feature name='pclmuldq'/>
<feature name='pbe'/>
<feature name='tm'/>
<feature name='ht'/>
<feature name='ss'/>
<feature name='acpi'/>
<feature name='ds'/>
<feature name='vme'/>
</cpu>
<power_management/>
<migration_features>
<live/>
<uri_transports>
<uri_transport>tcp</uri_transport>
</uri_transports>
</migration_features>
</host>
</capabilities>
$ virsh --version
0.9.11
$ qemu-system-x86_64 --version
QEMU emulator version 1.0,1 (qemu-kvm-1.0.1), Copyright (c) 2003-2008
Fabrice Bellard
$ sudo virsh uri
qemu:///system
$ sudo virsh version
Compiled against library: libvir 0.9.11
Using library: libvir 0.9.11
Using API: QEMU 0.9.11
error: failed to get the hypervisor version
error: internal error Cannot find suitable emulator for x86_64
$ which kvm
/usr/local/bin/kvm
Can someone tell me, please, what is the version of qemu-kvm which will
work well with the latest libvirt 0.9.11 ? since clearly the latest
versions of qemu-kvm and libvirt are not compatible fully (atleast not hvm).
Even better if this is documented somewhere visible so that a lot of
time can be saved in iterating through the versions of qemu-kvm to find
out which one will work.
--
Bhasker C V
Secure Mails:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D05FEEC54E47413
Bhasker C V
2012-Apr-18 21:06 UTC
[libvirt-users] Problems using latest qemu-kvm and latest libvirt ( hvm missing )
On 18/04/12 21:56, Bhasker C V wrote:> Hi all > > > I have faced this issue already and the solution was to go back to a > old version of qemu-kvm and/or libvirt and things start falling into > place but this time I would want to solve this. > > > I have used these versions as per the o/p of the commands below. To > jumpstart a new machine which is libvirt capable, it always is a hastle > to find out which of the version combination of libvirt,qemu-kvm will work. > > Just by picking the latest of the two versions does not help and ends up > not supporting hvm at all > > > > $ sudo virsh capabilities > <capabilities> > > <host> > <uuid>34373030-3635-435a-4a32-313230485156</uuid> > <cpu> > <arch>x86_64</arch> > <model>Westmere</model> > <vendor>Intel</vendor> > <topology sockets='2' cores='4' threads='2'/> > <feature name='rdtscp'/> > <feature name='pdpe1gb'/> > <feature name='dca'/> > <feature name='pdcm'/> > <feature name='xtpr'/> > <feature name='tm2'/> > <feature name='est'/> > <feature name='smx'/> > <feature name='vmx'/> > <feature name='ds_cpl'/> > <feature name='monitor'/> > <feature name='dtes64'/> > <feature name='pclmuldq'/> > <feature name='pbe'/> > <feature name='tm'/> > <feature name='ht'/> > <feature name='ss'/> > <feature name='acpi'/> > <feature name='ds'/> > <feature name='vme'/> > </cpu> > <power_management/> > <migration_features> > <live/> > <uri_transports> > <uri_transport>tcp</uri_transport> > </uri_transports> > </migration_features> > </host> > > </capabilities> > > $ virsh --version > 0.9.11 > > > $ qemu-system-x86_64 --version > QEMU emulator version 1.0,1 (qemu-kvm-1.0.1), Copyright (c) 2003-2008 > Fabrice Bellard > > $ sudo virsh uri > qemu:///system > > $ sudo virsh version > Compiled against library: libvir 0.9.11 > Using library: libvir 0.9.11 > Using API: QEMU 0.9.11 > error: failed to get the hypervisor version > error: internal error Cannot find suitable emulator for x86_64 > > $ which kvm > /usr/local/bin/kvmForgot to mention that kvm is symbolic linked to qemu-system-x86_64> > > Can someone tell me, please, what is the version of qemu-kvm which will > work well with the latest libvirt 0.9.11 ? since clearly the latest > versions of qemu-kvm and libvirt are not compatible fully (atleast not hvm). > Even better if this is documented somewhere visible so that a lot of > time can be saved in iterating through the versions of qemu-kvm to find > out which one will work. >-- Bhasker C V Secure Mails: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4D05FEEC54E47413