Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvirt-sock missing on Fedora 36 #39

Open
ayates83 opened this issue Jun 18, 2022 · 1 comment
Open

libvirt-sock missing on Fedora 36 #39

ayates83 opened this issue Jun 18, 2022 · 1 comment

Comments

@ayates83
Copy link

I kept getting the error about:

TASK [Use TF project to ensure pool and network are defined] **************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Terraform plan could not be created\r\nSTDOUT: \r\n\r\nSTDERR: \nError: failed to dial libvirt: dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory\n\n with provider["registry.terraform.io/dmacvicar/libvirt"],\n on libvirt-resources.tf line 10, in provider "libvirt":\n 10: provider "libvirt" {\n\n"}

PLAY RECAP ****************************************************************************************************************************************************************************
localhost : ok=15 changed=0 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0

This is fixed by editing /etc/libvirt/libvirtd.conf and adding:

unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"

and then restarting libvirtd:

sudo systemctl restart libvirtd

@wakemaster39
Copy link

I just wanted to add an update here as the above did not work for me. But I was able to track down how to enable it.

https://www.spinics.net/linux/fedora/libvirt-users/msg13580.html

sudo systemctl enable --now virtproxyd.socket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants