Thursday, October 15, 2015

Using Windows XP in Windows 10 by using Hyper-V client

1. Use the Windows command prompt to enable the hyper-v client on Windows 10

At the Windows command prompt (using administrator credentials), enter the following:

dism /online /enable-feature /featurename:Microsoft-Hyper-V -All

NOTE: You must restart your computer to complete the Hyper-V installation. Depending on your computer manufacturer, you may have to pause a few seconds before restarting, for the required changes to take effect. If you use a laptop, you may have to remove the battery before restarting. After restarting the computer, you can use Hyper-V Manager or Windows PowerShell to create and manage VMs. You can also use VM Console to connect to VMs remotely.

For more detail, please reference: Using Windows 10 Client Hyper-V

2. Download Windows XP Mode

3. Then use 7-Zip or another archive tool to open the WindowsXPMode_en-us.exe file as an archive. Within that archive, find the “sources” file within it


4. Inside the "sources", there are file "xpm", extract it again


5. Inside the folder "xpm", there are file "VirtualXPVHD"


6. Rename the "VirtualXPVHD" to "VirtualXPVHD.vhd"


7. Open the "Hyper-V manager"


8. Go to Actions, click "Virtual Switch Manager.."


9. Select "Internet" and "Create Virtual Switch"


10. Select your "External network" connection and NIC card.


11. Create a new virtual machine


12. Select "Generation 1"


13. Select the connection you create for external connection


14. Select "attach a virtual hard disk later"


15. Select the VM which is you just create, go to setting and select "IDE Controller 0", select "Hard disk", then "Add".


16. Click "Broswe.." and select the vhd file "VirtualXPVHD.vhd"



17. Select the VM. connect and turn on the VM. Then connect the Windows XP post setup follow the wizard.


18. Ignore those unknown hardware during the post setup first.


19. You will see the Windows XP after the configuration complete.


20. Down the “vmguest.iso” to install the "Integration Services" for Windows XP or copy this ISO file from a Windows 2012 R2 machine which is enable Hyper-V. (The “vmguest.iso” under C:\Windows\System32)

21. Mount the “vmguest.iso” to install “Integration Services”


22. You will see the pop like the following:

23. Go to "Add or Remove Programs" to uninstall the "Virtual PC Integration Components"


24. After uninstall complete and reboot the VM. Go to drive D to access the Integration Services Setup CD. Run the CD and Press "OK".


25. Reboot and reboot two times for complete the installation

26. The "Hyper-V Integration Services" success.


27. Power off the Windows XP VM

28. Go to setting and remove the "Network Adapter"


29. Add Hardware, select "Legacy Network Adapter"


30. Select the "Legacy Network Adapter" and change the "Virtual switch" to "Internet"


31. Power on the VM, you able to go to Internet now.


Reference: Print Friendly and PDF


  1. Thanks, has taken me hours to find that ISO!! Doesn't come with Windows 10 Hyper-V

  2. This doesn't work. The idea that you can extract the VirtualXPVHD file, rename it VirtualXPVHD.vhd, and use it in Hyper-V doesn't work.
    It gives error: Failed to open attachment '\path\VirtualXPVHD.vhd'. Error: 'The requested operation could not be completed due to a virtual disk system limitation. Virtual hard disk files must be uncompressed and unencrypted and must not be sparse.' (0xC03A001A)
    See the last post in the lifehacker reference for an explanation why.

    1. I do able to run the Windows XP VM by using this method on Windows 10 (10240). Could you share me more detail?

  3. thank guys, it's work. really nice solution.
    may i ask your recommendation, how to show internal drive on Hyper-V OS?

    1. Since I running Hyper-V on Windows 10, the internal drive of the Hyper-V should be the Windows 10 hard drive. May I ask do I understanding your question correctly?

    2. Thank for the response. I am so sorry for my bad English. What I mean is asking about the partition of hard drive on windows which installed hyper-v, does all drive or partition and usb can showed on virtual system as it's function on Virtual PC in Windows 7 after integration service installed?

    3. May I ask do you mean the virtual machine able to access the host drive or partition and usb directly? e.g. or or
      If yes, I need to test and get back to you.
      Thank you.

    4. yes, it's right Mr. Billy Fung.
      when i use virtual PC it was instant all drive and USB work or showed at virtual PC, i don't get any problem. but in hyper v, i can't find any configuration to show all drive or USB, any suggestion?

    5. I am sorry to tell you that you cannot use Windows XP as a guest OS to use such features on hyper-v. Since the Hyper-V "Enhanced session mode" which is what you need. It is not support Windows XP. The Hyper-V virtual machine (guest) must have Remote Desktop Services enabled and run Windows Server 2012 R2, Windows Server 2016, Windows 8.1, or Windows 10 as the guest operating system. For more detail:

  4. Billy Fung! you are a legend. I followed your instructions All is working fine now! I am now running Win XP Pro in Hyper-V on a Win 10 Pro machine (that has just updated to the Fall Creators Updates)!

    Many thanks