8.15. Exiting the rescue mode for Windows virtual machinesΒΆ
There might be an issue of exiting the rescue mode for a Windows VM. If in the rescue mode you set the original system disk online, its ID becomes the same as that of the rescue disk. Then, when you try to exit the rescue mode, the boot loader cannot find the proper boot disk. To resolve the ID conflict, follow the steps:
With the VM in the rescue mode, open the Disk Management window and note the numbers of the original system disk (offline) and the rescue disk (online). Set the original system disk to Online.
To edit the boot configuration, enter the following command in the Command Prompt window:
> bcdedit /store <the original system disk name>:\boot\bcd
Review the output and check that the rescue disk is the target for objects in the output (
partition=<the rescue disk name>
).If the objects do not point to drive C, fix it with the following commands:
> bcdedit /store <the original system disk name>:\boot\bcd \ /set {default} osdevice partition=<the rescue disk name>: > bcdedit /store <the original system disk name>:\boot\bcd \ /set {default} device partition=<the rescue disk name>: > bcdedit /store <the original system disk name>:\boot\bcd \ /set {bootmgr} device partition=<the rescue disk name>: > bcdedit /store <the original system disk name>:\boot\bcd \ /set {memdiag} device partition=<the rescue disk name>:
To view the available disks, enter the following commands in the command line:
> DISKPART > LIST DISK
Match the disk number and name to those displayed in the Disk Management window.
To get the ID of the rescue disk, run the following commands:
> SELECT DISK <the rescue disk number> > UNIQUEID DISK
Record the disk ID, you will need it later.
Change this ID by using the following command:
> UNIQUEID DISK id=<any hex value of 8 characters>
Make sure that the value has changed with the
UNIQUEID DISK
command.Assign the ID that you recorded previusly to the original system disk:
> SELECT DISK <the original system disk number> > UNIQUEID DISK id=<the recorded disk ID>
Make sure that the value has changed with the
UNIQUEID DISK
command.
You should now be able to exit the rescue mode.