TechBuzzPro

Convert Windows PC to Virtual Machine with Hyper-V

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can convert a physical Windows PC into a virtual machine using Hyper-V, allowing you to run the entire system inside another Windows environment. This is useful for backups, testing, or retiring old hardware while preserving the exact setup. The process involves capturing a system image of the physical machine and importing it into Hyper-V as a VM. You must have access to both the source PC and a Windows machine with Hyper-V enabled.

What You'll Need

  • A Windows PC (the source machine) to convert
  • A target Windows PC with Hyper-V enabled and enough storage space
  • Windows 10 Pro, Enterprise, or Windows 11 Pro/Enterprise (Hyper-V is not available on Home editions)
  • Administrator access on both machines
  • External drive or network share with space equal to or larger than the source PC's used disk space
  • Microsoft's Disk2VHD tool (free from Microsoft Sysinternals)

Step-by-Step

  1. Enable Hyper-V on the target machine: Open Control Panel > Programs > Turn Windows features on or off. Check Hyper-V and click OK. Restart when prompted.
  2. Download Disk2VHD from the Microsoft Sysinternals website on the source PC. Run it as administrator.
  3. In Disk2VHD, select the volumes you want to include (typically C: and any system/reserved partitions). Avoid including external or network drives.
  4. Choose a destination path for the VHD file. This should be an external drive or network location with enough space. The file will be large—equal to the used space on the selected drives.
  5. Check the 'VHDX' option (recommended over VHD for better performance and larger size support). Click 'Create' to start the imaging process. This may take hours depending on data volume.
  6. Once complete, transfer the VHDX file to the target machine if it’s not already there.
  7. On the target machine, open Hyper-V Manager. Click 'New' > 'Virtual Machine'.
  8. In the New Virtual Machine Wizard, assign a name and location for the VM. Choose Generation 2 (required if the source uses UEFI and GPT partitions).
  9. Assign sufficient startup memory (at least equal to the source PC’s RAM; ensure dynamic memory is disabled if the OS license restricts it).
  10. Under network adapter, select an existing virtual switch (create one in Hyper-V Manager if needed).
  11. When prompted to create a virtual hard disk, choose 'Use an existing virtual hard disk' and browse to your transferred VHDX file.
  12. Complete the wizard. The VM will now appear in Hyper-V Manager.
  13. Before starting, right-click the VM and go to Settings. Ensure firmware is set to UEFI (Generation 2), and secure boot is configured appropriately for the guest OS.
  14. Start the VM. On first boot, Windows may detect hardware changes and run initial setup. Allow it to complete.
  15. Install Hyper-V Integration Services from the VM’s Action menu in Hyper-V Manager to improve performance and enable clipboard sharing, time sync, and other features.

Common Mistakes

  • Using VHD instead of VHDX: VHD has a 2TB limit and lacks modern features. Always choose VHDX unless compatibility with older systems is required.
  • Selecting the wrong generation: If the source PC uses UEFI and GPT, Generation 1 VMs will fail to boot. Use Generation 2 in such cases.
  • Forgetting reserved partitions: Disk2VHD must include the EFI System Partition and Microsoft Reserved Partition (MSR) for bootability. Missing these causes startup failure.
  • Ignoring driver conflicts: The VM may struggle with old storage or video drivers. Let Windows reinstall core drivers automatically on first boot.
  • Not disabling BitLocker before imaging: If BitLocker is on, the system may lock during conversion. Suspend BitLocker temporarily before running Disk2VHD.

Tips

  • Shut down unnecessary apps on the source PC before imaging to reduce file size and improve consistency.
  • Use a wired network or fast external drive for transferring the VHDX file—large files move slowly over Wi-Fi.
  • After conversion, remove unnecessary startup programs in the VM to speed up boot time.
  • Take a checkpoint (snapshot) in Hyper-V after the first successful boot, so you can revert if updates fail.
  • Consider shrinking the VHDX using Windows’ built-in disk management tools if space is limited, but only after confirming the VM works.

Troubleshooting

If the VM fails to boot, check the generation setting first—mismatched firmware (BIOS vs UEFI) is the most common cause. If the screen shows “Boot failure” or “No bootable device,” recreate the VM as Generation 2 and reattach the VHDX. If Windows hangs during startup, boot into Safe Mode by pressing F8 (if enabled) or use System Recovery Options from installation media. Inside the VM, run bootrec /fixboot and bootrec /rebuildbcd from Command Prompt. If the VM boots but network is missing, ensure the virtual switch is connected and Integration Services are installed. For blue screens, disable secure boot temporarily or remove incompatible drivers.

Frequently Asked Questions

Can I convert a Home edition Windows PC?

Yes, as long as the target machine runs Pro or Enterprise. The source PC’s edition does not block conversion.

Will the VM have the same license as the physical PC?

Yes, but only if it’s an OEM license for a single device. Microsoft’s licensing allows one active instance. Running both physical and virtual simultaneously may violate terms.

Can I edit the VHDX file after creation?

Yes, using Windows Disk Management or PowerShell commands like Resize-VHD, but only when the VM is powered off.

Why is my VM running slowly?

Check that Integration Services are installed, dynamic memory isn’t over-allocated, and the host has enough free RAM and CPU cores.

Can I convert a Linux PC the same way?

Disk2VHD works only on Windows. For Linux, use other imaging tools like dd or Clonezilla, then import the disk image manually.

Is this method safe for the original PC?

Yes. Disk2VHD reads the disk without modifying it. The source PC remains unchanged and fully functional.