INDEX

INSTALLING WINDOWS TO VHD




Boot from the installation DVD (or flash drive, or whatever you use...). You will see something like this



Don't start the installation right now. Instead press Shift+F10 on the keyboard. CMD window will open.
Type "notepad" there.



Press Enter. Notepad will open. Press Ctrl+O. You will see something like this



Set the file filter to All Files



Click the Computer icon on the left panel, now you have access to your disks.
Copy VhdTool.exe, CreateVHD.cmd and AttachVHD.cmd files from the VhdTool folder
to a place where you want to create your VHD file.
Right click the CreateVHD.cmd file and "Run as administrator".



The "Create VHD" wizard's cmd window will open



Enter the VHD file name without the .vhd extension. Press Enter.
Next page will open.



Enter the number of GIGAbytes and then the number of MEGAbytes in desired size of the VHD file.
The wizard will show the entered size in bytes and will be waiting for a key press to continue.



Press a key. Wizard will go to the next page where the VHD creation status will be displayed.
When finished wizard will be waiting for a key press to close the window.
Make sure there are no errors in the status output message before you go any further.



Press a key to close the window. Your VHD disk is created.
Now we need to mount (attach) it.
Go back to the Notepad's window.



Drag'and'drop the VHD file on the AttachVHD.cmd file. Cmd window will open



Press a key to close the window. Your VHD disk is attached.

Go back to Windows installer window



Begin the installation as usual... Until you get to this window



Click on your VHD disk, then click Drive options. You'll see this



Click "New" to create a partition on your VHD. You'll see this



Adjust the size if you want then click "Apply". Finally, you'll see this



As you can see there's a warning - "Windows cannot be installed to..."
Just ignore that. Installs and works fine, never had a single problem.
Select your VHD again, click "Next". After that installation will go as usual.
Wait until it's finished, then you can continue with the guide.

NOTE:
If your VHD doesn't have enough space to install Windows
you have to go back to Notepad's window, detach your VHD
(drag'and'drop it on the DetachVHD.cmd file from the VhdTool folder),
delete the .vhd file and then create a bigger .vhd file. You will have to repeat all the steps.