microsoft / azserialconsole

Azure Serial Console
17 stars 11 forks source link

Reset VM (Hard) does not actually work sometimes #87

Open kvstark opened 3 years ago

kvstark commented 3 years ago

I have a VM where sometimes it is hung with the serial console output saying "Reached target Shutdown". This is for a Linux Centos 7 VM. I select "Reset VM (Hard)" from the Power button in the serial console but it doesn't actually reset the machine. Sometimes it works but sometimes it doesn't. It seems like if I leave it in the "Reached target Shutdown" state for a while before hitting the reset key then it doesn't work. In this state, I can select reset vm hard multiple times from the UI with no effect. I can also select sysrq reboot with no effect and even NMI with no effect. By no effect I mean the VM serial console output doesn't change at all for 20+ minutes and the VM status is still Running.

It seems like if you have a Reset VM (Hard) key it should always reset the machine immediately. Can someone please investigate why this might happen? It was posited by someone that the vm is actually reset but the Azure command layer has somehow not actually started it again. I'm not sure where to post this issue so thought this would be a good place to start since it is an issue with the serial console.