aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-11-23 11:46:28 +0800
committerqi liang <liangqi1@huawei.com>2016-11-28 08:51:29 +0000
commitfde06357ee00d1cab9daa397d55f859cf1478a2c (patch)
tree59fa2c62b01bd2ffd824ee133c536a4087f17412
parentf867a54a4634f99141065d0ef52b21d32670fab6 (diff)
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 <liangqi1@huawei.com> (cherry picked from commit ae26a864122abb03cedfd5437153b5e1e47f751c)
-rwxr-xr-xdeploy/prepare.sh3
1 files changed, 2 insertions, 1 deletions
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