question

SS-4575 avatar image
0 Votes"
SS-4575 asked prmanhas-MSFT commented

OSProvisioningTimedOut while creating VM from a custom Linux VHD

Hi All,
I have followed the steps to make a custom VHD for a Linux VM using the following resources:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/update-linux-agent#oracle-linux-6-and-oracle-linux-7
https://docs.microsoft.com/en-gb/azure/virtual-machines/linux/oracle-create-upload-vhd?WT.mc_id=Portal-Microsoft_Azure_Support#oracle-linux-64-and-later
https://docs.microsoft.com/en-gb/azure/virtual-machines/linux/create-upload-generic#general-linux-installation-notes

My custom Linux VHD is of fixed size and created using Hyper-V
I am still getting the following error:
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "OSProvisioningTimedOut",
"message": "OS Provisioning for VM 'testVMappsvr' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared (generalized).\r\n Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \r\n Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \r\n * If you are deploying more than 20 Virtual Machines concurrently, consider moving your custom image to shared image gallery. Please refer to https://aka.ms/movetosig for the same."
}
]
}

Is there anything else which i can try out? How do I debug this and find out what is wrong?
Is there a tool which will help me in checking my VHD before uploading, that will tell me all is ok for creating an image/VM on azure from VHD?

Thanks,
S

azure-virtual-machines
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hey @SS-4575,
I am not sure about all debug options, first what came to my mind is to collect guest os logs on the failed vm and review it. To do it, you will need to attach os disk of the failed VM as a data disk to any other VM and look into the logs under the next paths:

On a Linux virtual machine
/var/log/waagent.log
/var/log/messages
/var/log/maillog
/etc/waagent.conf
/etc/logrotate.conf
/etc/httpd/conf/httpd.conf
The full content of /var/log/azure

Look for keywords [WARN], [ERROR]
More specifically, on a Linux virtual machine first look at /var/log/waagent.log. Look for something like the below. The "Provisioning complete" signal is what is sent to the Host to say the Guest is correctly provisioned.
Also, check what you have in the booting screen in the Azure Portal.

Sincerely,
Olga

0 Votes 0 ·

Hi Olga,
Thanks for replying. I was able to attach the OS disk of the failed VM as a data disk to other VM. Collected the following logs. Please see attached.
94542-waagent.log
94497-waagent-conf.txt

As suggested I can see few WARNINGS and ERRORS:
Please see attached:94554-waagent-warn-error.log


Will you be to to suggest what might be going wrong here?

Thanks for your help.
S


0 Votes 0 ·
waagent.log (4.8 KiB)
waagent-conf.txt (4.2 KiB)

Any Suggestions please ? Kind of stuck here.

Thanks,
S

0 Votes 0 ·
Show more comments

0 Answers