libvirt-ocp4-provisioner icon indicating copy to clipboard operation
libvirt-ocp4-provisioner copied to clipboard

libvirt-sock missing on Fedora 36

Open ayates83 opened this issue 2 years ago • 1 comments

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

ayates83 avatar Jun 18 '22 21:06 ayates83

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

wakemaster39 avatar Aug 04 '22 12:08 wakemaster39