How to add USB to your Win95 OSR2 VM

Discussions about using Windows guests in VirtualBox.
Post Reply
ghr
Volunteer
Posts: 383
Joined: 25. May 2007, 22:46
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: DOS, Win3x, Win95, WinXP, Ubuntu, OS/2

How to add USB to your Win95 OSR2 VM

Post by ghr »

This section describes how to add a USB interface for your favorite USB stick to a Win95 VM.

Prerequisites:
- a Win95 VM, without USB so far...
- with Win95 ver 4.00.950B (My Computer, Properties; DOS ver shows 4.00.1111 in my case)
- the file w95usbflash11.zip from here: http://toastytech.com/files/cruzerwin95.html

Preparation:
- make a temp dir for your USB stuff; this should contain:
- the USBSUP.EXE from your Win95 install CD (under Other, USB)
- the unzippped w95usbflash11
- in there: add VID & PID of your USB stick to the file SNDK95H.inf (it has lots of examples)
- an empty directory usb_unpack
- copy this temp dir to an iso (CDROM image)

In VirtualBox:
- add USB to your VM (no need for EHCD, we're not going to get USB 2.0)
- mount the iso created above
- boot VM; it will find new USB hardware, cancel the wizard
- copy (from iso) your usb stuff to the VM HDD
- from there; run USBSUPP.EXE (this may require safe mode)
- a suggestion to reboot will pop up - just leave it and...
- go to WINDOWS\TEMP\MSE... i.e. the directory where the USB setup files have been unpacked
- copy those files into the empty usb_unpack directory
- reboot (1)
- VM finds PCI USB - OpenHCD USB hostcontroller
- redirect the hardware installer to the to usb_unpack dir
- reboot (2)
- DeviceManager will show a USB OHCD controller with yellow question mark
- shutdown and reboot
- USB Root Hub will be installed; when done, Device Manager will show OHCD controller and USB Root Hub
- shut down
- add usb stick to host and attach to VM (i.e. adjust the VirtualBox USB filter)
- detach stick
- reboot
- attach stick
- point installer to your flash directory with updated SNDK95H.inf file (you may have to do that twice)
- now it will install a driver for your USB stick and one for USB mass storage port
- when done: Device Manager will show 3 components under USB

Notes:
- for each 'new' USB device (stick) the installer will (have to) run - add lines as required to SNDK95H.inf
- this process runs better on real hardware :-)
- no need for this type of device to run USBUPD2.EXE
- I have only tried this with FAT formatted USB sticks
- done using VirtualBox 1.5.6
Post Reply