VirtualBox

Ticket #5590 (closed defect: fixed)

Opened 4 years ago

Last modified 3 months ago

USB device attach to guest only after host restart

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

Description (last modified by frank) (diff)

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

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

Change History

Changed 4 years ago by ddn

vbox log file after reboot and success start

comment:1 Changed 4 years ago by CEK

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 Changed 3 years ago by ddn

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 Changed 3 years ago by frank

  • Priority changed from major to critical
  • Version changed from VirtualBox 3.0.12 to VirtualBox 4.0.6

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

comment:4 follow-up: ↓ 5 Changed 3 years ago by frank

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.

comment:5 in reply to: ↑ 4 Changed 3 years ago by ddn

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 Changed 3 years ago by frank

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

comment:7 follow-up: ↓ 15 Changed 3 years ago by ddn

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.

Changed 3 years ago by ddn

Changed 3 years ago by ddn

Changed 3 years ago by ddn

Changed 3 years ago by ddn

Changed 3 years ago by ddn

Changed 3 years ago by ddn

Changed 3 years ago by ddn

comment:8 follow-up: ↓ 10 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

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 Changed 3 years ago by ddn

  • Status changed from closed to reopened
  • Resolution fixed deleted

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

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

comment:10 in reply to: ↑ 8 Changed 3 years ago by ddn

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 follow-up: ↓ 12 Changed 3 years ago by flocsy

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 :(

comment:12 in reply to: ↑ 11 Changed 3 years ago by flocsy

Ok, adding myself to vboxusers group fixed it!

comment:13 Changed 3 years ago by ddn

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 Changed 3 years ago by frank

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.

comment:15 in reply to: ↑ 7 ; follow-up: ↓ 16 Changed 3 years ago by misha

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?

comment:16 in reply to: ↑ 15 ; follow-up: ↓ 17 Changed 3 years ago by ddn

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!

comment:17 in reply to: ↑ 16 Changed 3 years ago by misha

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 Changed 3 years ago by ddn

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 follow-up: ↓ 20 Changed 3 years ago by 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.

comment:20 in reply to: ↑ 19 Changed 3 years ago by ddn

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 Changed 3 months ago by frank

  • Status changed from reopened to closed
  • Resolution set to fixed
  • Description modified (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use