New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host CPU does not provide required features: svm | with a intel CPU #667
Comments
|
Why not use |
|
Okey. I have this problem: is a quick fix in the xml. or change the default model for all hosts. |
Thanks for this. Though have you figured out how to make this the default model for all hosts? |
Maybe you can set this in /etc/libvirt/libvirtd.conf or qemu.conf, but I am not sure. Maybe this an archlinux specific error, because in fedora it seems to work fine. |
|
@luk43 ah, one can also set it in the Even better would be system wide, though for now the above will work for me - thanks! If I figure out the other way, I'll post it here. And yes, also on arch/parabola. |
|
There is always the global Vagrantfile (~/.vagrant.d/Vagrantfile) ... That's what I'm doing for now... |
|
For some reasons libvirt can't deduct the host model. and falls back to qemu64 which appears to have the svm cpu flag required.
To get around this you can change the cpu-mode to passthrough as described in the Vagrant README.
That seems to be the hth |
The libvirt documentation warns: > Beware, due to the way libvirt detects host CPU and due to the fact libvirt > does not talk to QEMU/KVM when creating the CPU model, CPU configuration > created using host-model may not work as expected. The guest CPU may differ > from the configuration and it may also confuse guest OS by using a combination > of CPU features and other parameters (such as CPUID level) that don't work. > Until these issues are fixed, it's a good idea to avoid using host-model and > use custom mode with just the CPU model from host capabilities XML. This was causing errors on my workstation, but not Conor's, which could be due to differences in libvirt versions or hardware. Whatever the cause, the documentation makes clear this setting may be error-prone as bugs are worked out, so it seems most expedient to set `cpu_mode` to `host-passthrough` as suggested in vagrant-libvirt/vagrant-libvirt#667 (comment) until libvirt works out it's bugs or we decide to switch to a custom config as suggested in #85 (comment).
|
I have added to my
|
|
You'll find the reasoning on the exact same page:
And from the qemu-devel thread you linked:
So I don't see a compelling reason to change the default.
It's therefore a tradeoff, and i think host-model covers the largest share of use cases. |
The libvirt documentation warns: > Beware, due to the way libvirt detects host CPU and due to the fact libvirt > does not talk to QEMU/KVM when creating the CPU model, CPU configuration > created using host-model may not work as expected. The guest CPU may differ > from the configuration and it may also confuse guest OS by using a combination > of CPU features and other parameters (such as CPUID level) that don't work. > Until these issues are fixed, it's a good idea to avoid using host-model and > use custom mode with just the CPU model from host capabilities XML. This was causing errors on my workstation, but not Conor's, which could be due to differences in libvirt versions or hardware. Whatever the cause, the documentation makes clear this setting may be error-prone as bugs are worked out, so it seems most expedient to set `cpu_mode` to `host-passthrough` as suggested in vagrant-libvirt/vagrant-libvirt#667 (comment) until libvirt works out it's bugs or we decide to switch to a custom config as suggested in #85 (comment).
On occasion the vagrant tests fail in the CentOS CI with the following error: Call to virDomainCreateWithFlags failed: the CPU is incompatible with host CPU: Host CPU does not provide required features: svm See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1467599 See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10 See-also: vagrant-libvirt/vagrant-libvirt#667 Signed-off-by: Niels de Vos <ndevos@redhat.com>
On occasion the vagrant tests fail in the CentOS CI with the following error: Call to virDomainCreateWithFlags failed: the CPU is incompatible with host CPU: Host CPU does not provide required features: svm See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1467599 See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10 See-also: vagrant-libvirt/vagrant-libvirt#667 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Intermittently, there is failure to bring up the vms in centos-ci with the error message of: > Call to virDomainCreateWithFlags failed: the CPU is incompatible with > host CPU: Host CPU does not provide required features: svm Using cpu_mode='host-passthrough' solves the problem by disabling cpu emulation and using host cpu in passthrough mode. Check out: https://bugzilla.redhat.com/show_bug.cgi?id=1467599 https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10 vagrant-libvirt/vagrant-libvirt#667 Fix taken from heketi/heketi#1008 Signed-off-by: Michael Adam <obnox@samba.org>
Intermittently, there is failure to bring up the vms in centos-ci with the error message of: > Call to virDomainCreateWithFlags failed: the CPU is incompatible with > host CPU: Host CPU does not provide required features: svm Using cpu_mode='host-passthrough' solves the problem by disabling cpu emulation and using host cpu in passthrough mode. Check out: https://bugzilla.redhat.com/show_bug.cgi?id=1467599 https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10 vagrant-libvirt/vagrant-libvirt#667 Fix taken from heketi/heketi#1008 Signed-off-by: Michael Adam <obnox@samba.org>
When I try to "vagrant up" a machine I get a error message like this:
In my understanding, "svm" is the Virtualization driver for AMD CPU chips.
My CPU is an "Intel® Core™ i7-2620M CPU @ 2.70GHz × 4".
I didn't found, where this variable is set.
Here the full log:
http://pastebin.com/kpNB1BJ6
System configuration
OS/Distro version::
Arch Linux (newest packages, installed like here described: "https://wiki.archlinux.org/index.php/Vagrant#vagrant-libvirt")
Libvirt version:
libvirtd (libvirt) 2.3.0
Output of
vagrant version; vagrant plugin list:Installed Version: 1.8.6
Latest Version: 1.8.6
You're running an up-to-date version of Vagrant!
vagrant-libvirt (0.0.36)
A Vagrantfile to reproduce the issue:
I also tried this:
same output.
Are you using upstream vagrant package or your distros package?
Vagrant package. As described in the Arch wiki.
Hopefully its just stupid me and not a serious bug :)
Anyway thanks for any help here!
The text was updated successfully, but these errors were encountered: