ThisCalculator

Everyday

Hyper-V Pass-Through Disk: Setup and Limits

Updated · Standard formula, shown below

Free space 60.00 GB
Used percentage
40.0 %
Result
Disk size
100 GB
You entered
Used space
40 GB
You entered

Hyper-V pass-through disk lets a virtual machine access a physical disk directly, bypassing the virtual hard disk (VHD/VHDX) layer. You attach a whole physical disk—internal or external—to a VM, and the VM uses it as if it were a local drive. This guide explains how it works, when to use it, and the important limitations you must know before setting it up.

What Is a Pass-Through Disk?

A pass-through disk is a physical disk (like a SATA or SAS drive) that is connected directly to a Hyper-V virtual machine. Instead of creating a VHDX file that stores the VM’s data, Hyper-V gives the VM exclusive access to the entire physical disk. The VM sees the disk as a raw device, and all read/write operations go straight to the hardware.

This is different from a virtual hard disk, where the VM writes to a file on a host volume. With pass-through, there is no file in between—the VM controls the disk’s partition table, file system, and all data.

How Pass-Through Disks Work

When you attach a pass-through disk to a VM, Hyper-V maps the physical disk to the VM’s SCSI controller. The VM’s operating system sees the disk as a normal local disk and can partition and format it as needed. The host operating system no longer sees the disk as a usable volume—it appears as “offline” or “unknown” in Disk Management.

Key technical details:

  • The disk must be a physical disk, not a partition or a volume.
  • The disk must be offline in the host before you attach it.
  • You attach it via the VM’s settings, under SCSI Controller, by selecting “Physical hard disk.”
  • The disk can be internal (SATA, SAS) or external (USB, eSATA), but external disks are not recommended for production due to performance and reliability.

When to Use Pass-Through Disks

Pass-through disks are useful in specific scenarios:

  • Performance-sensitive workloads that need low latency and high throughput, such as database servers or heavy I/O applications.
  • Existing data disks that you want to move into a VM without copying data to a VHDX first.
  • Bare-metal migration when you want to convert a physical server to a VM and keep the original data disk intact.
  • Clustering scenarios where the disk needs to be shared between VMs (though Hyper-V doesn’t support direct shared pass-through disks; you need a shared VHDX or CSV).

However, for most everyday workloads, a VHDX file is simpler, more portable, and supports features like snapshots, replication, and storage QoS. Pass-through disks do not support those features.

How to Set Up a Pass-Through Disk

Setting up a pass-through disk is straightforward but requires careful preparation. Here are the steps:

  1. Back up any data on the disk you plan to attach, because the VM will take full control and the host will lose access.
  2. Open Disk Management on the host (diskmgmt.msc).
  3. Bring the disk offline by right-clicking the disk and selecting “Offline.” This is critical—if the disk is online, Hyper-V won’t let you attach it.
  4. Open Hyper-V Manager, right-click the VM, and select Settings.
  5. Add a SCSI Controller if the VM doesn’t already have one.
  6. Add a Hard Drive to the SCSI controller, choose “Physical hard disk,” and select the offline disk from the drop-down list.
  7. Start the VM and initialize/format the disk inside the guest OS.

Note: You cannot attach a pass-through disk to a VM that is running. The VM must be stopped.

Common Problems and Limitations

Pass-through disks have several limitations that often surprise administrators:

  • No snapshots—Hyper-V cannot take checkpoints of a VM that has a pass-through disk.
  • No live migration—you cannot live migrate a VM with a pass-through disk to another host, because the disk is physically attached.
  • No replication—Hyper-V Replica does not work with pass-through disks.
  • Host cannot access the disk—once attached, the host OS cannot read or write to the disk, so it’s not available for host backups.
  • Disk must be offline—if the disk is online on the host, Hyper-V will not allow attachment.
  • USB drives are not recommended; they may disconnect and cause data corruption.

A common misconception is that pass-through disks are faster than VHDX. In many cases, a VHDX file on a fast SSD performs just as well, especially with dynamic VHDX and proper alignment. The main advantage of pass-through is that it avoids the file system overhead on the host, but that overhead is small on modern hardware.

Pass-Through vs. VHDX: Which Should You Choose?

Choosing between pass-through and VHDX depends on your priorities:

  • Portability: VHDX files are portable—you can copy them to another host or back them up easily. Pass-through disks are tied to the physical hardware.
  • Features: VHDX supports snapshots, replication, and storage QoS. Pass-through does not.
  • Performance: For raw throughput, pass-through may have a slight edge, but VHDX on modern storage is often comparable.
  • Management: VHDX is easier to manage—you can resize, move, and convert it. Pass-through disks require physical disk management.

In most cases, VHDX is the better choice for new deployments. Use pass-through only when you have a specific need, such as moving an existing data disk into a VM without copying data.

Safety and Best Practices

Pass-through disks come with risks. Follow these best practices to avoid data loss:

  • Always back up the disk before attaching it to a VM.
  • Use a dedicated disk for the VM—do not share it with the host or other VMs.
  • Monitor disk health with SMART tools or the host’s disk management.
  • Avoid USB drives for production workloads due to disconnection risk.
  • Plan for migration—since you can’t live migrate, you’ll need to shut down the VM to move it to another host.

Also, remember that the disk’s file system is managed by the guest OS, not the host. If the guest OS crashes, you may need to run file system checks inside the VM.

Alternatives to Pass-Through Disks

If pass-through disks don’t fit your needs, consider these alternatives:

  • VHDX files—the default choice for most VMs, offering portability and all Hyper-V features.
  • Shared VHDX—allows multiple VMs to access the same VHDX file in a failover cluster, but only with Windows Server 2012 R2 and later.
  • Storage Spaces Direct—a software-defined storage solution that provides high performance and resilience without pass-through.
  • iSCSI targets—if you need to share a disk with multiple VMs, an iSCSI target can provide block-level access over the network.

Frequently Asked Questions

Can I attach a pass-through disk to a VM that is running?

No. You must shut down the VM to add or remove a pass-through disk. The disk must also be offline on the host before attaching.

Can I use a pass-through disk with Hyper-V snapshots?

No. Hyper-V does not allow checkpoints (snapshots) for VMs that have pass-through disks. If you need snapshots, use a VHDX file instead.

Can I resize a pass-through disk?

No. The disk size is fixed by the physical hardware. You cannot extend a pass-through disk beyond its physical capacity. To increase storage, you would need to add another disk or migrate to a VHDX.

Can I use a pass-through disk for the VM’s system drive?

Yes, you can attach a pass-through disk as the boot disk, but it’s not recommended because you lose features like snapshots and live migration. It’s better to use a VHDX for the OS and pass-through only for data disks.

Does a pass-through disk work with Linux VMs?

Yes, pass-through disks work with Linux guest OSes, as long as the disk is recognized as a SCSI device. You may need to install the Linux Integration Services (LIS) for optimal performance.

Can I convert a pass-through disk to a VHDX later?

Yes, you can create a VHDX from the pass-through disk by using the “Convert Virtual Hard Disk” wizard in Hyper-V, or by copying the data inside the VM. However, you must shut down the VM and detach the disk first.

Related

Formula used
in d | Disk size | GB | 100 | 0
in used | Used space | GB | 40 | 0
out free | Free space | GB | d - used | 2
out percent | Used percentage | % | (used / d) * 100 | 1

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.