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
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:
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://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
Thanks, has taken me hours to find that ISO!! Doesn't come with Windows 10 Hyper-V
ReplyDeleteThis 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.
ReplyDeleteIt 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.
I do able to run the Windows XP VM by using this method on Windows 10 (10240). Could you share me more detail?
Deletethank guys, it's work. really nice solution.
ReplyDeletemay i ask your recommendation, how to show internal drive on Hyper-V OS?
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?
DeleteThank 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?
DeleteMay 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/
DeleteIf yes, I need to test and get back to you.
Thank you.
yes, it's right Mr. Billy Fung.
Deletewhen 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?
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
Deletehttps://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
great article. Works very well.
ReplyDeleteBilly 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)!
ReplyDeleteMany thanks
James
Thanks
ReplyDelete