Creating and adding virtual hard disks
When creating a virtual machine, you also need to specify its disk configuration. Hyper-V has a set of options and advanced settings for different scenarios when the matter is virtual hard disks.
On a daily basis, the administration of the virtual machine and virtual disk configuration will be one of the most common tasks you do. This recipe will show you how to create a Virtual Hard Disk (VHD) and the new VHDX format for a virtual machine (VM), explaining all the details and options you need to know to make sure you can select the correct configuration for the correct scenario.
Getting ready
Some of the virtual hard disks require the same amount of physical disk for their size. Make sure that you have enough disk space on your host server before you start.
How to do it...
The following steps demonstrate how to create and attach a virtual hard disk to a virtual machine:
To create a new VHDX file, open Hyper-V Manager, click on New in the pane on the right...