nutanix-cloud-native / packer-plugin-nutanix

Packer Builder for Nutanix AHV
https://developer.hashicorp.com/packer/integrations/nutanix-cloud-native/nutanix
Apache License 2.0
35 stars 19 forks source link

Windows VM build in setup boot loop #205

Open ktinthecloud opened 3 weeks ago

ktinthecloud commented 3 weeks ago

After upgrading AOS to 6.5.6.6 and PC to 2023.4.0.2 I've noticed that my windows packer builds are breaking. The packer VM goes into setup and successfully finishes the OS install, but then reboots and goes back into setup and the process repeats in an endless loop.

Looks like the OS ISO is not being ejected from the VM after setup finishes and the VM is rebooted. If I eject the ISO manually the build finishes successfully.

Also, my Ubuntu builds are still working fine. Any way to fix the windows builds?

Peter1295 commented 4 days ago

Hello, in my case issue was that the ISO was generated on the legacy boot, change it to UEFI -> _boot_type = "uefi"_ (it's case sensitive) and make sure you have proper Autounattend.xml file with UEFI disk configuration, I have used as template this one