Hyper-V VM stuck in continuous restart loop

I deployed an Exchange 2016 on a Hyper-V 2016 cluster. The environment by itself was quite stable until recently one of the VHDX for the OS drive expanded suddenly (As they were presented as thin disks to the VM). Due to insufficient space in the CSV, the VM went into a failure mode and shut down by itself. After increasing the CSV volume I started up the VM but before the Windows screen could load the VM was going to a failed state and restarted by itself in a continuous loop. Since the VM was not even loading to its bios I inspected the event viewer logs. After going through the logs and finding nothing suspicious I started suspecting that the VHDX disk by itself got corrupted. So I followed the below tasks.

  1. Mounted the Windows 2016 Setup ISO on the VM Virtual DVD drive and booted it from the DVD as the first boot.
  2. Selected repair mode.
  3. Started the CMD from the advanced options.

chkdsk /f /r /x c:

It took about 3 hours and it fixed the bad sectors. Once done the VM was able to boot into Windows and to be sure of the system integrity I ran the below command.

sfc /scannow

After a reboot, the VM was back to normal.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Proudly powered by WordPress | Theme: Code Blog by Crimson Themes.