USB dummy driver for host?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
carsten.spiess
Posts: 15
Joined: 25. Oct 2009, 15:23
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu

USB dummy driver for host?

Post by carsten.spiess »

Hello all,

does anyone know a dummy driver which i can install for an USB device on my windows host?
The driver just needs to claim the vendor and product id to avoid installing the real driver.
Thanks for help, regards
Carsten
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: USB dummy driver for host?

Post by stefan.becker »

Be more specific for waht you need this.
carsten.spiess
Posts: 15
Joined: 25. Oct 2009, 15:23
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu

Re: USB dummy driver for host?

Post by carsten.spiess »

Hello Stefan,
stefan.becker wrote:Be more specific for what you need this.
i have an huawai umts modem which i wan't to use with my firewall VM
and have it not available on the host side.
The huawei is a bit strange: first it acts as an usb mass stroage device,
trying to autoinstall its driver, after installing the driver it's a modem.
But in general i want to have some usb devices to be only available to my VM's and
not to install any drivers on my host.
Regards, Carsten
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: USB dummy driver for host?

Post by stefan.becker »

On a linux host the solution would be blacklisting the model in udev.

Have you tried disabling the modem in the windows device manager?
carsten.spiess
Posts: 15
Joined: 25. Oct 2009, 15:23
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu

Re: USB dummy driver for host?

Post by carsten.spiess »

stefan.becker wrote:On a linux host the solution would be blacklisting the model in udev.
guess why we are in "VirtualBox on Windows Hosts" :wink:
stefan.becker wrote:Have you tried disabling the modem in the windows device manager?
Good idea, i didn't until now, but no success :(
It behaves strange: when i activate the filter, the hoover box says "captured" but the check mark is missing.
Inside my VM i can't see the device.

When i click on the device again i get:
USBD device "HUAWEI" with uuid {...} is busy with a previous request
Errorcode:
E_INVALIDARG (0x80070057)
Component
HostUSBDevice
Interface:
IHostUSBDevice {173b4b44-d268-4334-a00d-b6521c9a740a}
Callee:
IConsole {0a51994b-cbc6-4686-94eb-d4e4023280e2}

Tomorrow i will write a dummy driver.
Regards, Carsten
carsten.spiess
Posts: 15
Joined: 25. Oct 2009, 15:23
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu

Re: USB composite device

Post by carsten.spiess »

writing a dummy driver didn't really help :(
but i had (partly) success with modified filter settings:
I had to enter only name, vendor and product id for the composite device.
Revision number, manufacturer, product, serial no and port have to be empty strings.

After this i can access the device in my VM when doing this procedure:
- boot host
- plug in USB device
- check in device manager that all drivers are loaded
(in my case it's the composite device, mass storage device, modem and com port)
- start the VM

After shutting down the VM i have to manually deinstall the usb composite device,
which is still owned by the virtualbox usb driver and to reboot the host.

Is there any idea on how to avoid rebooting the host :?:
Thanks, Carsten
Post Reply