Closed Souldiv closed 11 months ago
Update:
Made it work using a hack, the reason why it was failing is because after running the provision script it reboots the machine and the machine is assigned another IP upon boot and the IP previously used for SSH by packer doesn't work. I was able to login after the provisioning step and assign the IP in the netplan config and apply the changes. It completed the build but I think a better solution is definitely required.
Update 2:
The setup works without any hacks by removing the reboot command. @marcinbojko do you foresee any issues without reboot?
Please adjust DHCP settings in your environment. This has nothing to do with scripts or packer itself.
1.9.4
Windows 11
From what I can tell, it crashes after the provisioning script is completed and right before it places the
motd.sh
file into thetmp
folder. Could you please let me know where I might be going wrong with this? I tried running this using the powershell script you have provided as well as just running the packer command. The results are the same.