aboutsummaryrefslogtreecommitdiff
path: root/contrib/dev
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2018-01-24 10:28:52 +0800
committercaoyuan <cao.yuan@99cloud.net>2018-01-24 10:28:52 +0800
commita209e443dfc4657b67934eaf39038079e0d5f12c (patch)
treeac7c99103498d0e975cfdd771fa1f5ec9b5c8b08 /contrib/dev
parentc086b2c4eca9508c7c84f6f95b1c26f2d6a5b8cd (diff)
downloadkolla-ansible-a209e443dfc4657b67934eaf39038079e0d5f12c.tar.gz
kolla-ansible-a209e443dfc4657b67934eaf39038079e0d5f12c.zip
Add cpu_mode in vagrant/bootstrap.sh
With libvirt 2.0, when using qemu cpu mode is not properly evaluated and need to be set to cpu_mode = none. Add this option when kvm is not supported, otherwise user will still facing errors when launching instances over qemu. Change-Id: I7aa6df356085263d25c6afcc812f035d3ded942b
Diffstat (limited to 'contrib/dev')
-rw-r--r--contrib/dev/vagrant/bootstrap.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/dev/vagrant/bootstrap.sh b/contrib/dev/vagrant/bootstrap.sh
index db521f462..fa9d463b2 100644
--- a/contrib/dev/vagrant/bootstrap.sh
+++ b/contrib/dev/vagrant/bootstrap.sh
@@ -205,7 +205,8 @@ EOF
mkdir -p /etc/kolla/config/nova/
cat > /etc/kolla/config/nova/nova-compute.conf <<EOF
[libvirt]
-virt_type=qemu
+virt_type = qemu
+cpu_mode = none
EOF
# Launch a local registry (and mirror) to speed up pulling images.