summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-11-23 11:46:28 +0800
committerQiLiang <liangqi1@huawei.com>2016-11-23 11:50:27 +0800
commitae26a864122abb03cedfd5437153b5e1e47f751c (patch)
tree0e59f1236b5ed0d3c7bdee894a5f679447f0c983 /deploy
parentb15421ac53b8f57011613e29505cd8c0275b5066 (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>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/prepare.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh
index 97771b87..06852a42 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