Files and formats

Open VHD, VHDX, VDI and VMDK: understand virtual disk files

Distinguish virtual disks from ISO installers and inspect a copy before attaching or converting it.

Updated: 07/11/2026

Teaching illustration: Open VHD, VHDX, VDI and VMDK: understand virtual disk files
Mira4Tech teaching illustration.

Follow the steps and understand the result

Step through at your own pace, or play the walkthrough to follow each stage.

What the file is

sample.vhd

Open or inspect it step by step

identify source → inspect

Convert or export

powered-off VM → consistent disk copy → attach read-only → inspect files → detach

Verify the result

repeat the task → compare

What the file is

A virtual disk represents storage with possible partitions, an OS and files. VHD/VHDX are associated with Windows and Hyper-V, VDI with VirtualBox and VMDK with VMware. An image may belong to a snapshot chain or depend on a parent disk.

Open or inspect it step by step

Shut down the VM normally and preserve all parts before copying. For inspection, use a tool that supports the format and read-only attachment where available, such as attaching a VHD/VHDX read-only in Disk Management. Do not initialise or format a disk containing data.

Worked example

powered-off VM → consistent disk copy → attach read-only → inspect files → detach

Convert or export

Use the hypervisor’s documented conversion tool with a separate output file. Check disk type, size, free space and snapshot handling. Renaming a file to VHDX does not change its layout or guarantee a bootable result.

Verify the result

Compare partitions and key files on the copy and detach it after inspection. If booting a trusted copy, check UEFI, storage-controller drivers and network mode in a test VM.

What to watch for

A disk may contain private data or an untrusted OS. File inspection does not require booting it, and removing a differencing disk or its parent can break recovery.

Official references