Home > Uncategorized > virt-manager as non-root user

virt-manager as non-root user

trying to start virt-manager as a normal user will yield a “Unable to open a connection…” message. To fix this, we need to change access permissions for libvirtd.

Edit /etc/libvirt/libvirtd.conf:

echo "unix_sock_group = \"libvirt\"
unix_sock_rw_perms = \"0770\"
auth_unix_rw = \"none\"

We also jneed to create the group “libvirt” we just set:

groupadd -g $GID libvirt; usermod -a -G libvirt $USER

Be sure to set $GID and $USER correctly.

A restart of the daemon should then do the trick:

service libvirtd stop; service libvirtd start

if virt-manager the shows only squares instead of letters, install the necessary fonts:

yum -y groupinstall "Fonts"

Categories: Uncategorized Tags:
  1. No comments yet.
  1. December 21st, 2015 at 02:49 | #1
  2. December 23rd, 2015 at 22:00 | #2