Windows virtual machine repair startup items
Start a new machine, use the previous virtual machine system image as a data disk and mount it on this new machine. After entering the system, you will see three disks C, D, and E:
Disk C is the C disk of the rescue host, and Disk
D is the original Virtual machine system partition,
E disk is the original virtual machine C disk
Open CMD and execute:
chkdsk E: /F
bcdedit /store d:\boot\bcd /set {bootmgr} device partition=E:
bcdedit /store d:\boot\bcd /set {default} device partition=E:
bcdedit /store d:\boot\bcd /set {default} osdevice partition=E: