Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 364717

Summary: <app-emulation/virtualbox-4.0.12: no USB 2.0 checkbox even though extpack is installed
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: dberkholz, finstaden, mail, patrick, silvio.gerli, swapon, tomas
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven 2011-04-24 21:24:44 UTC
Hi,

when installing virtualbox+extpack (not virtualbox-bin), then the USB config doesn't have any possibility to enable USB 2.0. "VBoxManage modifyvm --usb-ehci on" works, however guest OS doesn't see any EHCI controller.

Extpack is installed and listed in virtual preferences.

Reproducible: Always
Comment 1 Sven 2011-04-25 09:52:45 UTC
Found others who had this problem. They suggest using udev rules:
http://forums.virtualbox.org/viewtopic.php?f=1&t=40922&start=15#p184306

However, Gentoo doesn't install any udev rules.
Comment 2 Sven 2011-04-25 10:16:21 UTC
My last comment is rubbish. It was meant to go to Bug 364719.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-26 03:25:11 UTC
Please post your `emerge --info' output too.
Comment 4 Silvio 2011-04-26 16:04:38 UTC
Same problem here:
emerge --info
Portage 2.1.9.46 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, libc-0-r0, 2.6.38-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 25 Apr 2011 18:15:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4-r1::maggu2810-overlay
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2::pentoo
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.2.4-r1, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ http://ftp.heanet.ie/pub/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ rsync://rsync3.it.gentoo.org/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo/"
LANG="it_IT"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/bangert /var/lib/layman/maggu2810-overlay /var/lib/layman/voyageur /var/lib/layman/belak /var/lib/layman/pentoo /usr/portage/local/manual"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds 64bit X a52 aac aalib acl acpi aiglx akode alias alsa amd64 amr ao apache apm audiofile autoreplace autotrace avahi avi bash-completion berkdb bitmap-fonts bluetooth bmp branding browserplugin bzip bzip2 cairo cdaudio cdr cli clucene connectionstatus consolekit contactnotes cracklib crypt cups cvd cvs cxx dbus dia dialup djvu dri dts dv dvd dvdr dvdread dynamicplugin ebook emboss encode ethereal exif fam fat ffmpeg firefox flac fluidsynth fontconfig foomaticdb fortran freetds gdbm gdu geolocation gif gimp git glib glitz gnutls gphoto2 gpm gps gpu groupwise gtk highlight history hvm i8x0 iconv icu ieee1394 imagemagick innodb iphone ipod ipv6 irc ithreads jack java javascript jingle jpeg jpeg2k kde kerberos kontact kqemu lame laptop lcms ldap libnotify lm_sensors lucene m4a mad mbrola mdb mdnsresponder-compat mercurial midi mikmod mime mmx mmxext mng modules moonlight mozilla mp3 mp4 mpeg mpeg2 mplayer mssql mudflap multilib musepack musicbrainz mysql ncurses netmeeting nls nowlistening npt1 nptl nptlonly nsplugin ntfs nvidia odbc ogg openal openexr opengl openipmi openmp oss pam pango pcmcia pcre pda pdf perl phonon plasma pmu png policykit portaudio postgres ppds pppd prelude python python3 qt qt3support qt4 quicktime rar raw rdesktop rdp readline reiserfs reports samba sametime sane scanner sdl semantic-desktop session sip smp sms soundtouch speex spell sse sse2 ssh ssl startup-notification subtitles subversion svg sysfs tcpd texteffect texteffects theora tidy tiff timidity tordns translator truetype truetype-fonts twolame type1-fonts udev unicode usb utempter v4l v4l2 vcd video virtualbox vnc vorbis wav wavpack webkit webpresence wicd wifi win64 winetriks winpopup wlm wmf wxwindows x264 xcb xen xine xml xorg xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev joystick synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau v4l v4l2" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Silvio 2011-04-26 20:19:38 UTC
I tried removing comments in:
/etc/udev/rules.d/10-virtualbox.rules
as emerge of virtualbox-modules says:

SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0644"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0644"

but it doesn't resolve problem.

I resolved putting deprecated option in kernel:

device drivers -> usb -> deficefs
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-05-08 16:11:46 UTC
Alright, there are now three new ebuilds in the tree:

  app-emulation/virtualbox-modules-4.0.6-r1
  app-emulation/virtualbox-4.0.6-r1
  app-emulation/virtualbox-bin-4.0.6-r1

They should make new USB handling working out of the box without the need of
/proc/bus/usb/* (which is deprecated anyway). Please give this a thorough
testing and report back here if it works (I don't use USB in my VMs so I cannot
test it).
Comment 7 Sven 2011-05-09 10:59:16 UTC
Bug should be reopened. There's still no USB 2.0 checkbox in the settings of virtualbox and guest don't see a EHCI usb controller. comitted change was about udev rules and seems to be unrelated.
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-05-09 15:23:22 UTC
Do you have 

  CONFIG_USB_DEVICEFS

enabled in your kernel?
Comment 9 Sven 2011-05-09 15:47:46 UTC
(In reply to comment #8)
> Do you have 
> 
>   CONFIG_USB_DEVICEFS
> 
> enabled in your kernel?

I disabled CONFIG_USB_DEVICEFS for my machine now since Bug 364719.

However, I'm confident that this bug is unrelated to the DEVICEFS issue. When I try to configure my virtual machine, I still don't see the checkbox to enable USB 2.0. It's not there. There's only one checkbor for enabled/disabling USB 1.x. Also, there's no error message which indicates any problems.

I double checked, that the checkbox still exists in virtualbox-bin and that the extpack is installed.
Comment 10 Sven 2011-05-09 15:48:19 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Do you have 
> > 
> >   CONFIG_USB_DEVICEFS
> > 
> > enabled in your kernel?
> 
> I disabled CONFIG_USB_DEVICEFS for my machine now since Bug 364719.

I wanted to type:
I disabled CONFIG_USB_DEVICEFS for my machine now since Bug 364719 is fixed.
Comment 11 Mikael 2011-05-13 19:35:17 UTC
Same problem.


emerge --info
Portage 2.1.9.49 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 13 May 2011 17:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/ http://mirror.gentoo.no/ rsync://ftp.df.lth.se/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/quad"
SYNC="rsync://rsync2.se.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 avx berkdb bzip2 cairo cli cracklib crypt cxx dri fortran gdbm gpm iconv jpeg jpeg2k mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline session sse sse2 sse3 sse4 sse4a sse5 ssl ssse3 sysfs tcpd threads truetype unicode v4l2 vdpau xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Sven 2011-05-19 09:45:45 UTC
problem persists in 4.0.8
Comment 13 Valmor de Almeida 2011-05-26 05:36:26 UTC
(In reply to comment #6)
> Alright, there are now three new ebuilds in the tree:
> 
>   app-emulation/virtualbox-modules-4.0.6-r1
>   app-emulation/virtualbox-4.0.6-r1
>   app-emulation/virtualbox-bin-4.0.6-r1
> 
> They should make new USB handling working out of the box without the need of
> /proc/bus/usb/* (which is deprecated anyway). Please give this a thorough
> testing and report back here if it works (I don't use USB in my VMs so I cannot
> test it).

There is still no USB 2.0 checkout and in my VM Windows 7 guest, all USB devices appear with the status: This device cannot start. (Code 10).

The devices are identified by the VM guest and drivers installed but the devices do not start. Apparently the USB 2.0 is not enabled.
Comment 14 Maciej S. Szmigiero 2011-05-27 16:22:12 UTC
This won't work with source version of VirtualBox package.

Look here http://www.virtualbox.org/browser/trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp?rev=37126
at line 127. 
This is the source code for USB settings dialog. It's clear that USB2 checkbox is hidden unless VBOX_WITH_EHCI macro is defined.

The same happens in main executable ( http://www.virtualbox.org/browser/trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp?rev=37126 at line 2194).

The VirtualBox configure script unsets this macro when building open source version. Looking at http://www.virtualbox.org/browser/trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp?rev=37126 line 63 building with VBOX_WITH_EHCI macro defined requires DevEHCI.cpp file, which is not a part of open source edition.

So probably no USB2 support in source version of VirtualBox for now.
Comment 15 Sven 2011-05-27 17:15:15 UTC
First of all, unmark this bug as "UNCONFIRMED".

Regarding VBOX_WITH_EHCI: didn't Oracle claim, that they seperated VirtualBox into two parts, namely open source edition + extpack?
I'm not sure, whether enabling VBOX_WITH_EHCI will result in a successfull build, but I hope that it is what Oracle does to obtain the version downloadable from the website.
Comment 16 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-05-27 20:31:29 UTC
First of all, thank you very much Maciej for your detailed and quite helpful analysis of the problem.

This bug can stay confirmed as it's quite obvious that USB-2 doesn't work:


kmk: *** No rule to make target `/var/tmp/portage/app-emulation/virtualbox-4.0.8/work/VirtualBox-4.0.8_OSE/src/VBox/Devices/USB/DevEHCI.cpp', needed by `/var/tmp/portage/app-emulation/virtualbox-4.0.8/work/VirtualBox-4.0.8_OSE/out/linux.amd64/release/obj/DevicesR3/USB/DevEHCI.o'.  Stop.
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
 * ERROR: app-emulation/virtualbox-4.0.8 failed (compile phase):


This is with VBOX_WITH_EHCI="true".

I also wonder why USB-2 still isn't possible. Let's try to contact upstream about this.
If anyone finds a solution to this problem that doesn't involves upstream releasing the missing DevEHCI.cpp please speak up here and I'd be glad to give such a solution a try.
Comment 17 Valmor de Almeida 2011-05-31 06:34:54 UTC
(In reply to comment #12)
> problem persists in 4.0.8

Same here. Just updated from 4.0.6 to 4.0.8 and the same problem persists.
Comment 18 Maciej S. Szmigiero 2011-07-04 14:42:16 UTC
Did anybody actually reported this as a bug to the upstream?
Comment 19 Carl Michal 2011-07-05 21:39:50 UTC
I opened a thread on the virtualbox forum.  It looks as though a fix is coming.

details here:
http://forums.virtualbox.org/viewtopic.php?f=10&t=42489
Comment 20 Maciej S. Szmigiero 2011-07-05 21:43:12 UTC
Thanks, it's great to see that a fix is coming.
Comment 21 Sven 2011-07-17 00:43:21 UTC
4.0.12 is released and seems to contain the fix.
Comment 22 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-07-17 10:51:42 UTC
Until I have time to add virtualbox-4.0.12 to the portage tree I keep this bug reopened. Meanwhile you can find this version with working USB2 support in the poly-c overlay.
Comment 23 Sven 2011-07-17 20:41:06 UTC
(In reply to comment #22)
> Until I have time to add virtualbox-4.0.12 to the portage tree I keep this bug
> reopened. Meanwhile you can find this version with working USB2 support in the
> poly-c overlay.

4.0.12 from poly-c overlay works beatifully here. USB2 support seems to work as well when using virtualbox+extpack instead of virtualbox-bin (verified using lspci inside guest).
Comment 24 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-07-17 21:15:46 UTC
virtualbox-4.0.12 is now in the tree. Thank you all for your efforts in making this bug disappear.