Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues configuring AKS on Server 2022 #366

Open
Jarod1662 opened this issue Dec 12, 2023 · 3 comments
Open

Issues configuring AKS on Server 2022 #366

Jarod1662 opened this issue Dec 12, 2023 · 3 comments

Comments

@Jarod1662
Copy link

Jarod1662 commented Dec 12, 2023

Trying to setup the Azure Kubernetes Service for evaluation and have hit a roadblock!

I originally started to configure the service using Windows Admin Center and each time it get's to the validation stage it hangs at the Validate KVA test, thinking it maybe hardware related I made some changes but still hangs at this step.

Looking around online, I decided to go down the powershell route to try and get this setup however I'm hitting the same issue here even with a clean setup!
image

Inspecting the control-plane VM it appears to be complaining about invalid configuration and unable to run various scripts.
image

Any one experience this before and know how to get round this?

NOTE - Looking at a single node on Windows Server as a PoC

@Elektronenvolt
Copy link

Elektronenvolt commented Dec 12, 2023

@Jarod1662 - looks like Hyper-V is not "ready". The KVA check creates a virtual machine and tries to reach it. If the VirtualSwitch is misconfigured it doesn't work. Same issue as here: #363

Do you test on hardware or a virtual machine with nested virtualization?

@Jarod1662
Copy link
Author

@Jarod1662 - looks like Hyper-V is not "ready". The KVA check creates a virtual machine and tries to reach it. If the VirtualSwitch is misconfigured it doesn't work. Same issue as here: #363

Do you test on hardware or a virtual machine with nested virtualization?

Interesting! I was following some guides online and used their proposed network configuration for the adapter! They all seem to use roughly the same addresses

This is being done inside a virtual machine with nested virtualization

@Elektronenvolt
Copy link

The Aks Hybrid docs expect that you have your underlying Hyper-V configured correctly. For nested virtualization you need to turn on MacSpoofing as documented here: Run Hyper-V in a Virtual Machine with Nested Virtualization

I have test setups running in Windows Server 2022 with nested virtualization - you can do:

  • Create a virtual switch and connect it to external network
  • disable 'Allow management operating system to share this network adapter'
  • don't use a VLAN ID
  • shutdown the VM and enable MAC spoofing on that network adapter Get-VMNetworkAdapter -VMName <VMName> | Set-VMNetworkAdapter -MacAddressSpoofing On

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants