question

MonicaLu-5878 avatar image
0 Votes"
MonicaLu-5878 asked azure-cxp-api edited

VM state turns into Stopped in a few seconds after Start

I have a VM in Azure which worked before. However, the VM state turns into "Starting" after I click Start but turns into "Stopped" in a few seconds without any error in Notifications.
Could anyone help me out? Thanks.

azure-virtual-machinesazure-devtestlabs
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.

1 Answer

olgaoos avatar image
0 Votes"
olgaoos answered olgaoos commented

Do you know if where were any updates recently on the VM? I suspect this one is the Windows OS and stop request comes from the OS side as you don't see this request in the Activity Logs at the ARM Management level.

Are you able to see the error message on the booting screen before VM goes to the stopped state?

If yes, try to find the correlated troubleshooting guide:
https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/boot-error-troubleshoot

I'd also suggest two potential resolutions to this issue:

Option 1:
Mount the disk of the faulty VM on the Hyper-V host (Rescue VM) to see the pending updates/booting issue. Reverse/finish these updates there, fix the problem, unmount and detach the repaired OS disk and replace the OS disk used by the VM with the repaired OS disk. Detailed steps there:
https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-vm-by-use-nested-virtualization

Option 2:
Please follow up steps from the "Azure VM startup is stuck at Windows update"
https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-stuck-updating-boot-error




· 9
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.

Yes. It is a Windows OS vm.
I cannot see the booting screen because it showed stopped before I am able to remote the VM.

Thank you, I will try the other two options.

0 Votes 0 ·

Yeah! I worked several similar cases previously (VM goes to the Stopped State from within the guest OS) and most of these were related to the pending windows updates.

0 Votes 0 ·

Hey @MonicaLu-5878,

I am just following up to find if your were able to resolve the issue.

Thanks!

0 Votes 0 ·

I didn't have a change to try your solution because my VM shows "Corrupted" after that.
Does your solution still work if the VM shows "Corrupted"?

0 Votes 0 ·
Show more comments