From 4650647c81d052d5141c5ba3e3680b79c4cb9ef7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 25 Mar 2020 18:09:57 +0100 Subject: 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 --- vagrant/Vagrantfile | 9 +++++++++ 1 file changed, 9 insertions(+) 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| -- cgit