I’m also facing the below attached error while provisioning a Linux (CentOS) VM using Packer from a custom built image in Azure.
Please advise if you have any suggestions on my below query.
How I built the custom image?
- Created a Linux VM using CentOS7.7 Image chosen from Azure Marketplace.
- Deprovision it using the below command.
- Deallocated and Generalized it.
Link referred for step2 & 3: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image
- Created a Image using that VM (Ex: Name - Centos-Custom-Image-v1)
I’m able to launch a new VM without any errors with that image from Azure Portal.
Now, I tried to create a Golden image (Ex: New-Centos-Golden-Image-v1) by installing necessary packages, dependencies, perform CIS benchmark standard practices in it by using “Packer” on “Centos-Custom-Image-v1”.
I created it without any errors by packer. While launching a new VM from that new golden image (built using packer), it is taking longer time for deploying (more than 30 min) before session timeout . And when I refresh the page after session timeout, it is showing the below attached error message though the VM created successfully.
Could you please guide me to correct my errors in the script if it needs modification to overcome this issue?
It would be much helpful. Attached the packer build script also for your [reference.](### url)
packer-image-build-azure.txt (1.9 KB)