<div dir="ltr"><div><div><div><div>hi,<br><br></div>yes we are talking about same host here. <br><br>You could've just used -cpu host-model-only<br></div>>> I dont want to host model ( it is working with host model) .<br><br><span class="gmail-">AS KVM seems to allow support Haswell with native commands . Does this mean in my case KVM is allowing software emulated cpu model.  </span><br><br></div>Can libvirt allow  software-emulated for non host model ?  if yes how .<br><br></div>thanks<br><div><br><span class="gmail-"></span><br><div><br><br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 24, 2017 at 1:32 PM, Martin Kletzander <span dir="ltr"><<a href="mailto:mkletzan@redhat.com" target="_blank">mkletzan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tue, Jan 24, 2017 at 10:08:12AM +0530, akhilesh rawat wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello ,<br>
<br>
It was working good working with kvm management tools using libvirt .<br>
virsh/virt-manager .<br>
<br>
But then i got annoyed when management tool did not allow me to change the<br>
CPU model while creating new virtual machine .<br>
error<br>
<br>
</blockquote>
<br></span>
Are we talking about the same host?<span class="gmail-"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
root@kvm-server qemu]# virt-install --virt-type kvm --name compute-2 --cpu<br>
Haswell-noTSX --ram=61440 --vcpus=20 --os-type=linux --os-variant=generic<br>
--disk<br>
compute2-disk0.qcow2,device=di<wbr>sk,bus=ide,size=300,sparse=tru<wbr>e,format=qcow2<br>
--pxe --network bridge=virbr0,model=e1000 --network<br>
bridge=virbr0,model=e1000 --network bridge=virbr0,model=virtio --network<br>
bridge=virbr0,model=virtio --graphics vnc,port=5906 --noautoconsole<br>
<br>
Starting install...<br>
ERROR    unsupported configuration: guest and host CPU are not compatible:<br>
Host CPU does not provide required features: invpcid, erms, bmi2, smep,<br>
avx2, bmi1, fsgsbase, movbe, fma<br>
Domain installation does not appear to have been successful.<br>
<br>
I could not resolve this error .<br>
<br>
</blockquote>
<br></span>
You could've just used -cpu host-model-only.<span class="gmail-"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Finally i came across the post which say that libvirt cross verifies  flags<br>
under CPU model present in<br>
/usr/share/libvirt/cpu_map.xml and cat /proc/cpuinfo .<br>
<br>
An yes the flag complained were not present in host proc/cpuinfo.<br>
<br>
Question 1: Is it really needed for Libvirt to do this check .<br>
<br>
</blockquote>
<br></span>
It is, otherwise users might not get what they asked for.  Or it might<br>
be software-emulated.<span class="gmail-"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
AS KVM seems to allow support Haswell with native commands . Why libvirt is<br>
doing this check then ?<br>
<br>
As i was not sure where the problem lies and i was using libvirt 2.0.0<br>
version i upgraded to 2.5.0 by compiling form source .<br>
But then i faces issue using virsh/virt-manager as seem it was not<br>
compatilble with upgarded version of libvirt.<br>
<br>
Now my system is little messed  around libvirt . I did reinstall/reboot<br>
Quite many things not working .<br>
<br>
Question 2 : How can i restore original Libvirt 2.0.0 .<br>
<br>
</blockquote>
<br></span>
Depends on your distro.  You can just uninstall and install the older<br>
version if your package managed doesn't support downgrading.  But try to<br>
keep on the newer one and fix your workflow.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
br aki<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote>
</blockquote></div><br></div></div></div></div></div></div></div>