Skip to contentSkip to conversation

inconsistent handling of "qemu64" CPU model

Qemu-devel Divan Santana 1 participant 1 message Oct 15, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines

In your case, you should be able to use

<cpu mode'custom' match='exact'>
<model>qemu64</model>
<feature name='svm' policy='disable'/>
</cpu>

to get the same CPU model you'd get by default (if not, you may need to also add <feature name='vmx' policy='require'/>).

Alternatively

Quoted 7 lines

<cpu mode'custom' match='exact'>
<model>qemu64</model>
<feature name='svm' policy='force'/>
</cpu>

should work too (and it would be better in case you use it on an AMD host).

Does anyone know how one can one make the above the default behavior on a system, using libvirt?

The reason, is that I make use on some vagrant boxes, which have this issue. I understand that the boxes have incorrectly configured and hence I have this issue.

I'd prefer to set the above as default on my system, rather then editing all the vagrant boxes I'm using