INDEX

ADDING BOOTMGR AND SHRINKING THE VHD



Boot from your VHD. Disable hibernation and page file, reboot.

Copy the boot folder and bootmgr file from the root of your installation media to the root of your VHD.

Copy the ENUM.cmd file and
for 32 bits system the WIN32.cmd file
for 64 bits system the WIN64.cmd file
from the VHD_BCD folder to the boot folder on your VHD.

Drag'and'drop the BCD file on the WIN32.cmd (WIN64.cmd) file.
Cmd window will open that should look something like this



Close the window. Drag'and'drop the BCD file on the ENUM.cmd file.
Cmd window will open that should look something like this



Close the window. Bootmgr is installed and ready to use now.



NOTE:
When Windows is installed (hibernation and page file disabled)
there may be some excessive free space left on the disk.



We don't want that.
Since we are loading our VHD into RAM we need to make it as small as possible.
I would recommend having at least 100-200MB free space though.
So what you need to do now is to create a smaller (but still sufficient) VHD file
and copy the whole partition from your first VHD to it.
You should probably first shrink the partition you are copying to a size
you are comfortable with. You would need some 3rd party imaging software for this.