subuk / vmango

Your own personal IaaS cloud
https://vmango.org
MIT License
323 stars 55 forks source link

Problem connecting libvirtd socket #40

Closed lord-kyron closed 5 years ago

lord-kyron commented 5 years ago

HI @subuk I am having problem Error: hostinfo failed: cannot acquire libvirt connection: cannot open libvirt connection: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied') I am running ubuntu 18.04 and installed via the Ubuntu 18.04 repo. I am not getting which user must I give permissions to the libvirtd socket? If I am using the default admin/admin I should create such user and give him rights to the socket or? Please, explain! Thanks!

subuk commented 5 years ago

Hello, you need system user vmango, try this:

sudo usermod -aG libvirt vmango

And restart the service:

sudo systemctl restart vmango
lord-kyron commented 5 years ago

Thank you! That solved the problem! Maybe it is good to add the info which exact user needs to be added in the group to the install procedure :)