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

http://www.microsoft.com/en-us/download/details.aspx?id=48128

2. Download Windows XP Mode

http://www.microsoft.com/en-hk/download/details.aspx?id=8002

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

clip_image001

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

clip_image002

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

clip_image003

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

clip_image004

7. Open the "Hyper-V manager"

clip_image005

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

clip_image006

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

clip_image008

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

clip_image010

11. Create a new virtual machine

clip_image011

12. Select "Generation 1"

clip_image013

13. Select the connection you create for external connection

clip_image015

14. Select "attach a virtual hard disk later"

clip_image017

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

clip_image019

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

clip_image021

clip_image022

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

clip_image024

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

clip_image025

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

clip_image027

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)

https://onedrive.live.com/?id=4A4A4C07841B3A54%21107000&cid=4A4A4C07841B3A54&group=0&parId=root&authkey=%21AK1o_X3qu143-rw&action=locate

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

clip_image029

22. You will see the pop like the following:
clip_image031

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

clip_image033

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".

clip_image035

25. Reboot and reboot two times for complete the installation

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

clip_image037

27. Power off the Windows XP VM

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

clip_image039

29. Add Hardware, select "Legacy Network Adapter"

clip_image041

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

clip_image043

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

clip_image045

Reference:

http://www.microsoft.com/en-us/download/details.aspx?id=48128

http://www.lifehacker.com.au/2012/12/run-windows-xp-for-free-in-windows-8/

http://www.tenforums.com/virtualization/17050-hyper-v-no-insert-integration-services-setup-disk-option-2.html?s=1b02b054fca01eec5b1f7c909c4e91fe

http://answers.microsoft.com/en-us/insider/forum/insider_apps-insider_other/windows-10-tp-hyper-v-integration-services-does/3023c53a-9b1b-493b-a845-5bfc77156b25?auth=1 Print Friendly and PDF
Share/Bookmark

12 comments:

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

    ReplyDelete
  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.

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

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

    ReplyDelete
    Replies
    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?

      Delete
    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?

      Delete
    3. May I ask do you mean the virtual machine able to access the host drive or partition and usb directly? e.g. https://blogs.technet.microsoft.com/windows_vpc/2009/12/21/folder-sharing-between-windows-7-and-vm/ or https://technet.microsoft.com/en-us/library/ee449412(v=ws.10).aspx or http://www.dummies.com/computers/operating-systems/windows-7/how-to-access-usb-devices-in-windows-virtual-pc-for-windows-7/
      If yes, I need to test and get back to you.
      Thank you.

      Delete
    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?

      Delete
    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: https://stackoverflow.com/questions/26564217/hyper-v-enhanced-session-wont-work-grayed-out
      https://social.technet.microsoft.com/Forums/en-US/f0d52fde-fdae-4b3e-be0e-96f0ab4c215b/problem-with-enhanced-session-mode?forum=win10itprovirt
      https://www.tenforums.com/tutorials/57136-turn-off-hyper-v-enhanced-session-mode-windows-10-a.html

      Delete
  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
    James

    ReplyDelete