mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 07:25:53 +03:00
[GH-ISSUE #240] Error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied #159
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TurboCheetah on GitHub (Jun 10, 2019).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/240
I have just installed it and have not changed anything. I added a compute node and then got this error. I added myself to the libvirt group and virt-manager works just fine. Only Webvirtcloud has this issue. Help?
@catborise commented on GitHub (Jun 10, 2019):
where did you install webvirtcloud?
on kvm host or a vm instance?
which protocol did you use while adding host(ssh, tcp, ...)
@shinebayar-g commented on GitHub (Nov 6, 2019):
After fresh install on ubuntu 18.04 I've got the same issue after adding compute machine by selecting local option. What should I do? Compute status says: Connected. But I cannot create Instance on it.
@catborise commented on GitHub (Nov 6, 2019):
Have you run that script on the host?
wget -O - https://clck.ru/9V9fH | sudo sh
Before you run that script you can look what is it. What configs have it.
What is the error while creating instance?
@shinebayar-g commented on GitHub (Nov 6, 2019):
Yes I've run the script. But I guess I mixed up users. I initially started process as sudo user and then run that script as root user. I guess this fucked up my installation. Recreating fresh VPS again.
@catborise commented on GitHub (Nov 6, 2019):
I recommend you that isolate webvirtcloud from hypervisor host.
How;
So that your users and other Configurations do not mixed up.
@shinebayar-g commented on GitHub (Nov 6, 2019):
I see thank you very much for your suggestion. Right now this is my first try of webvirtcloud. So I'm just testing things out. Once I get familiar with the project concepts I'll create dedicated host for webvirtcloud :)
Also I'll try to enhance docs here and there If I see something broken.
@shinebayar-g commented on GitHub (Nov 6, 2019):
Okay, just finished installing. I'm still seeing this error. Here is my whole installation steps.
Now I'm here.
I guess I followed everything correctly, are you seeing anything abnormal here?
@catborise commented on GitHub (Nov 6, 2019):
Hmm, i never try local connection. I should ...
Have you install virt-manager? Can you run it to check if libvirt service is working. This problem seems to libvirt service problem.
@shinebayar-g commented on GitHub (Nov 6, 2019):
I didn't install virt-manager. I guess it wasn't needed.
Edit: Ah it is called libvirtd
@catborise commented on GitHub (Nov 6, 2019):
Virt-manager does not need. But to check somethings, it is useful.
Please run on the host:
virsh list
@shinebayar-g commented on GitHub (Nov 6, 2019):
Ran command as my current user
@catborise commented on GitHub (Nov 6, 2019):
As you see it is related with users and permissions.
This link mention that permission problem, could you look:
http://thelinuxerrors.blogspot.com/2012/10/failed-to-connect-socket-to.html
@shinebayar-g commented on GitHub (Nov 6, 2019):
It is indeed. Okay I've fixed it. I've added myself to
libvirtgroup. Nowvirsh listcommand works fine for my user. But on the web I'm still seeing the error?I've tried to restart all supervisor processes, rebooted server no help. What should I do now? Should I add
www-datauser intolibvirtgroup too? @catboriseEdit: adding
www-datauser tolibvirtgroup helped? After reboot now I got rid of error.@shinebayar-g commented on GitHub (Nov 6, 2019):
Now I'm seeing this error. How can I add storage?
@catborise commented on GitHub (Nov 6, 2019):
Libvirt-sock problem Seems to solved.
Latest one is not related with that problem.
—-
You should create a storage pool on the host.
Go to computes.
Storages, create a pool which will contain disk images.
@shinebayar-g commented on GitHub (Nov 6, 2019):
Just double checked it by removing
www-datauser fromlibvirtgroup again. Error was caused by this indeed. I'll make PR changes to document these things.Oh thank you! I didn't know I actually had to click on the compute name. Now I'm seeing whole lot of menus out there! Thank you very much.
/close