Go to Disk management and create a new VHDX disk with Dynamicallly expanding and 80 GB of size:
To make a VHD available for use (either one you've created or another existing VHD), follow these steps:
Open Disk management. In the search box on the taskbar, enter Computer Management, and select Disk Management.
On the Action menu, select Attach VHD.
After the Attach Virtual Hard Disk dialog box opens, select the Browse button, and find your .vhd file.
Now that you've selected the .vhd file, you return to the Attach Virtual Hard Disk dialog box. Select OK.
In Disk Management, select and hold (or right-click) the disk you want to initialize, and then select Initialize Disk. If the disk is listed as Offline, first select and hold (or right-click) the disk, and then select Online.
1.1 Create a Volume
Download an ISO image from the microsoft site and extract info about the install.wim
dism /get-wiminfo /wimfile:i:\sources\install.wim
Apply the image to your VHDX file where j:\ corresponds to your VHDX drive letter
dism /Apply-Image /ImageFile:install.wim /Index:5 /ApplyDir:j:\
Create your Bcdboot on the VHDX drive , assuming that your VHDX drive letter is j:
bcdboot j:/Windows
Detach/unmount the disk
Create or verify if the bcdboot entry is created and if not, add the following lines in command prompt and not powershell!!!!
Restart the server and choose the new boot sector to complete the windows installation
You are done.
copy the vhdx file to your c drive from example
bcdedit /v to check the boot loader section
now we have a windows boot loader configured to boot from the vhdx
verify that we have another boot sector available sector
Some USB drives can't be initialized. These disks are only formatted and then assigned a .
In the Initialize Disk dialog box, make sure the correct disk is selected, and then choose OK to accept the default partition style. If you need to change the partition style (GPT or MBR), see .
The disk status briefly changes to Initializing and then to the Online status. If initializing fails for some reason, see .