Windows XP with USB hardware audio acceleration on VirtualBox
Sources:
Windows XP Mode Virtual Machine on VirtualBox full guide: https://www.makeuseof.com/tag/download-windows-xp-for-free-and-legally-straight-from-microsoft-si/
USB 3.0 VirtualBox full guide: https://forums.virtualbox.org/viewtopic.php?f=2&t=91053
*Might need to turn off Hyper-V
Turn Windows features on or off in Control Panel
------EXTENSIONS
-- Create Windows XP Virtual Machine --
- Download Windows XP Mode: https://web.archive.org/web/20201119233241/https://www.microsoft.com/en-us/download/confirmation.aspx?id=8002
- WindowsXPMode_en-us.exe - Right-click > 7-Zip > Open archive
- Sources > xpm > VirtualXPVHD > Extract somewhere
- Rename VirtualXPVHD to something like: Windows XP.vhd
- Download and install VirtualBox: https://www.virtualbox.org/wiki/Downloads
For 3D acceleration, use:
https://download.virtualbox.org/virtualbox/6.0.24/VirtualBox-6.0.24-139119-Win.exe
https://download.virtualbox.org/virtualbox/6.0.24/Oracle_VM_VirtualBox_Extension_Pack-6.0.24.vbox-extpack
- Run VirtualBox and make new Virtual Machine (Ctrl+N). Settings (Expert mode):
General:
Type: Microsoft Windows
Version: Windows XP (32-bit)
Base Memory: 2048MB
Use an existing virtual disk file > Locate your Windows XP.vhd
Go to settings:
General
Advanced
Shared Clipboard: Bidirectional (Self-explanatory)
Drag'n'Drop: : Bidirectional (Allows dragging files from the host into the VM)
System
Motherboard
Boot Order:
Optical
Hard Disk
Floppy (unchecked)
Network (unchecked)
Extended features:
Enable I/O APIC (Checked)
Processor
Processor(s): 2
Acceleration
Paravirtualization interface: Hyper-V
Display
Video Memory: 128MB
(Recommended) Open your VM's .vbox file in a text editor and set
Graphics Controller: VBoxSVGA
Acceleration:
Enable 3D Acceleration
------Enable 2D Video Acceleration
Audio
Audio controller: SoundBlaster 16
USB
Enable USB Controller
USB 3.0 (xHCI) Controller
(Optional) Add your USB sound card if you want the VM to take control at boot
- Install the extensions pack
- Boot and complete the initial setup, including first reboot, then shut down
- Boot and press F8 repeatedly to go into Safe Mode
- After closing the Safe Mode confirmation dialog, look for the option to install Guest Additions in VirtualBox
- Shut down/reboot
-- Install USB 3.0 drivers --
- Download file Chipset_Driver_GVT5M_WN_3.0.23.0_A00.EXE from https://www.dell.com/support/home/en/en/debsdt1/drivers/driversdetails?driverid=gvt5m
- Start Guest Windows XP
- Run the downloaded file and choose unzipping
- Click the button to open the folder with the unzipped files (...\Dell\drivers\Chipset_Driver_GVT5M_WN_3.0.23.0_A00)
- Run RENESAS-USB3-Host-Driver-30230-setup.exe to install the driver
- Shut down the Guest
- On the host, run a Command prompt as admin and insert
- "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata VBoxInternal/Devices/usb-xhci/0/Config/ChipType uPD720201
Adjust path if needed
Replace values within <>s and don't include <>s.
Don't remove ""s
If the VM name contains blanks, use quotation-marks ("Name of VM"). Type Enter. Nothing seems to happen (no news is good news).
- Command line to remove the extra data is the same as the one to set it, except the final part uPD720201, which must be omitted.
- Start the Guest and plug in a USB device. If necessary, visit the VM configuration and add a USB device filter.
-- Install sound card drivers --
- Look up your sound card's XP (32-bit) drivers
For instance, Creative SoundBlaster 5.1 Surround USB: https://support.creative.com/downloads/download.aspx?nDownloadId=11140
- Install and shut down
* Soundcard seems more stable when disabling it in the host via Device Manager in Control Panel
- Boot the VM and once in the desktop, click on USB devices > to let the VM take control and use it directly (Will be made unavailable in host)
- Done! You should now have full hardware audio acceleration with DirectSound3D + EAX support!
Errors
Error:
Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED).
Solution:
- Run following command in CMD (Run as admin)
bcdedit /set hypervisorlaunchtype off