A virtual hard disk (vhd) is a file that is created within the host operating system that simulates a hard disk for the virtual machine.
- The virtual machine accesses the virtual hard disk through the management operating system.
- When you create the virtual disk, you specify the disk and controller type (such as ATA/IDE or SCSI).
- The virtual disk type does not have to match the physical disk type. For example, you can create a virtual SCSI disk on a physical ATA disk.
- Do not create a virtual hard disk on a folder with encryption enabled. You can create a virtual hard disk on a volume with BitLocker enabled.
You have the following options for configuring a hard disk for use by the virtual machine:
Option | Description |
Virtual hard disk format | The vhd format is the traditional format. The vhd format:
The vhdx format is a new format introduced in Windows Server 2012. The vhdx format:
|
Virtual hard disk type | A fixed disk occupies a set amount of hard disk space in the management operating system. The size of the virtual hard disk file indicates the total storage capacity of the virtual disk.
A dynamically expanding disk allocates physical disk space in the vhd file as virtual disk storage increases.
|
Keep in mind the following when creating a virtual hard disk:
- After creating the virtual hard disk, you must initialize, partition, and format it.
- The vhd detaches when you reboot the server.
- You must manually reattach the vhd whenever you reboot or restart the server.
- To manage a vhd file from the command line, use diskpart.
- When creating a vhd file using diskpart, enter the vhd size in megabytes.