aboutsummaryrefslogtreecommitdiff
path: root/docker/nova-compute
diff options
context:
space:
mode:
authorRyan Hallisey <rhallise@redhat.com>2015-03-16 15:51:33 -0400
committerRyan Hallisey <rhallise@redhat.com>2015-03-16 15:52:03 -0400
commit08bd99a50fcc48539e69ff65334f8e22c4d25f6f (patch)
treefea0a2be4fc7336f1ec88bdcf924453a5eacc69d /docker/nova-compute
parentdcb607d3690f78209afdf5868dc3158f2a5f4722 (diff)
downloadkolla-08bd99a50fcc48539e69ff65334f8e22c4d25f6f.tar.gz
kolla-08bd99a50fcc48539e69ff65334f8e22c4d25f6f.zip
Nova boot will fail if the host doesn't have libvirt installed
Libvirt contains a package that sets the permissions of KVM. If the host does not have libvirt installed the permissions will never be set and nova boot will fail. Change-Id: Ie5509199391db55e0984d59a6623f021f3ae46c1
Diffstat (limited to 'docker/nova-compute')
-rwxr-xr-xdocker/nova-compute/nova-libvirt/start.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/nova-compute/nova-libvirt/start.sh b/docker/nova-compute/nova-libvirt/start.sh
index 740f67f67..d92f52ab0 100755
--- a/docker/nova-compute/nova-libvirt/start.sh
+++ b/docker/nova-compute/nova-libvirt/start.sh
@@ -1,3 +1,8 @@
#!/bin/sh
+
+# If libvirt is not installed on the host permissions need to be set
+chmod 660 /dev/kvm
+chown root:kvm /dev/kvm
+
echo "Starting libvirtd."
exec /usr/sbin/libvirtd