Skip to content

Instantly share code, notes, and snippets.

@dbirks
Last active September 18, 2017 16:09
Show Gist options
  • Save dbirks/09154d92c284b1f71813b36abc6a82ff to your computer and use it in GitHub Desktop.
Save dbirks/09154d92c284b1f71813b36abc6a82ff to your computer and use it in GitHub Desktop.
Allow users to access libvirt in Debian 9

Allow users to access libvirt in Debian 9 Stretch

In /etc/libvirt/libvirtd.conf, uncomment these two lines:

unix_sock_group = "libvirt"

unix_sock_rw_perms = "0770"

Then add your user to the libvirt and libvirt-qemu groups:

sudo usermod -a -G libvirt david
sudo usermod -a -G libvirt-qemu david

Sources:

https://libvirt.org/auth.html

https://wiki.debian.org/KVM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment