From 13b89da3652164ea1956d116c98fbe7db82eeda6 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Mon, 11 Feb 2019 16:36:18 +0800 Subject: 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 --- deploy/prepare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg