VirtualBox

Opened 15 years ago

Closed 11 years ago

#5590 closed defect (fixed)

USB device attach to guest only after host restart

Reported by: ddn Owned by:
Component: USB Version: VirtualBox 4.0.6
Keywords: Cc:
Guest type: Windows Host type: Windows

Description (last modified by Frank Mehnert)

i have alladin eToken USB key. Installed guest Windows XPSP2. Enabled USB 2.0 OHCI controller. Host is Windows7 64Bit with 4gigs of RAM. Instert USB key into host port. host Windows won't find drivers (thats ok!). Now i started VirtualBox and VM with WinXP. Try to attach my USB key. VirtualBox say error device is busy another request. But in guest WinXP i didn't see eToken USB key appears in device manager even after refresh!

I shutdown guest OS and then do my host Windows7 restart. Now all is okay. Loaded VirtualBox , attached USB key (without error!) and guest WinXP sees new usb device.

Attachments (8)

VBox.log (53.9 KB ) - added by ddn 15 years ago.
vbox log file after reboot and success start
usb1.jpg (50.0 KB ) - added by ddn 13 years ago.
usb2.jpg (54.3 KB ) - added by ddn 13 years ago.
usb3.jpg (55.8 KB ) - added by ddn 13 years ago.
usb4.jpg (24.2 KB ) - added by ddn 13 years ago.
usb5.jpg (67.3 KB ) - added by ddn 13 years ago.
usb6.jpg (39.8 KB ) - added by ddn 13 years ago.
usb-winxpsp3-2011-04-26-20-29-08.log (49.7 KB ) - added by ddn 13 years ago.

Download all attachments as: .zip

Change History (29)

by ddn, 15 years ago

Attachment: VBox.log added

vbox log file after reboot and success start

comment:1 by Cristian EmmericK, 15 years ago

I have the same behavior with my virtual box. But it ocurrs everytime I add a new USB device. Soon I´ll be posting the log.

comment:2 by ddn, 13 years ago

with 4.0.6 VBox same behaviour - everytime adding new USB device require host OS reboot or VBox can't attach to device....

comment:3 by Frank Mehnert, 13 years ago

priority: majorcritical
Version: VirtualBox 3.0.12VirtualBox 4.0.6

This is actually a 4.0.6 regression. No idea why this happened with the older version of VirtualBox.

comment:4 by Frank Mehnert, 13 years ago

The 4.0.6 Windows build was replaced on the server. Build 4.0.6 r71416 should show the same behavior as VBox 4.0.4. There are still know issues (for example when starting VMs as different users), therefore I will keep this ticket open.

in reply to:  4 comment:5 by ddn, 13 years ago

Replying to frank:

The 4.0.6 Windows build was replaced on the server. Build 4.0.6 r71416 should show

It is on public server ? (can i download it from site downloads area at virtualbox.org ?)

comment:6 by Frank Mehnert, 13 years ago

Sure, just download the current 4.0.6 Windows package from Downloads.

comment:7 by ddn, 13 years ago

okay. tested it.... still again . i see no changes over version-to-version (build-to-build). Let me explain again:

started VBox VM with windows XP SP3 installed.

next, insert my usb device (in this example its alladin etoken pro usb key) see it in device manager (screenshot usb3)

now i click in VM bar -> devices -> USB -> etokenpro

windows started to install drivers (usb1 , usb2 screenshots)

oops! windows got me error (usb4 screenshot)

now i try again attach USB device in VM bar -> devices -> USB -> etokenpro

ops again! VBOX processes completely hangs (screenshots usb5, usb6)

Now i restarted my HOST OS all ALL do again all steps before - ALL IS FINE! VBox success attached USB to VM.

by ddn, 13 years ago

Attachment: usb1.jpg added

by ddn, 13 years ago

Attachment: usb2.jpg added

by ddn, 13 years ago

Attachment: usb3.jpg added

by ddn, 13 years ago

Attachment: usb4.jpg added

by ddn, 13 years ago

Attachment: usb5.jpg added

by ddn, 13 years ago

Attachment: usb6.jpg added

comment:8 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

After replacing the broken package by the repaired package (71416) you have to reboot once. Now you should be able to access the USB devices. Any further reboot should not be necessary anymore. Please reopen if that problem still appears.

comment:9 by ddn, 13 years ago

Resolution: fixed
Status: closedreopened

no. it doesn't work . symptoms again i posted before.

P.S.: YES, i did a clean reinstall of VBox w reboots

in reply to:  8 comment:10 by ddn, 13 years ago

Replying to frank:

i recorded PoC video with completely another system Windows 7 32bit SP1 EN (hp 2510p notebook): http://www.youtube.com/watch?v=IKSxJtd4ZsE

comment:11 by Gavriel Fleischer, 13 years ago

I have the same problem on Ubuntu 10.10 amd64, VB 4.0.6 Yesterday it worked, today it didn't.

I upgraded to VB 4.0.8, hoped that it was fixed, but not :(

in reply to:  11 comment:12 by Gavriel Fleischer, 13 years ago

Ok, adding myself to vboxusers group fixed it!

comment:13 by ddn, 13 years ago

frank: is any updates on my ticket ? How i can help you? in 4.0.8 version no changes with USB :( i need to reboot every host with every new usb device to success attach it to VM

comment:14 by Frank Mehnert, 13 years ago

ddn, we are aware of several problems in the Windows USB driver and therefore currently doing a complete rewrite. The next major version should improve things notably for Windows hosts. Anyway, rebooting the host to get a new device recognized should not be necessary, even for the current version.

in reply to:  7 ; comment:15 by misha, 13 years ago

Replying to ddn: To get the clue on what's going on, could you please elaborate on the following:

  1. Am I correct that this happens with *any* usb device you plug into the host once VBox is running?
  2. Does the issue occur if you plug in a device *before* you run a VirtualBox (e.g. right after the host boots & you log in)?
  3. Are you able to successfully capture the device if you add a filter for it in VM settings?

in reply to:  15 ; comment:16 by ddn, 13 years ago

Replying to misha:

  1. Am I correct that this happens with *any* usb device you plug into the host once VBox is running?

yes, within all my devices (usb flash drives, usb2sata convertor, usb dvddrive, usb keys, usb2rs232 convertor)

  1. Does the issue occur if you plug in a device *before* you run a VirtualBox (e.g. right after the host boots & you log in)?

Occured all times whatever i insert usb device and cold boot OS then VBox or insert device while VBox is running...

  1. Are you able to successfully capture the device if you add a filter for it in VM settings?

Yes! Yes! This method it works like charm! I tested twice - completely working!

in reply to:  16 comment:17 by misha, 13 years ago

Replying to ddn:

  1. Does the issue occur if you plug in a device *before* you run a VirtualBox (e.g. right after the host boots & you log in)?

Occured all times whatever i insert usb device and cold boot OS then VBox or insert device while VBox is running...

Hm, so am I correct that the only case when you can dynamically attach a device to guest is when you plug in a device in a running host and restart the host, and it does NOT work if you plug in a device into a powered-off host, and then boot the host?

comment:18 by ddn, 13 years ago

yes. only 1 problem: usb devices attached to guest by using VB on-screen small toolbar (Devices->USB Devices-> ... while VM is running) works only after host reboot.

usb attached with usb filter method (you mentioned) - works fine!

comment:19 by Frank Mehnert, 13 years ago

ddn, could you install this test build to test if the USB problem is fixed? Note that this test build might be unstable regarding other issues. After the test you can install the 4.0.8 build again.

in reply to:  19 comment:20 by ddn, 13 years ago

Replying to frank:

ddn, could you install this test build to test if the USB problem is fixed? Note that this test build might be unstable regarding other issues. After the test you can install the 4.0.8 build again.

Frank! It is working! Sorry for long time to response. VBox is working fine now with fast USB attach/detach ! no need to use usb filters before starting VM. Thank you very much!

comment:21 by Frank Mehnert, 11 years ago

Description: modified (diff)
Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use