aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2019-02-11 16:36:18 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2019-02-11 16:36:18 +0800
commit13b89da3652164ea1956d116c98fbe7db82eeda6 (patch)
tree24bc01ab2d17a8a107396996153962df934fac3f /deploy
parent5cb29909a1fa14e3f287f05d79c04b0c0152a214 (diff)
Fix libvirt parameter
JIRA: - Config libvirtd_opts to use "-l" to listen to tcp in /etc/default/libvirt-bin Change-Id: I9d282385c00032448eda322bfd4f1fa0d3850e58 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/prepare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/prepare.sh b/deploy/prepare.sh
index 7447ae72..59d76824 100755
--- a/deploy/prepare.sh
+++ b/deploy/prepare.sh
@@ -53,7 +53,7 @@ function prepare_env() {
sudo sed -i 's/^.\?tcp_port.*/tcp_port = "16509"/g' /etc/libvirt/libvirtd.conf
sudo sed -i 's/^.\?listen_addr.*/listen_addr = "0.0.0.0"/g' /etc/libvirt/libvirtd.conf
sudo sed -i 's/^.\?auth_tcp.*/auth_tcp = "none"/g' /etc/libvirt/libvirtd.conf
- sudo sed -i 's#\(exec /usr/sbin/libvirtd \$libvirtd_opts\)$#\1 -l#g' /etc/init/libvirt-bin.conf
+ sudo sed -i 's/^.\?libvirtd_opts.*/libvirtd_opts = "-l"/g' /etc/default/libvirt-bin
sudo service libvirt-bin restart
if sudo service openvswitch-switch status|grep stop; then