何鑫
2012-Nov-06 08:01 UTC
[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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://listman.redhat.com/archives/libvirt-users/attachments/20121106/d4691250/attachment.htm>
Eric Blake
2012-Nov-06 13:37 UTC
[libvirt-users] Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied
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 at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 617 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121106/c2451188/attachment.sig>