Hi Admin,
You can use the recovery path from the virtual machine console:
- Start the virtual machine and go to the Windows boot menu. Microsoft's virtual DC instructions state to press F5 to enter Windows Boot Manager, then press F8 to enter advanced boot options and select Directory Service Recovery Mode (DSRM). If the virtual machine boots normally too quickly, shut it down and try again; Microsoft also notes that you cannot access DSRM from the Windows Error Recovery menu. https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/virtual-dc/restore-virtualized-domain-controller
- Log in with your DSRM password. Microsoft's DC boot troubleshooting article uses DSRM to recover on Windows Server 2012 and later.
- Run the recovery process from your backup tool, using a system state backup created before the problem occurred. Microsoft states that a valid system state backup is a supported recovery method for virtual DCs.
- Restart normally after the recovery process is complete. For a restored virtual DC, Microsoft suggests booting in DSRM mode first and then returning to normal mode after the restoration.
A very important note: if this virtual machine had previously booted normally after the restoration, Microsoft says the directory service may have raised the USN, which is why the restoration process must be performed from DSRM before a normal boot. https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/virtual-dc/restore-virtualized-domain-controller
If this is the only domain controller and you don't have a reliable system state backup, Microsoft's guidance is to restore a previous system state backup or, if that's not possible, rebuild the domain controller and clean up the metadata instead of trying to maintain a faulty copy. https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/domain-controller-not-start-c00002e2-error