Reputation: 1929
Recently, I tried to generalize a specific VM in Azure to be used as an image for a future scale set.
After doing that (the wrong way), I tried to create a VM using this image and I got this error -
"OS Provisioning for VM 'MyVM_10' did not finish in the allotted time. However, the VM
guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image
(with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it
properly for use as an image"
Which means that I did not sysprep it properly.
Is there a way to sysprep it now? Or do I have to start all over again and there is no use of the image file that was created in this process?
Upvotes: 1
Views: 1024
Reputation: 19195
You could stop your original VM and use this image to create a VM. Then I think you will not meet this error log. Then you could login this VM and sysprep it and use this VM to create a new image.
If it does not work, I suggest you could download this image's VHD to local. Using this VHD to create a VM on Hyper-V and sysprep it. Then upload this VHD to Azure and use this VHD to create a image. See this link.
Upvotes: 1