Convert an Old Windows 10 PC into a Virtual Machine

Here’s how to convert your old Windows 10 computer into a virtual machine that runs on your new Windows 11 computer.

The process takes all of your old PC’s settings, programs and files and packs them into a single file that works as a virtual computer. You then run that file as a virtual machine on your new PC.

So you don’t have to worry about losing files, product keys, logins or bookmarks. The virtual machine runs exactly as your old computer did, without needing the old hardware.

It’s free and fairly easy, using a Microsoft tool called Disk2vhd. You’ll just need an external drive to save the virtual machine on.

Using VMware Workstation Pro?

Disk2vhd makes VHD and VHDX files, for VirtualBox and Hyper-V. VMware Workstation Pro can’t open those, so for VMware, follow my guide to converting a physical PC to a virtual machine in Workstation Pro instead.

The Short Version

  1. On the old PC, turn off BitLocker if it’s on, and plug in an external drive.
  2. Download Disk2vhd from Microsoft, unzip it and run disk2vhd64.exe.
  3. Untick the external drive, choose VHD (for VirtualBox) or VHDX (for Hyper-V), and tick Use Volume Shadow Copy.
  4. Choose the external drive as the save location and click Create.
  5. On your new PC, set the image up as a virtual machine in VirtualBox or Hyper-V.

Convert Windows 10 PC into a Virtual Machine

To convert your Windows 10 computer into a virtual machine, you need an external hard drive with enough free space for the image file, which can be very large: about the same as the used space on your old PC’s drive.

To be clear, everything in this part is done on the old computer, not your new one.

Turn Off BitLocker First

Disk2vhd can’t convert a drive that’s encrypted with BitLocker. Many Windows 10 laptops have it switched on as Device encryption without the owner knowing.

To check, open Settings, Update & Security, Device encryption (on Windows 10 Pro, search for Manage BitLocker). If it’s on, turn it off and wait until the drive has fully decrypted. That can take an hour or more.

Download and Run Disk2vhd

Connect your external drive, then download Disk2vhd, a free Microsoft Sysinternals tool, from the Disk2vhd page on Microsoft Learn.

It downloads as a zipped folder. Extract it, open the extracted folder, and double-click disk2vhd64.exe. Agree to the licence terms.

Extracting the Disk2vhd zipped folder on the old Windows 10 PC.
Extract the Disk2vhd folder.
The Disk2vhd program files in the extracted folder.
Then run the version that matches your Windows 10.

Make the Image Smaller

To reduce the size, have a quick look through your files and folders and delete anything you don’t need. Uninstall any programs you won’t be using, and run Disk Clean-up to clear out temporary files.

You could also run CHKDSK to make sure the drive has no errors before you copy it.

32-Bit or 64-Bit?

Most Windows 10 computers are 64-bit (x64). But if your PC is really old, especially one upgraded from Windows 7, it could be 32-bit (x86).

If you get an error when you run disk2vhd64.exe, your Windows 10 is probably 32-bit. Close the error and double-click disk2vhd.exe instead.

Disk2vhd: Choose Which Drives to Include

Disk2vhd selects every drive attached to your PC by default. Untick the external drive you’re saving the image to.

Leave the system drive (usually C:) and any small hidden partitions above it ticked. Windows needs those to start.

Disk2vhd with the external drive unticked.
Untick any drives that shouldn’t be in the image.

VHD or VHDX?

Disk2vhd can save your PC in one of two formats, VHD or VHDX. VHDX is the newer one and is selected by default. Which you choose depends on where you’ll run the virtual machine:

  • VirtualBox: choose VHD. VirtualBox only has read-only support for VHDX, so it can’t start Windows from one.
  • Microsoft Hyper-V: either works, so use VHDX. Hyper-V is only in the Pro, Enterprise and Education editions of Windows 10 and 11, so check your new PC has one of those.
  • Opening it as a drive to copy files out: either works.
  • VMware Workstation Pro: neither. Use the Workstation Pro method linked at the top of this guide instead.

For a VHD, untick Use Vhdx. Then tick Use Volume Shadow Copy, which lets Disk2vhd copy files that Windows is using.

Use Vhdx and Use Volume Shadow Copy ticked in Disk2vhd.
Decide whether you need a VHD or VHDX image file.

Make Both If You Can

You’re probably going to put the old PC away, or wipe it and pass it on. So if you have the space, it’s worth making two images, one VHD and one VHDX. Then you’re covered whichever way you set up the virtual machine.

Select the Save Location

Click the Browse button beside the VHD File Name box, then choose your external drive.

The Browse button beside the VHD File Name box in Disk2vhd.
Click Browse and choose your external drive as the save location.
The external drive selected as the save location in Disk2vhd.
You’ll see the path appear.

Create Image File

Click Create. Disk2vhd builds an image of your old PC and saves it to the external drive, ready to use as a virtual machine on your new computer. It can take a few hours, and you can watch the progress as it goes.

The Create button in Disk2vhd.
Click Create.
Disk2vhd copying a volume while creating the image of a Windows 10 PC.
You can see the progress as it goes.

When Disk2vhd has finished, your old computer is saved as an image file on the external drive.

VHD and VHDX image files on the external drive.
VHD and VHDX image files on the external drive.

Don’t Open the Image on the Old PC

Don’t double-click or attach the image file on the old computer. Microsoft warns that Windows then gives it a new disk signature, and the virtual machine won’t start. Only use it on your new PC.

What to Do with the Image Next

Now take the external drive to your new computer and set the image up as a virtual machine.

Check Whether Your Old PC Used UEFI or Legacy BIOS

This decides one setting on your new PC, so check it before you put the old PC away. Type System Information in the Start menu search, open it, and look at BIOS Mode. It says UEFI or Legacy.

Troubleshooting

The Virtual Machine Won’t Start

Usually it’s the UEFI or Legacy setting above: EFI is off in VirtualBox for a UEFI PC, or the wrong Hyper-V generation was chosen. The Hyper-V generation can’t be changed afterwards, so create a new virtual machine and attach the same image.

If the image was opened on the old PC after it was made, it may have a new disk signature. Make the image again.

Disk2vhd Won’t Convert the Drive

Check BitLocker or Device encryption is fully off, and that Use Volume Shadow Copy is ticked. Restart the old PC and try again with as few programs open as possible.

Windows Says It Isn’t Activated

The virtual hardware looks different from your old PC, so Windows may ask to be activated. If Windows came already installed on your old PC, that licence belongs to the old PC, so the virtual machine may need its own licence. A retail licence you bought separately can be moved using the activation troubleshooter’s I changed hardware on this device recently option.

Frequently Asked Questions

Q: Is Disk2vhd free?
A: Yes. Disk2vhd is a free Microsoft Sysinternals tool. You download it from Microsoft Learn.

Q: Can I use the old PC while Disk2vhd is running?
A: Yes, because it uses Volume Shadow Copy to take a snapshot. But it’s quicker and safer to leave the PC alone until it finishes.

Q: Should I choose VHD or VHDX?
A: VHD for VirtualBox, VHDX for Hyper-V. If you have the space, make both.

Q: Can I use the image in VMware Workstation Pro?
A: Not directly, because Workstation Pro can’t open VHD or VHDX files. Use VMware’s own converter instead, as shown in my guide to converting a physical PC to a virtual machine in Workstation Pro.

Q: Can I make a virtual machine from an old hard drive I’ve taken out of a PC?
A: Often, yes. Connect the drive to your new PC with a USB adapter, run Disk2vhd there and tick only that drive’s volumes. If the result won’t start as a virtual machine, you can still open it as a drive and copy your files out.

Q: Does Disk2vhd work with BitLocker?
A: No. Microsoft says to turn BitLocker off and wait for the drive to fully decrypt before running Disk2vhd.

Q: Is it safe to use Windows 10 in a virtual machine?
A: Windows 10 stopped getting free security updates in October 2025. Use the virtual machine for your old programs and files, and do your everyday browsing on your new PC.

Summary

When Disk2vhd has finished, you have a complete copy of your old Windows 10 computer on your external drive. All that’s left is to set it up as a virtual machine on your new PC, in VirtualBox or Hyper-V.

How to Import a VHD File into VirtualBox
Set up your old Windows 10 PC as a virtual machine in VirtualBox.

How to Import a VHDX File into Microsoft Hyper-V
Hyper-V is built into Windows, but only in the Pro editions.

How to Install VirtualBox on a Windows PC
Haven’t got VirtualBox yet? Start here.

Windows 11 virtual machine running inside a VirtualBox window.

Windows 11 runs great on VirtualBox. You can use it even if your current PC doesn’t meet the system requirements.

You can find this and other related step by step guides in – At Home Computer VirtualBox Guides

Written by Jeff Porter. I’ve been fixing Windows PCs since 2010 and I’m CompTIA Network+ certified. More about me

Scroll to Top