I’m trying to build qcow2 format image for Windows server 2025 and when asking Packer to use UEFI mode, it’s unable to boot from ISO and it just drops me in EFI Shell where I see the content of the ISO is FS1: not in FS0:
It seems like in UEFI, the EFI shell is first in the boot order. I don’t think its possible to alter this in UEFI today in packer. Perhaps need to figure out a workaround.
As a workaround, u can try running fs1:\bootmgr.efi as the first boot_command in packer. This will hopefully boot the right iso.
Additionally add a wait for maybe 60s <wait60> after this to let the iso boot.
I seem to be having issues with this as well. When adding device_type = “UEFI” to my .hcl, it causes Packer to turn on the VM before the CD-ROM is initialized, and I get an error stating it is timed out trying to connect to the CD-ROM for uefi in the Nutanix console window along with press any key to continue. If I send the Nutanix console a ctrl + alt + delete, it restarts and the error is gone because the CD-ROM now had time to initialize. I have tried setting boot_priority = “cdrom” and I have added a wait time as well. I created a new ISO that had the Nutanix VirtIO drivers added in because of the issue with Windows needing the scsi driver to even see the disk. If I take out the device_type = “uefi” out of my hcl file, it sees the partitions but states it cannot install windows because it is using GPT partitioning. Has anyone found a way to get Windows to boot using uefi and using Packer to create the VM?