VirtualBox

Opened 14 years ago

Closed 13 years ago

#6343 closed defect (fixed)

USB failure under Ubuntu Lucid -> fixed after the 3.1.6 release

Reported by: Jiehan Zheng Owned by:
Component: USB Version: VirtualBox 3.1.4
Keywords: USB Cc:
Guest type: Windows Host type: Linux

Description

Hello,

I have problem using USB inside my guest VM, my host is Ubuntu Lucid.

Everything goes OK under Karmic, but the last VirtualBox usbfs line in /etc/fstab stopped Lucid from booting up, so I removed that line.

Then I got the following error when opening Settings window:

"Could not access USB on the host system, because neither the USB file system (usbfs) nor the DBus and hal services are currently available. If you wish to use host USB devices inside guest systems, you must correct this and restart VirtualBox. The USB Proxy Service could not be started, because neither the USB file system (usbfs) nor the hardware information service (hal) is available."

Attachments (4)

VBox.log (56.8 KB ) - added by Jiehan Zheng 14 years ago.
log_vbox-3.1.8_lucid.bz2 (234.9 KB ) - added by cakoolen 14 years ago.
created by strace -f -o ~/log -s128 /usr/lib/virtualbox/VBoxSVC on ubuntu 10.04 32 bits
log_vladimircz.zip (358.1 KB ) - added by Vladimír Bláha 14 years ago.
Screenshot.png (244.9 KB ) - added by Rob 14 years ago.

Download all attachments as: .zip

Change History (22)

by Jiehan Zheng, 14 years ago

Attachment: VBox.log added

comment:1 by Thomas Novin, 14 years ago

usbfs is deprecated and also hal is deprecated in Lucid.

There is some discussion about this in this thread:

http://forums.virtualbox.org/viewtopic.php?f=1&t=27820

comment:2 by Michael Thayer, 14 years ago

We are aware of this issue, and it will get fixed as soon as possible.

comment:3 by dimitris, 14 years ago

Confirming the workaround in the referenced thread: Running hald manually (under sudo) allows VB to access the USB devices.

Lucid on amd64 host, WinXP SP3 guest, VB 3.1.6.

comment:4 by Michael Thayer, 14 years ago

Summary: USB failure under Ubuntu LucidUSB failure under Ubuntu Lucid -> fixed after the 3.1.6 release

This has been fixed in the development code. 3.0.2 beta 1 contains a fix, but not the final one.

comment:5 by Thomas Novin, 14 years ago

3.0.2 beta? 4.0.2 beta perhaps?

comment:6 by SiaR, 14 years ago

Hi, Im trying with the workaround and doesn't work. I have Lucid on i686, WinXP SP2 guest and VB 3.1.6 r59338.

comment:7 by Frank Mehnert, 14 years ago

3.2.0 Beta 1. It is already late today.

comment:8 by Michał Gołębiowski, 14 years ago

When could we expect running Lucid repository? (I guess it'll be with 3.2.0, not 3.1.x version)? At least an approximation (a day, a week or a month) would be useful.

comment:9 by Frank Mehnert, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in 3.1.8

comment:10 by Vladimír Bláha, 14 years ago

Resolution: fixed
Status: closedreopened

Still not working in 3.1.8 under the host Ubuntu 10.04 64 bit with guests Windows XP SP3 Prof. 32bit.

USB devices are detected, listed, but grayed and cannot be activated.

Perhaps the fact that I first used the version 3.1.6 might cause this.

comment:11 by Frank Mehnert, 14 years ago

Please could you do the following to help debugging the problem:

  1. Make sure no VBoxSVC daemon is running
  2. start the VBoxSVC daemon manually in one terminal window
    strace -f -o ~/log -s128 /usr/lib/virtualbox/VBoxSVC
    
  3. start the VM in another terminal window:
    VirtualBox --startvm VM_NAME
    

The click at the USB devices (which are greyed out in your case) and terminate the VM. Then terminate VBoxSVC with CTRL-C.

Please compress and attach the file ~/log to this ticket.

by cakoolen, 14 years ago

Attachment: log_vbox-3.1.8_lucid.bz2 added

created by strace -f -o ~/log -s128 /usr/lib/virtualbox/VBoxSVC on ubuntu 10.04 32 bits

in reply to:  11 comment:12 by Vladimír Bláha, 14 years ago

Replying to frank:

Please could you do the following to help debugging the problem:

  1. Make sure no VBoxSVC daemon is running
  2. start the VBoxSVC daemon manually in one terminal window
    strace -f -o ~/log -s128 /usr/lib/virtualbox/VBoxSVC
    
  3. start the VM in another terminal window:
    VirtualBox --startvm VM_NAME
    

The click at the USB devices (which are greyed out in your case) and terminate the VM. Then terminate VBoxSVC with CTRL-C.

Please compress and attach the file ~/log to this ticket.

Done. Please, find attached an strace log file.

by Vladimír Bláha, 14 years ago

Attachment: log_vladimircz.zip added

comment:13 by Vladimír Bláha, 14 years ago

I am sorry. Something went wrong and Firefox repeatedly loaded up the first file in the same folder where the log file was. That is why the two desktop links were loaded - unintentionally. Can you delete them?

-> Done (Michael)

by Rob, 14 years ago

Attachment: Screenshot.png added

comment:14 by Rob, 14 years ago

I can confirm that this issue happens to me as well. Same environment Ubuntu Lucid 64bit Host with Windows XP SP3 guest. But for me, there is one difference. One of my USB devices (my printer) shows up while all the others show as grayed out.

Screenshot attached.

comment:15 by Johann Renner, 14 years ago

I can confirm this is fixed, at least for a slightly different configuration... and with a small trick. I'm running (K)ubuntu Lucid 32bit Host and WinXP SP3 as guest in VirtualBox 3.1.8. I just had to add my username to /etc/group (as root), specifically to the line:

'vboxusers:x:125:<add_your_linux_username>'

After a reboot, my virtualized Windows started to show my USB devices in black.

Note: Adding devices to the machine by the USB device filter (in Settings) just 'plug' the device to your machine by default. If you don't add the device in the filter, you can add it later in the virtual machine windows: got to Devices->USB Devices and select the checkbox (I didn't know that until know :P).

in reply to:  15 comment:16 by Vladimír Bláha, 14 years ago

Johanner, thank you for the tip.

This was the first time I checked the vboxusers group in my fresh installation of Ubuntu 10.04. I did it through the gnome gui tool (System -> Preferences -> Users and Groups) and to my surprise I found that my username was listed there but was not active. (Perhaps some bug in upgrading procedure of VirtualBox from a version for Ubuntu 9.10 to v.3.1.8. for 10.04)

After activating my membership and logging out and in the USB support of VirtualBox works like a charm.

comment:17 by Rob, 14 years ago

Yes, that worked for me as well. Thank you Johanner.

comment:18 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: reopenedclosed

Works here with VBox 4.0.6. Always make sure to add the current user to the vboxusers group.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use