virtualbox usb help

Ask other users about problems encountered with portable apps or help by posting solutions to existing problems.
Post Reply
Message
Author
-.-
Posts: 325
Joined: Mon Oct 06, 2008 4:32 pm

virtualbox usb help

#1 Post by -.- »

i cant find the hardwarer when i try to use usb support on virtualbox with windows xp

anyone know how to fix this? thanks

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

#2 Post by castman »

This is a bit old topic already and I was just waiting until the time I got free enough to provide the solution I discovered.

At least with me, the launcher doesn't really make the driver work to VirtualBox and you fall down forced to install the driver. However, I discovered a solution, read this .reg file that tells all that the VirtualBox USB driver does to the system:

Edit: FIXED VirtualBox full portable USB support is possible with the code below

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0019]
"InfPath"="C:\\Documents and Settings\\User\\My Documents\\VB\\app32\\drivers\\usbdrv\\device\\oem12.inf"
"InfSection"="VBoxUSB.Dev"
"InfSectionExt"=".NT"
"ProviderName"="Sun Microsystems, Inc."
"DriverVersion"="3.0.0.0"
"MatchingDeviceId"="usb\\vid_80ee&pid_cafe"
"DriverDesc"="VirtualBox USB"
"DriverDate"="6-30-2009"
"DriverDateData"=hex:00,40,02,b6,15,f9,c9,01

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VBoxUSB]
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):00,
"DisplayName"="VirtualBox USB"
"Group"="Base"
"DevLoader"="*ntkern"
"NTMPDriver"="VBoxUSB.sys"
"Tag"=dword:00000016
Instructions:

1. Where I cut off the data numbers, ImagePath, place the driver filename as following: \??\C:\Documents and Settings\User\My Documents\Folder\VBoxUSB.sys, if it is not assigned like that ! ('Documents and Settings' is the default folder for who use Portable Software inside My Documents foder)

2. Edit the German AutoIt3 VirtualBox wrapper launcher source code to meet the following structure: "cmd /c sc create VBoxUSB binpath= "&chr(34)&"%CD%\"& $arch &"\drivers\usbdrv\device\VBoxUSB.sys"&chr(34)&" type= kernel start= auto error= normal displayname= "&chr(34)&"VirtualBox USB"&chr(34)&" group= Base". That's the right structure to the creation of the drivers services.

3. Edit the remaining service drivers and start, stop, delete commands to meet their original .inf files (except for the 'start' argument). I don't see any reason to modify such things. Done!

Note: I don't know from where the value DriverDateData came from... GOOD NEWS! The driver works without this value!

These values below are just for system curiosity, you don't need them for this!

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"Installation Sources"=hex(7):00,

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Device Installer]
"SearchOptions"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\LastKnownGoodRecovery\LastGood]
"INF/oem1.inf"=dword:00000001
"INF/oem1.PNF"=dword:00000001
"INF/oem2.inf"=dword:00000001
"INF/oem2.PNF"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\GroupOrderList]
"Base"=hex(3):00,

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\LEGACY_PORTABLEVBOXUSBMON]
"NextInstance"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&fffffffe&0&2]
"DeviceDesc"="VirtualBox USB"
"LocationInformation"="W270"
"Capabilities"=dword:00000000
"UINumber"=dword:00000000
"HardwareID"=hex(7):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00
"CompatibleIDs"=hex(7):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00
"ConfigFlags"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&fffffffe&0&2\Device Parameters]
"ExtPropDescSemaphore"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&fffffffe&0&2\LogConf]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&ffffffff&0&2]
"DeviceDesc"="VirtualBox USB"
"LocationInformation"="USB camera"
"Capabilities"=dword:00000000
"UINumber"=dword:00000000
"HardwareID"=hex(7):00
"CompatibleIDs"=hex(7):00
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Class"="USB"
"Driver"="{36FC9E60-C465-11CF-8056-444553540000}\\0001"
"Mfg"="Sun Microsystems, Inc."
"Service"="VBoxUSB"
"ConfigFlags"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&ffffffff&0&2\Device Parameters]
"ExtPropDescSemaphore"=dword:00000001
"SymbolicName"="\\??\\USB#Vid_80EE&Pid_CAFE#5&ffffffff&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}"

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_80EE&Pid_CAFE\5&ffffffff&0&2\LogConf]
I cut off some data numbers to avoid people getting personal and useless information. After some meditation I have found the only importants and necessary keys: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0001 and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VBoxUSB

As you can see, you can point a custom path to the inf file as long as the name of the file has the "oemxxxx.inf" format, where xxxx represents the installation number.

Now It works :D !!

JRE portable and Visual C++ '05 Runtime portable, wait for me :mrgreen:
Last edited by castman on Sat Jul 18, 2009 1:31 pm, edited 5 times in total.

-.-
Posts: 325
Joined: Mon Oct 06, 2008 4:32 pm

#3 Post by -.- »

o i found the driver inside the drivers folder in the portable verison

just forgot i made this topic, :S but if anyone wants to install usb drivers its in the apps/drivers folder, but doing it makes the thing not portable (stealthy) anymore

johngross
Posts: 1
Joined: Wed Jul 08, 2009 7:05 pm

Re: virtualbox usb help

#4 Post by johngross »

I'm puzzled by something in catman's post.

The Regedit shows a "Driver" key which finishes "..}\\0001" (please note: I am interested only in the fact that there are *two* backslashes there), while in the accompanying text there is only "..}\0001".

Does this matter or not?

I have discovered a similar anomaly between two PCs running WinXP SP3: the one with the *two* backslashes refuses to show any USB memory sticks in My Computer if they are plugged in after system boot, while the one with *one* backslash happily shows them immediately they are plugged in and they disappear when they are unplugged. So I did a Google Groups advanced search and this post showed up, and I'm wondering if I should do something about it.

All comments would be greatly appreciated.

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

Re: virtualbox usb help

#5 Post by castman »

OMG! Don't assign my registry log to existing devices! :mrgreen: That was not my intention.

As I previously said that numbers oemxxxx.inf AND ALSO (correcting me) \xxxx were modified to avoid providing personal and useless information :P.

No big secrets at all. That's why people should avoid copy and pasting without thinking what the info. are actually does.

And don't always use this code, the system changes it whenver a driver is installed/modified/uninstalled. These are crescent numbers.

AH! I understood what were you trying to say! As the information I read on the internet, the regedit.exe program was buit in C language. Then in order to get a backslash in registry values, you must do a double backslash.

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

FIXED

#6 Post by castman »

People who are interested take a look at my first post.

castman
Posts: 179
Joined: Sat Jun 28, 2008 5:41 am
Location: Brazil, Sao Paulo
Contact:

Re: virtualbox usb help

#7 Post by castman »

Why don't you try another virtual machine application? For Linux there are better options than Windows, I suppose. Example: KVM. Take a look at http://wikipedia.org !!

Post Reply