Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671346 - app-emulation/virtualbox cannot see USB devices if run as normal user
Summary: app-emulation/virtualbox cannot see USB devices if run as normal user
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-17 14:03 UTC by Silvio
Modified: 2018-12-17 07:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio 2018-11-17 14:03:29 UTC
Recently (I don't know from when, but no more than few days or a couple of weeks) Virtualbox if run as user cannot see any USB device.

It is possibile to check without running Virtualbox with the command:

 ~ $ VBoxManage list usbhost
Host USB Devices:

<none>

If I run as root everything work fine (both Virtualbox app and the command line test:

 # VBoxManage list usbhost
Host USB Devices:

UUID:               3ac1c9b1-5428-4122-ab18-a9ee0e7d2184
VendorId:           0x0cf3 (0CF3)
ProductId:          0xe300 (E300)
Revision:           0.1 (0001)
Port:               2
USB version/speed:  2/Full
Manufacturer:       Qualcomm Atheros Communications
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3//device:/dev/vboxusb/001/003
Current State:      Busy

UUID:               235c4d31-fbfb-44ab-8c52-ff05bfe573d8
VendorId:           0x0c45 (0C45)
ProductId:          0x670c (670C)
Revision:           86.38 (8638)
Port:               4
USB version/speed:  2/High
Manufacturer:       CN09GTFM72487695B051A01
Product:            Integrated_Webcam_HD
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5//device:/dev/vboxusb/001/007
Current State:      Busy

UUID:               49365a52-42e3-49f3-84d8-d1817db83f23
VendorId:           0x04f3 (04F3)
ProductId:          0x20d0 (20D0)
Revision:           17.18 (1718)
Port:               3
USB version/speed:  2/Full
Manufacturer:       ELAN
Product:            Touchscreen
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4//device:/dev/vboxusb/001/005
Current State:      Busy

UUID:               74bdb41a-bce6-479b-b669-c24a0182e788
VendorId:           0x046d (046D)
ProductId:          0xc31c (C31C)
Revision:           100.0 (10000)
Port:               2
USB version/speed:  1/Low
Manufacturer:       Logitech
Product:            USB Keyboard
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.3//device:/dev/vboxusb/001/006
Current State:      Busy

UUID:               7b6cc65e-8033-40ce-993e-88c8a73b0a18
VendorId:           0x046d (046D)
ProductId:          0xc077 (C077)
Revision:           114.0 (11400)
Port:               1
USB version/speed:  2/Low
Manufacturer:       Logitech
Product:            USB Optical Mouse
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.2//device:/dev/vboxusb/001/004
Current State:      Busy
Comment 1 Silvio 2018-11-17 14:07:02 UTC
I didn't change anything.

I'm in the group vboxusers correctly:

~ $ groups
tty disk lp wheel floppy audio cdrom sshd tape video games cdrw usb users sddm plugdev polkitd lpadmin oipenhab ntp input pcscd openct openhab realtime scanner rtkit vboxusers silvio

It worked and now it doesn't work anymore.

I googled a lot but I didn't find nothing. So I started to think it could be some libraries update of Gentoo portage.

I've tried both last version:

5.2.22 

and masked new versione:

**6.0.0_beta2

but the problem still remains.
I did not try to downgrade to previous versions.
Comment 2 Silvio 2018-11-17 14:12:04 UTC
emerge --info

Portage 2.3.51 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.2.0, glibc-2.27-r6, 4.19.2-gentoo x86_64)
=================================================================
System uname: Linux-4.19.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-gentoo-2.6
KiB Mem:    16277208 total,   9715272 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 16 Nov 2018 23:30:01 +0000
Head commit of repository gentoo: c894be80ab28c389a39a3f7fea974120fff5b83b
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.39.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r4::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

betagarden
    location: /var/lib/layman/betagarden
    masters: gentoo
    priority: 50

flow
    location: /var/lib/layman/flow
    masters: gentoo
    priority: 50

rion
    location: /var/lib/layman/rion
    sync-type: laymansync
    sync-uri: https://github.com/rion-overlay/rion-overlay.git
    masters: gentoo
    priority: 50

superposition
    location: /var/lib/layman/superposition
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/user/superposition.git
    masters: gentoo
    priority: 50

vortex
    location: /var/lib/layman/vortex
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en it_IT en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus declarative dell dri dri3 dts dvd dvdr egl emboss encode exif fam ffmpeg fftw flac fortran gdbm gif glamor gpm gtk hidpi iconv icu id3tag ipv6 javafx jpeg kde kipi kwallet lcms ldap libinput libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ntfs objc ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qml qt5 readline s3tc sdl seccomp semantic-desktop spell ssl startup-notification svg tcpd theora tiff touchpad truetype udev udisks unicode upower usb uxa v4l vaapi vdpau vorbis vpx widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="snd_hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="karbon plan sheets stage words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2 glamor" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse joystick wacom synaptics evdev libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="intel i965 i915 vesa v4l v4l2 modesetting fbdev" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Silvio 2018-11-17 14:16:08 UTC
Could it be reletet to my bug:
https://bugs.gentoo.org/671348
I think they started more or less together.
Comment 4 Silvio 2018-11-18 10:56:40 UTC
Yesterday after an update of my system the:
emerge -NDavu world
propose me to recompile virtualbox.
After that it seems to work fine.
I leave this bug opened because it happens to have the same problem one time again today but I cannot reproduce it.
However I think it is solved.