Hi all<div><br></div><div>I have a Fedora release 17 (Beefy Miracle) with libvirt versions:</div><div><br></div><div>libvirt-0.9.11.3-1.fc17.x86_64</div><div>virt-manager-0.9.1-3.fc17.noarch</div><div><br></div><div>I have allowed non-root user to user libvirt by allowing the user through polkit</div>

<div><br></div><div>cat /etc/polkit-1/localauthority/50-local.d/cat 50-org.example-libvirt-remote-access.pkla </div><div><br></div><div><div>[Remote libvirt SSH access]</div><div>Identity=unix-group:virt</div><div>Action=org.libvirt.unix.manage;org.libvirt.unix.monitor</div>

<div>ResultAny=yes</div><div>ResultInactive=yes</div><div>ResultActive=yes</div></div><div><br></div><div>After doing the above i am able to connect to virt-manager as non-root user but unable to create storage pools. </div>

<div><br></div><div><div>[juno@reserved ~]$ id</div><div>uid=1001(juno) gid=1001(juno) groups=1001(juno),1002(virt) context=staff_u:staff_r:staff_t:s0</div><div>[juno@reserved ~]$ virsh</div><div>Welcome to virsh, the virtualization interactive terminal.</div>

<div><br></div><div>Type:  'help' for help with commands</div><div>       'quit' to quit</div><div><br></div><div>virsh # pool-list</div><div>error: Failed to reconnect to the hypervisor</div><div>error: no valid connection</div>

<div>error: Failed to connect socket to '@/home/juno/.libvirt/libvirt-sock': Connection refused</div></div><div><div><br></div><div>virsh # list</div><div>error: Failed to reconnect to the hypervisor</div><div>error: no valid connection</div>

<div>error: Failed to connect socket to '@/home/juno/.libvirt/libvirt-sock': Connection refused</div></div><div><br></div><div><div>I have defined pool called virt-images (/virt-images) which the non-root (in this case the username is Juno)  user has the read/write permissions </div>

<div><br></div><div>Also tried adding the permissions to unix socket in /etc/libvirt/libvirtd.conf as below:</div><div><br></div><div><div> cat /etc/libvirt/libvirtd.conf  | grep -v ^$ | grep -v ^#</div><div>unix_sock_group = "virt"</div>

<div>unix_sock_ro_perms = "0777"</div><div>unix_sock_rw_perms = "0770"</div><div>unix_sock_dir = "/var/run/libvirt"</div></div><div><br></div><div>But the unix socket are created in /var/run/libvirt and not in users home directory, So how do we make a non-root user virsh commands check the socket created in /var/run/libvirt. It always checks for the socket in user's home directory ?</div>

<div><br></div><div>Any pointers on above would be helpfu.</div><div><br></div><div>Regards</div><div>Niranjan</div><div><br></div></div>