sodcalculator

10 Tech How-To

How to Make an External USB Drive Show Up in Hyper-V VM

Guide 10-56329 · Updated · Step by step

If you’ve ever plugged a USB drive into a Hyper-V host and wondered why the guest VM can’t see it, you’re not alone. Hyper-V doesn’t pass USB devices straight through like VMware does, but you can get the drive into the VM by attaching it as a physical disk. This guide walks you through the exact steps to make an external USB drive appear inside a Hyper-V virtual machine, plus what to do when it doesn’t work.

What You’ll Need

  • A Windows machine with Hyper-V enabled (Windows 10/11 Pro, Enterprise, or Education, or Windows Server).
  • An external USB drive (USB flash drive or external hard drive) you want to use in the VM.
  • Administrator access on the Hyper-V host.
  • The VM must be shut down (not just saved or running) to add the physical disk.
  • If the drive has data you care about, back it up first—attaching a physical disk to a VM can be risky.

Step-by-Step

  1. Plug in the USB drive to the Hyper-V host. Make sure Windows recognizes it and assigns a drive letter.
  2. Open Disk Management on the host. Right-click the Start button and select “Disk Management” (or run diskmgmt.msc). Note the disk number (e.g., Disk 1, Disk 2) for your USB drive. Do not confuse it with your system disk (usually Disk 0).
  3. Shut down the VM completely. In Hyper-V Manager, right-click the VM and choose “Shut Down” (not “Turn Off” if you can avoid it, but either works). Wait until the VM status shows “Off”.
  4. Open Hyper-V Manager and select your host in the left pane.
  5. Right-click the VM and choose “Settings…”.
  6. In the left pane of the settings window, scroll down to “SCSI Controller” (or “IDE Controller” if your VM uses that, though SCSI is more common). Click on it to select it.
  7. In the right pane, click “Add” under the “Hard Drive” section. This adds a new drive to the controller.
  8. Select the newly added “Hard Drive” in the list. Under “Media”, choose “Physical hard disk” instead of “Virtual hard disk”.
  9. From the dropdown, select the disk number that matches your USB drive (the one you noted in Disk Management). If you don’t see it, make sure the drive is connected and that you’re looking at the right controller—sometimes the dropdown only shows disks that are “offline” or not in use.
  10. Click Apply, then OK.
  11. Start the VM. Once Windows boots inside the VM, the USB drive should appear as a local disk (e.g., D: or E:). If it doesn’t show up automatically, open Disk Management inside the VM and assign a drive letter if needed.

Common Mistakes

  • Attaching the wrong disk—double-check the disk number. Attaching your host’s system disk to a VM can cause boot failures or data corruption.
  • Not shutting down the VM—you cannot add a physical disk to a running VM. The option is grayed out.
  • Using the wrong controller—if your VM uses IDE controllers, you might need to add the disk to an IDE controller instead. Check your VM’s generation (Gen1 uses IDE, Gen2 uses SCSI).
  • Drive letter conflicts—if the USB drive already has a drive letter on the host, it might still work, but sometimes it’s easier to remove the letter first. You can do that in Disk Management on the host by right-clicking the drive and choosing “Change Drive Letter and Paths…”, then removing the letter.
  • Forgetting to back up—attaching a physical disk to a VM can sometimes cause Windows to want to initialize or format it, especially if the drive is not in a format the VM understands. Always back up data first.

Tips

  • Use a fixed drive letter inside the VM—if the drive is for a specific application, assign it a permanent letter like X: to avoid confusion.
  • Detach the drive when not in use—when you’re done, shut down the VM, go to settings, and change the media back to “Virtual hard disk” or remove the drive. Leaving it attached can cause issues if you plug the USB drive into a different port later.
  • For USB flash drives, consider using a virtual disk instead—if you just need to copy files, you can create a VHDX and copy files via the host. It’s safer and doesn’t require the USB drive to be plugged in.
  • If the drive is NTFS, it will work fine—but if it’s exFAT or FAT32, the VM will still read it as long as the guest OS supports those filesystems (Windows does).
  • For Gen2 VMs, you must use SCSI—IDE is not available. If you have a Gen2 VM, you’ll only see SCSI controllers.

Troubleshooting

  • Drive doesn’t appear in the dropdown—Make sure the drive is connected and recognized by the host. Open Disk Management and confirm the disk number. Sometimes you need to bring the disk online first (right-click the disk and select “Online”).
  • Drive appears but is not accessible in the VM—Open Disk Management inside the VM. If the disk shows as “Unallocated”, you may have accidentally attached a drive that the VM sees as raw. Do not initialize or format it unless you’re sure you don’t need the data. If it shows as “Offline”, right-click and bring it online.
  • VM won’t start after attaching the disk—This usually means you attached the wrong disk (like the host’s system disk). Shut down the VM, remove the physical disk from the settings, and try again with the correct disk number.
  • Drive works but is very slow—USB drives are slower than internal SATA/NVMe, especially if it’s USB 2.0. That’s normal. If you need speed, use a USB 3.0 port and a USB 3.0 drive.
  • Can’t detach the drive—You must shut down the VM first. Then go to settings, select the hard drive, and change the media to “Virtual hard disk” or remove the drive entirely.
  • Drive letter changes every time—Inside the VM, use Disk Management to assign a specific drive letter. Right-click the volume, select “Change Drive Letter and Paths…”, and pick a letter.

Frequently Asked Questions

Can I hot-plug a USB drive into a running VM?

No. Hyper-V does not support USB passthrough. You must shut down the VM to add or remove a physical disk.

Will the USB drive be accessible to both the host and the VM at the same time?

No. When the drive is attached to the VM, the host loses access to it. You cannot use it on both simultaneously.

What if the drive is formatted as exFAT?

Windows guests (and most Linux guests with exFAT support) can read exFAT drives. If the guest doesn’t see it, check if the guest OS supports the filesystem.

Can I attach a USB drive to a Gen1 VM?

Yes, but you’ll use the IDE controller. Gen1 VMs have IDE controllers; Gen2 VMs only have SCSI.

Why is the drive not showing up in the VM even after attaching?

Check Disk Management inside the VM. The drive may be offline or unallocated. Bring it online or assign a drive letter. If it’s unallocated, you may have attached a drive that doesn’t have a partition—this can happen if the drive was used as a boot drive or has a RAW filesystem.

Is it safe to attach a USB drive that contains my host’s backups?

It’s safe as long as you attach the correct disk and don’t format it. However, there’s always a risk of accidental data loss if you make a mistake. Back up important data before proceeding.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →