Browse Source

Fix root permission issue

Change-Id: I6d7cdab7505f5ab42c52457169dce5970f8bfac8
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Guo Ruijing 2 years ago
parent
commit
5e5db9819b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      demo/02_install_packages.sh

+ 5
- 0
demo/02_install_packages.sh View File

@@ -17,6 +17,11 @@ sudo apt-get install virt-manager libvirt-bin qemu-system -y
17 17
 sudo virsh net-destroy default
18 18
 sudo virsh net-undefine default
19 19
 sudo rm -rf /etc/libvirt/qemu/networks/autostart/default.xml
20
+cat << EOF | sudo tee /etc/libvirt/qemu.conf
21
+user = "root"
22
+group = "root"
23
+EOF
24
+
20 25
 sudo service libvirt-bin restart
21 26
 sudo ifconfig virbr0 down
22 27
 sudo brctl delbr virbr0

Loading…
Cancel
Save