Hello, Is there a way to configure the domain cpu in such a way that the info reported to the guest OS system will remain constant ? For example in older versions of of libvirt/qemu the cpu was reported as "QEMU Virtual CPU version (cpu64_rhel6)" but moving the vm on a qemu2.2.0 is is reported as "QEMU Virtual CPU version 2.2.0". Thanks.
you can set the CPU type and model and features https://libvirt.org/formatdomain.html I usually give it during the virt-install as -cpu core2duo,+vmx (the ,+vmx will enable vmx vt extensions on the guest CPU ) ... <cpu match='exact'> <model fallback='allow'>core2duo</model> <vendor>Intel</vendor> <topology sockets='1' cores='2' threads='1'/> <feature policy='disable' name='lahf_lm'/> </cpu> ... On 2/5/15, Paul Apostolescu <apbogdan@gmail.com> wrote:> Hello, > > Is there a way to configure the domain cpu in such a way that the info > reported to the guest OS system will remain constant ? For example in older > versions of of libvirt/qemu the cpu was reported as "QEMU Virtual CPU > version (cpu64_rhel6)" but moving the vm on a qemu2.2.0 is is reported as > "QEMU Virtual CPU version 2.2.0". > > Thanks. >
Thanks, that worked. On Thu Feb 05 2015 at 5:03:58 PM Bhasker C V <bhasker@unixindia.com> wrote:> you can set the CPU type and model and features > https://libvirt.org/formatdomain.html > I usually give it during the virt-install as -cpu core2duo,+vmx (the > ,+vmx will enable vmx vt extensions on the guest CPU ) > > ... > <cpu match='exact'> > <model fallback='allow'>core2duo</model> > <vendor>Intel</vendor> > <topology sockets='1' cores='2' threads='1'/> > <feature policy='disable' name='lahf_lm'/> > </cpu> > ... > > On 2/5/15, Paul Apostolescu <apbogdan@gmail.com> wrote: > > Hello, > > > > Is there a way to configure the domain cpu in such a way that the info > > reported to the guest OS system will remain constant ? For example in > older > > versions of of libvirt/qemu the cpu was reported as "QEMU Virtual CPU > > version (cpu64_rhel6)" but moving the vm on a qemu2.2.0 is is reported as > > "QEMU Virtual CPU version 2.2.0". > > > > Thanks. > > >