[libvirt-users] How to explain this libvirt oddity w.r.t machine types?

Kashyap Chamarthy kchamart at redhat.com
Mon Oct 15 06:21:52 UTC 2018


On Sun, Oct 14, 2018 at 02:28:07PM +0200, Andrea Bolognani wrote:
> On Fri, 2018-10-12 at 22:38 +0200, Kashyap Chamarthy wrote:

[...]

> > Now check the machine type again.  Bizarrely enough, libvirt "helpfully"
> > auto-adds QEMU *2.11* machine type, which is obviously no longer on the
> > system!
> > 
> >     # grep machine= /etc/libvirt/qemu/cirros.xml
> >     <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
> > 
> >     # virsh dumpxml cirros | grep -i machine=
> >     <type arch='x86_64' machine='pc-i440fx-2.11'>hvm</type>
> > 
> > How to explain this?  Is this even a "valid test"?
> > 
> > (To undo the nuisance, obviously, I had to `virsh edit cirros` again and
> > change it to 2.10.)
> > 
> > Note, I *don't* have 2.11 QEMU on the system:

[...]

> If I had to guess, I would say the <emulator> element of your guest
> is probably pointing to a custom-built QEMU 2.11 binary rather than
> the default one installed from RPMs.

Your guess made me curious enough to check the remote machine one last
time before I went to sleep, but unfortunately the <emulator> element is
pointing to the plain `/usr/bin/qemu-kvm`, which in turn exec()'s
`/usr/bin/qemu-system-x86_64`.

(I attached the nothing-special, full guest XML.)


-- 
/kashyap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cirros.xml
Type: text/xml
Size: 5054 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20181015/ced86685/attachment.xml>


More information about the libvirt-users mailing list