You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a module called terraform-equinix-infra(https://github.com/isovalent/terraform-equinix-infra/tree/main). the module is pretty straightforward. It will spin up a baremetal server at https://deploy.equinix.com/, install qemu and a few VM on top of it. However, I found when I run the terraform apply on the laptop that doesn't have the libvirt on it, it will throw out the error saying
dial unix /var/run/libvirt/libvirt-sock: connect: no such file or directory
│
│ with module.infra.provider["registry.terraform.io/dmacvicar/libvirt"],
│ on .terraform/modules/infra/providers.tf line 5, in provider "libvirt":
│
My question is why the provider wants to validate if there is a local unix socket at all? I have to install some packages like to get it working.
It is not clear from description but I think what you want to do is to connect to remote libvirt instance. In that case, you do not need anything libvirt installed on your laptop.
There are plenty of ways to communicate with remote libvirt daemon. Look here and here.
There might be some conflict when using code directly and when using it from a module. I cannot find the exact issue - there's one already in issue tracker - but long story short, you need to specify exactly the same uri in module and outside of it.
System Information
Mac or Linux as the client
Linux distribution
Ubuntu 22.04
Terraform version
Description of Issue/Question
Setup
Steps to Reproduce Issue
I wrote a module called
terraform-equinix-infra
(https://github.com/isovalent/terraform-equinix-infra/tree/main). the module is pretty straightforward. It will spin up a baremetal server at https://deploy.equinix.com/, install qemu and a few VM on top of it. However, I found when I run the terraform apply on the laptop that doesn't have the libvirt on it, it will throw out the error sayingMy question is why the provider wants to validate if there is a local unix socket at all? I have to install some packages like to get it working.
I'm trying to understand if I missed anything or I didn't configure it correctly
The text was updated successfully, but these errors were encountered: