How to Create and Set Up Virtual Hard Disk in Windows

In this blog, I am will explore how to create and set up virtual hard disk in Windows. In Windows 10, a virtual hard disk (VHDX or VHD) is a file that we could use a .vhd or .vhdx extension and then use as a physical hard disk, but with the variance that this is a file stored on a real disk.

Using likewise format (.vhd or .vhdx) for a virtual drive, you can store files, including (documents, pictures, videos, boot files) and a complete OS installation.

How to create a VHDX/VHD in Windows

Right click on start button and then select Disk Management.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Create and Set Up Virtual Hard Disk

Click the Action button and then Create VHD.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Click the Browse button

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

File name field type a name for the VHD drive.
Save as type from a drop-down menu, choose Virtual Disk files (.vhdx) or Virtual Disk files (.vhd).
Click Save.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Virtual hard disk size chooses the size of the drive in (MB, GB, TB).
Virtual hard disk format choose the VHDX radio button.
Virtual hard disk type chooses the Dynamic expanding radio button, Click OK.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

How to set up a VHDX, VHD

Using the above steps, we have created a VHD, but it is empty without having any data or file system. To make this useful, you need to initialize the disk, create a partition, and then format the drive.
Right-click the newly created drive and then choose Initialize Disk.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Choose the disk from the list.
Choose the MBR (Master Boot Record) radio button and then click ok.


Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Right click on Unallocated space and then choose New Simple Volume.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Choose Next.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Specify the size of the partition and then click next.


Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Choose the drive letter you want to assign to the drive and then click next.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Format this volume options:
File System – NTFS.
Allocation unit size – Default.
Volume label – Leave it default or you can change it.
Perform a quick format and click next.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Click Finish.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

After completing the process, the VHDX/VHD will be initialized, partitioned, and formatted. The virtual hard disk will mount automatically and then you can now access, save files using File Explorer.


How to mount a VHDX/VHD

Although during the setup process, Windows will automatically mount a VHD or VHDX file to your device that would not always be the case.

Mounting VHD/VHDX

To attach or mount the virtual hard disk follow the below steps.
Select Action menu and then click the Attach VHD.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Choose Browse button.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Choose your virtual disk and then click open.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Click OK.
After completing these steps, you can access the VHD/VHDX like a drive.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Dismounting VHD

Before mounting please save any files and applications located in the VHD or VHDX file before detaching or dismounting to prevent data loss.
Right-click the VHD drive and then choose Detach VHD.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Click OK.

Create and Set Up Virtual Hard Disk, How to Create and Set Up Virtual Hard Disk in Windows

Once you complete the above steps, the VHD or VHDX file will no longer show up in File Explorer.

For more information please visit Microsoft

Jamil Parvez
Jamil Parvezhttps://www.xpertstec.com
Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Latest Articles