Skip to content

Instantly share code, notes, and snippets.

Created October 23, 2017 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c0ba4a0a0f4c0dbcd2ae844e34672c2e to your computer and use it in GitHub Desktop.
Save anonymous/c0ba4a0a0f4c0dbcd2ae844e34672c2e to your computer and use it in GitHub Desktop.
0:12574:jd@65poeritznote (SB=off)~ [6]$ virsh -c qemu:///system
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
0:12575:jd@65poeritznote (SB=off)~ [1]$ ls -la /var/run/libvirt/
total 0
drwxr-xr-x 8 root root 260 Oct 23 12:37 .
drwxr-xr-x 33 root root 1340 Oct 23 12:58 ..
drwxr-xr-x 2 root root 40 Oct 22 09:59 hostdevmgr
srwx------ 1 root libvirt 0 Oct 23 12:37 libvirt-admin-sock
srwxrwx--- 1 root libvirt 0 Oct 23 12:37 libvirt-sock
srwxrwxrwx 1 root libvirt 0 Oct 23 12:37 libvirt-sock-ro
drwxr-xr-x 2 root root 40 Oct 22 10:00 lxc
drwxr-xr-x 2 root root 100 Oct 23 12:37 network
drwxr-xr-x 2 root root 40 Oct 22 09:59 qemu
drwxr-xr-x 2 root root 40 Oct 22 09:59 storage
drwxr-xr-x 2 root root 40 Oct 22 10:00 uml-guest
srwx------ 1 root root 0 Oct 22 09:59 virtlockd-sock
srw-rw-rw- 1 root root 0 Oct 22 09:59 virtlogd-sock
0:12576:jd@65poeritznote (SB=off)~ [0]$ id jd
uid=1000(jd) gid=1000(jd) groups=1000(jd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),121(lpadmin),131(sambashare),134(libvirt)
0:12577:jd@65poeritznote (SB=off)~ [0]$ systemctl status libvirtd
● libvirtd.service - Virtualization daemon
Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabl
Active: active (running) since Mon 2017-10-23 12:37:06 CEST; 31min ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 1425 (libvirtd)
Tasks: 18
CGroup: /system.slice/libvirtd.service
├─ 1425 /usr/sbin/libvirtd
├─25745 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
└─25746 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment