How to automate deployment using HyperV? #6018
Unanswered
Flightkick
asked this question in
Q&A
Replies: 1 comment 9 replies
-
The system extension can be bundled into the Talos install image which solves chicken-and-egg problem here. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to get a development environment going I've been trying to automate deployment of a Talos (v1.1) cluster using HyperV.
My environment:
The toolstack I'm using for this is as follows:
bmatcuk/vagrant
provider to deploy infrastructure on development environments.* Sidenote: Using Vagrant comes with some challenges as it is opinionated in assuming an SSH connection will be available. I could probably work around that by disabling the communicator and using post-hooks to configure and finalize the deployment. But this is not an issue for now.
The issue
The main issue I'm facing is that, when Talos is deployed to HyperV, the VM won't advertise it's IP address to the hypervisor.
I found a somewhat related post which explains that on Ubuntu, certain packages are necessary to make this work.
This behavior is the same whether the VM is deployed by Vagrant or manually using the New-TalosVM Powershell module.
In case anyone would like to replicate, the original Powershell module didn't work for me as it was missing some configuration.
Check my PR if the original module doesn't work for you.
I'm not that familiar with Talos Linux, but if I understand the docs correctly I would assume I could use extension services for the purpose of installing such packages.
Unfortunately, and this is the crux; In order to apply this configuration, I would need to have the VM's IP address in order to communicate with it's API. Which is not available, because the VM doesn't report it's IP.
Of course I could connect to the serial console and find the IP manually but I would prefer an automated solution.
Any thoughts? Has anyone managed to get automated deployments using HyperV working?
Beta Was this translation helpful? Give feedback.
All reactions