title: KVM - failed to connect to the hypervisor error
body: <p>I am trying to run kvm, but this error occurs: </p>
  
  <pre><code>$ virsh -c qemu:///system list
  error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
  error: failed to connect to the hypervisor
  </code></pre>
  
  <p>So I enter to: </p>
  
  <pre><code>cd /var/run/libvirt/
  </code></pre>
  
  <p>and changed privilages by:</p>
  
  <pre><code>sudo chmod -R +777 libvirt
  </code></pre>
  
  <p>Everything is working now, but I have concerns about security issues, as privileges for all users and groups is not the safest way to do it? What could you recommend instead?</p>