How to Create and Mount VHDX Virtual Hard Drives Natively in Windows 11

What is a VHDX File?

A VHDX (Virtual Hard Disk v2) is a file format that acts exactly like a physical hard drive, but it exists entirely as a single file on your computer. While traditionally associated with Hyper-V virtual machines, Windows 11 includes native, system-level support for creating, mounting, and managing VHDX files directly from the desktop.

Using a VHDX is an incredibly powerful productivity and security tool. You can use it to create secure, encrypted containers for sensitive data (using BitLocker), isolate specific software installations, safely test dual-boot scenarios, or create portable work environments that you can easily backup by copying a single file.

VHD vs VHDX: What’s the Difference?

You may see options for both VHD and VHDX. Always choose VHDX unless you need backward compatibility with Windows 7 or older legacy systems. VHDX offers significantly better performance, resilience against power failures (due to internal logging), and supports massive storage sizes up to 64 TB, whereas older VHD files max out at 2 TB.

How to Create a VHDX in Windows 11 Using Disk Management

The easiest way to create a virtual hard drive is through the native Windows Disk Management utility.

Step 1: Open Disk Management

  1. Right-click the Start Button (or press Windows Key + X).
  2. Select Disk Management from the power user menu.

Step 2: Create the Virtual Disk

  1. In the Disk Management window, click on Action in the top menu bar.
  2. Select Create VHD.
  3. Click Browse… to choose a location on your computer to save the file (e.g., C:\VirtualDrives\SecureData.vhdx).
  4. Set the Virtual hard disk size. For example, enter 50 and select GB.
  5. Under Virtual hard disk format, select VHDX.
  6. Under Virtual hard disk type, select Dynamically expanding. This is highly recommended as it means the file will only take up actual space on your physical drive as you add files to it, rather than claiming the full 50GB immediately. Fixed size offers slightly better performance but wastes space.
  7. Click OK.

Step 3: Initialize the Disk

After a moment, you will see a new disk appear at the bottom of the Disk Management window labeled as “Unknown” and “Not Initialized”.

  1. Right-click where it says “Disk [Number] Not Initialized” (the grey box on the left).
  2. Select Initialize Disk.
  3. Ensure the correct disk is checked, select GPT (GUID Partition Table), and click OK.

Step 4: Format and Assign a Drive Letter

The disk is now initialized, but the space is “Unallocated”.

  1. Right-click the black “Unallocated” space on your new virtual disk.
  2. Select New Simple Volume….
  3. Click Next through the wizard, leaving the volume size at maximum.
  4. Assign a drive letter (e.g., V for Virtual).
  5. Name the volume label (e.g., “Secure Vault”). Ensure the file system is NTFS.
  6. Click Finish.

Your VHDX is now mounted and ready to use. If you open File Explorer, you will see it listed alongside your physical C: drive, and you can interact with it exactly like a normal hard drive.

How to Mount and Unmount VHDX Files

One of the best features of VHDX files in Windows 11 is how easily they can be attached and detached.

To Unmount (Eject)

When you are finished using the virtual drive, open File Explorer, right-click the virtual drive letter (e.g., drive V:), and select Eject. The drive will disappear from File Explorer, but your VHDX file remains safely stored wherever you created it.

To Mount

To access the data again, simply navigate to where you saved the .vhdx file in File Explorer and double-click it. Windows 11 will instantly mount it and assign it a drive letter.

Advanced Tip: Automating VHDX Mounting on Boot

By default, Windows does not remount VHDX files when you restart your computer. If you want a specific virtual drive to always be available, you can create a simple PowerShell script and place it in your Startup folder.

Mount-VHD -Path "C:\VirtualDrives\SecureData.vhdx"

Conclusion

Mastering VHDX files unlocks advanced storage management capabilities in Windows 11. Whether you are sandboxing risky files, creating an easily transportable workspace, or building an encrypted BitLocker container, native virtual hard drives offer unmatched flexibility without the need for third-party virtualization software.

RELATED POSTS

  • How to Find Which Process is Locking a File in Windows 11
  • How to Find Your Saved Wi-Fi Password on Windows 11
  • How to Automatically Free Up Disk Space in Windows 11 Using Storage Sense
  • How to Disable Bing Web Search in the Windows 11 Start Menu Using the Registry
  • How to Disable Fast User Switching in Windows 11
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.