taliesins / terraform-provider-hyperv

HyperV provider for Terraform
Mozilla Public License 2.0
225 stars 80 forks source link

Support for Hyper-V cluster #260

Open fabioteixei opened 3 months ago

fabioteixei commented 3 months ago

Hello,

I’m using a provider with standalone Hyper-V servers and it’s working fine. However, I’m experiencing some issues when I try to use it with a clustered Hyper-V server.

In the provider configuration, I’ve entered the Fully Qualified Domain Name (FQDN) of my cluster instead of the FQDN of the standalone server. The provider can communicate with the server, but due to the round-robin DNS setup for the cluster FQDN, the provider ends up connecting to different Hyper-V servers instead of the cluster itself.

This leads to a situation where sometimes the provider is unable to locate a Virtual Machine (VM) on the server. This is because the VM is running on a different server in the cluster, not on the server that the provider is currently connected to.

I’m not sure how to resolve this. Is there a way to provide a list of servers to the provider instead of just one? This way, I could include all the servers in the cluster in this list, and the provider would attempt to fetch data from all servers instead of just one in the cluster.

Thank you.