[libvirt-users] Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied

Hi all, When I start self-built libvirtd by "libvirtd -d -l -f libvirtd.conf", it shows that error : virNetSocketNewListenUNIX:346 : Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied I have removed some requested comments in libvirtd.conf. The key settings are shown as below: listen_tcp = 1 tcp_port = "16509" listen_addr = "0.0.0.0" unix_sock_group = "root" unix_sock_rw_perms = "0770" unix_sock_ro_perms = "0777" unix_sock_dir = "/var/run/libvirt" Is there any thing wrong? Need I start libvirtd by root? Thanks a lot! Best Regards!Corey

On 11/06/2012 01:01 AM, 何鑫 wrote:
Hi all, When I start self-built libvirtd by "libvirtd -d -l -f libvirtd.conf",
If started as a regular user, then this started a qemu:///session server. But note that qemu:///session is auto-spawned by merely attempting to connect as a regular user, so you don't really need to manually start libvirtd in that case. If you want a qemu:///system server, then it has to be started by root.
Need I start libvirtd by root?
Yes. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
何鑫