summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-25 18:09:57 +0100
committerMichael Adam <obnox@samba.org>2020-03-25 22:32:23 +0100
commit4650647c81d052d5141c5ba3e3680b79c4cb9ef7 (patch)
tree280ce0bee151c2e7412951f06bcddc108f00fd4e
parent874d7d6aae6e72e7c26276e987d0c430d6f3cf5a (diff)
downloadsamba-integration-4650647c81d052d5141c5ba3e3680b79c4cb9ef7.tar.gz
samba-integration-4650647c81d052d5141c5ba3e3680b79c4cb9ef7.tar.xz
samba-integration-4650647c81d052d5141c5ba3e3680b79c4cb9ef7.zip
Fix ci runs due to vagrant-libvirt CPU problem.
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 https://github.com/heketi/heketi/pull/1008 Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--vagrant/Vagrantfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 9e17c52..09214c4 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -30,6 +30,15 @@ Vagrant.configure("2") do |config|
# end
# ```
#v.qemu_use_session = false
+
+ # change cpu mode to passthrough as workaround for problems in the ci,
+ # refer to bugs:
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1467599
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10
+ # vagrant-libvirt/vagrant-libvirt#667
+ # taken from:
+ # https://github.com/heketi/heketi/pull/1008
+ v.cpu_mode = 'host-passthrough'
end
(0..NODES-1).each do |i|