nova-libvirt: fix kvm permission issue

When deploying on arm64, permission denied reported:
Terminating instance: libvirtError: internal error: process exited while connecting to monitor: Could not access KVM kernel module: Permission denied

Fix the issue via "chown root:kvm /dev/kvm"

Change-Id: Ib963741918b47d924ca0716643ac14a3fc3cfab2
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
This commit is contained in:
Zhangfei Gao 2017-08-09 14:28:07 +08:00
parent 8c1e4e9052
commit 43650d5837

View File

@ -5,7 +5,7 @@
# Do not remove unless CentOS has been validated
if [[ -c /dev/kvm ]]; then
chmod 660 /dev/kvm
chown root:qemu /dev/kvm
chown root:kvm /dev/kvm
fi
# Mount xenfs for libxl to work