Closed mariojmdavid closed 1 year ago
The issue is probably with your DNS configuration:
It's failing to connect to 127.0.0.53
(I assume your configured DNS) on port 53 to resolve FQDN
. (I guess it tried on udp first?)
Check:
$ cat /etc/resolv.conf
$ nslookup FQDN 127.0.0.53
$ nslookup FQDN # check for Server
127.0.0.53 is usually the internal stub resolver set by systemd-resolved, It seems indeed to be an issue with your DNS. You may not want to modify /etc/resolv.conf manually though and rather check if DNS resolution is working as expected.
thanks indeed that was the problem I have in my .ssh/config
Host virt-*.domain
ProxyCommand ssh -q root@
and added
Host virt-31-a.domain
ProxyCommand ssh -q root@
the FQDN
System Information
Linux distribution
ubuntu 22.04 LTS
Terraform version
Provider and libvirt versions
Checklist
Description of Issue/Question
My main.tf
The virsh host is assessed through an ssh tunnel
Works properly
The issue
it tries to "dial tcp" instead of going to ssh, as is set in uri = "qemu+ssh://
Setup
relevant part above
Steps to Reproduce Issue
apparently with ubuntu 22.04, and above mentioned versions of terraform and libvirt provider connecting to remote virsh host through qemu+ssh://
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
none enabled