Hi Everyone, Newbie here to the forum and Devops with Packer.
Using Brandon Lee's template for my automated windows server build - PackerBuilds/vmware-WindowsServer2022 at main ยท brandonleegit/PackerBuilds template. I was able successfully validate but ran into an issue during the packer build process. I need to add a static ip address. Since it static, I am guessing this should be added to the windbuild.json or should this be in the variables.json?ย
Here is the error I got below:
PS C:\Packer> packer build -var-file .\variables.json .\win19build.json
vsphere-iso: output will be in this color.
==> vsphere-iso: Creating virtual machine...
==> vsphere-iso: Customizing hardware...
==> vsphere-iso: Mounting ISO images...
==> vsphere-iso: Adding configuration parameters...
==> vsphere-iso: Creating floppy disk...
vsphere-iso: Copying files flatly from floppy_files
vsphere-iso: Copying file: SetUp/win19/autounattend.xml
vsphere-iso: Copying file: SetUp/setup.ps1
vsphere-iso: Copying file: SetUp/vmtools.cmd
vsphere-iso: Done copying files from floppy_files
vsphere-iso: Collecting paths from floppy_dirs
vsphere-iso: Resulting paths from floppy_dirs : []
vsphere-iso: Done copying paths from floppy_dirs
vsphere-iso: Copying files from floppy_content
vsphere-iso: Done copying files from floppy_content
==> vsphere-iso: Uploading floppy image...
==> vsphere-iso: Adding generated floppy image...
==> vsphere-iso: Setting temporary boot order...
==> vsphere-iso: Powering on virtual machine...
==> vsphere-iso: Waiting for IP...
==> vsphere-iso: timeout waiting for IP address
==> vsphere-iso: Clearing boot order...
==> vsphere-iso: Powering off virtual machine...
==> vsphere-iso: Deleting floppy image...
==> vsphere-iso: Destroying VM...
vsphere-iso: Closing sessions ....
Build 'vsphere-iso' errored after 32 minutes 12 seconds: timeout waiting for IP address
==> Wait completed after 32 minutes 12 seconds
==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: timeout waiting for IP address
==> Builds finished but no artifacts were created.