From fde06357ee00d1cab9daa397d55f859cf1478a2c Mon Sep 17 00:00:00 2001 From: QiLiang Date: Wed, 23 Nov 2016 11:46:28 +0800 Subject: Fix libvirt error on jumphost Fix permission denied (Libvirt::Error) on the disk image, when boot compass-core vm on some jumphost env. Ref: * https://github.com/adrahon/vagrant-kvm/issues/163 * https://ubuntuforums.org/showthread.php?t=1985773 JIRA: - Change-Id: I17adad6ff6984beac4a4c65d8953a36d3a39f7ce Signed-off-by: QiLiang (cherry picked from commit ae26a864122abb03cedfd5437153b5e1e47f751c) --- deploy/prepare.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/prepare.sh b/deploy/prepare.sh index d326bd5b..4e271967 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -31,7 +31,8 @@ function download_iso() } function prepare_env() { - + sed -i -e 's/^#user =.*/user = "root"/g' /etc/libvirt/qemu.conf + sed -i -e 's/^#group =.*/group = "root"/g' /etc/libvirt/qemu.conf sudo service libvirt-bin restart if sudo service openvswitch-switch status|grep stop; then sudo service openvswitch-switch start -- cgit 1.2.3-korg