Difference between revisions of "Vnx-install-modify-qemuconf"

From VNX
Jump to: navigation, search
(Created page with " security_driver = "none" user = "root" group = "root" cgroup_device_acl = [ "/dev/null", "/dev/full", "/dev/zero", "/dev/random", "/dev/urandom", "/dev/ptmx"...")
 
Line 1: Line 1:
  
 +
If you have just installed libvirt, the parameters to be modified should be commented in the configuration file. So, you just can copy/paste this commands to modify it:
  
  security_driver = "none"
+
  echo 'security_driver = "none"'                                    >> /etc/libvirt/qemu.conf
  user = "root"
+
  echo 'user = "root"'                                                >> /etc/libvirt/qemu.conf
  group = "root"
+
  echo 'group = "root"'                                              >> /etc/libvirt/qemu.conf
  cgroup_device_acl = [
+
  echo 'cgroup_device_acl = ['                                        >> /etc/libvirt/qemu.conf
    "/dev/null", "/dev/full", "/dev/zero",
+
echo '  "/dev/null", "/dev/full", "/dev/zero",'                    >> /etc/libvirt/qemu.conf
    "/dev/random", "/dev/urandom",
+
echo '  "/dev/random", "/dev/urandom",'                            >> /etc/libvirt/qemu.conf
    "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
+
echo '  "/dev/ptmx", "/dev/kvm", "/dev/kqemu",'                    >> /etc/libvirt/qemu.conf
    "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio", "/dev/net/tun"
+
echo '  "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio", "/dev/net/tun"' >> /etc/libvirt/qemu.conf
  ]
+
  echo ']                                                             >> /etc/libvirt/qemu.conf

Revision as of 12:19, 12 March 2017

If you have just installed libvirt, the parameters to be modified should be commented in the configuration file. So, you just can copy/paste this commands to modify it:

echo 'security_driver = "none"'                                     >> /etc/libvirt/qemu.conf
echo 'user = "root"'                                                >> /etc/libvirt/qemu.conf
echo 'group = "root"'                                               >> /etc/libvirt/qemu.conf
echo 'cgroup_device_acl = ['                                        >> /etc/libvirt/qemu.conf
echo '   "/dev/null", "/dev/full", "/dev/zero",'                    >> /etc/libvirt/qemu.conf
echo '   "/dev/random", "/dev/urandom",'                            >> /etc/libvirt/qemu.conf
echo '   "/dev/ptmx", "/dev/kvm", "/dev/kqemu",'                    >> /etc/libvirt/qemu.conf
echo '   "/dev/rtc", "/dev/hpet", "/dev/vfio/vfio", "/dev/net/tun"' >> /etc/libvirt/qemu.conf
echo ']                                                             >> /etc/libvirt/qemu.conf