USB devices don't list

Discussions related to using VirtualBox on Linux hosts.

USB devices don't list

Postby Ofloo » 24. Aug 2019, 09:43

USB devices don't list, I've always been a member of the vboxusers group and yes even when i reboot !

ubuntu 18.04 LTS
Virtualbox 5.2.32

Code: Select all   Expand viewCollapse view
 vboxmanage list usbhost
Host USB Devices:

<none>

Code: Select all   Expand viewCollapse view
grep vboxusers /etc/group
vboxusers:x:129:ofloo

Code: Select all   Expand viewCollapse view
UID=1000(ofloo) GID=1000(ofloo) groepen=1000(ofloo),4(adm),20(dialout),21(fax),22(voice),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),34(backup),44(video),46(plugdev),50(staff),113(netdev),118(lpadmin),120(scanner),127(sambashare),129(vboxusers),130(vboxsf)


EDIT:
When i do vboxmanage list usbhost as root it does show them so it is a permission issue, but aside from adding myself to the vboxusers group and refreshing that group i don't really see what i should change.

with the service doesn't seem anything strange is going on..

Code: Select all   Expand viewCollapse view
# systemctl status virtualbox
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: active (exited) since Sat 2019-08-24 10:03:58 CEST; 19min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1716 ExecStart=/etc/init.d/virtualbox start (code=exited, status=0/SUCCESS)

aug 24 10:03:58 pinky systemd[1]: Starting LSB: VirtualBox Linux kernel module...
aug 24 10:03:58 pinky virtualbox[1716]:  * Loading VirtualBox kernel modules...
aug 24 10:03:58 pinky virtualbox[1716]:    ...done.
aug 24 10:03:58 pinky systemd[1]: Started LSB: VirtualBox Linux kernel module.
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby Ofloo » 24. Aug 2019, 10:38

Code: Select all   Expand viewCollapse view
#pwd
/dev/vboxusb/001
# ls -l
totaal 0
crw-rw---- 1 root vboxusers 189, 2 aug 24 10:27 003
crw-rw---- 1 root vboxusers 189, 4 aug 24 10:27 005
crw-rw---- 1 root vboxusers 189, 5 aug 24 10:27 006
crw-rw---- 1 root vboxusers 189, 6 aug 24 10:27 007
crw-rw---- 1 root vboxusers 189, 7 aug 24 10:27 008
crw-rw---- 1 root vboxusers 189, 8 aug 24 10:27 009

that 189 is that supposed to be there, ... i've never seen a 2 groups or spaces inside groups .. ? Or whatever that 189 is supposed to be?
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby Martin » 24. Aug 2019, 11:16

That 189 is the file size. ;)

-rwxrw-r--    10    root   root 2048    Jan 13 07:11 afile.exe
?UUUGGGOOOS 00 UUUUUU GGGGGG #### ^-- date stamp and file name are obvious ;-)
^ ^ ^ ^ ^ ^ ^ ^ ^
| | | | | | | | \--- File Size
| | | | | | | \-------- Group Name (for example, Users, Administrators, etc)
| | | | | | \--------------- Owner Acct
| | | | | \---------------------- Link count (what constitutes a "link" here varies)
| | | | \--------------------------- Alternative Access (blank means none defined, anything else varies)
| \--\--\----------------------------- Read, Write and Special access modes for [U]ser, [G]roup, and [O]thers (everyone else)
\------------------------------------- File type flag
Martin
Volunteer
 
Posts: 2251
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: USB devices don't list

Postby Ofloo » 24. Aug 2019, 11:30

right now you mention it is obvious, .. it's because it's so close to the gid that i thought wtf is that, usually it's wrapped differently. My bad.

What about the numbers behind that then 2,4, 5 ..

vboxusers 189, 2 aug 24
I figured that was the size

In the mean while i figured I'd install virtualbox 6 and see if this issue persists, .. and apparently it's just the same thing. Going to reboot to an earlier kernel see if that helps.

*EDIT: rebooting to an earlier kernel didn't do a thing.
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby Ofloo » 24. Aug 2019, 11:45

Virtualbox version 6.0.10 r132072

Same issue.
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby fth0 » 24. Aug 2019, 12:48

Martin wrote:That 189 is the file size. ;)

No, it's not. ;) Character devices have no file size, but major and minor device numbers.
fth0
Volunteer
 
Posts: 245
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, macOS, ...

Re: USB devices don't list

Postby Ofloo » 24. Aug 2019, 15:41

Although on the other hand I'm happy to report that my system doesn't freeze any more while a vm is running and screensaver comes on, .. i used to put it in performance mode running vms, so it wouldn't go into powersafe mode, .. screensaver anyway it doesn't freeze the system any more, however can't put my finger on it but usb just doesn't work.

An other thing I've noticed is that it isn't a permission thing any more with version 6, .. since when I su to root it used to show the devices as root user but it doesn't do that any more either.
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby socratis » 27. Aug 2019, 12:41

@Ofloo
One thing that I didn't ask for previously, is the output of the command (from the host):
    VBoxManage -version
Ofloo wrote:since when I su to root it used to show the devices as root user but it doesn't do that any more either.
So... now you can't even show any USB devices, even when being 'root'?
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26738
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: USB devices don't list

Postby k-of-g » 30. Aug 2019, 18:22

I have this same issues with v6.0.10, USB devices list as root, but not as normal user. User is in the vboxusers group (and always has been). This is a new issue, but not sure if it cropped up from from v5 -> v6, or in a v6 incremental upgrade as I don't use USB devices in guests very often.
k-of-g
 
Posts: 2
Joined: 30. Aug 2019, 18:20

Re: USB devices don't list

Postby socratis » 31. Aug 2019, 09:24

@k-of-g
k-of-g wrote:User is in the vboxusers group (and always has been)
Did you reboot the host after getting yourself into the 'vboxusers' group? That's mandatory.

I want to see the output of the following commands:

    VBoxManage -version
    VBoxManage list extpack
    id
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26738
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: USB devices don't list

Postby k-of-g » 31. Aug 2019, 13:07

socratis wrote:@k-of-g
k-of-g wrote:User is in the vboxusers group (and always has been)
Did you reboot the host after getting yourself into the 'vboxusers' group? That's mandatory.

Yes, the group was set a very long time ago; but, did another reboot to try to address this issue before posting my initial comments.
I want to see the output of the following commands:

    VBoxManage -version
    VBoxManage list extpack
    id

Code: Select all   Expand viewCollapse view
myname@myhost ~ $ VBoxManage -version
6.0.10_Gentoor132055
myname@myhost ~ $ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      6.0.10
Revision:     132072
Edition:     
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:
myname@myhost ~ $ id
uid=1000(myname) gid=100(users) groups=100(users),5(tty),6(disk),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),97(input),101(plugdev),106(lpadmin),248(crontab),249(vboxusers)

Interestingly, it started working again, but I'm not sure what changed (no reboot, etc.).
k-of-g
 
Posts: 2
Joined: 30. Aug 2019, 18:20

Re: USB devices don't list

Postby socratis » 31. Aug 2019, 17:54

k-of-g wrote:
$ VBoxManage -version
6.0.10_Gentoor132055
It looks like you're using the Gentoo fork version of VirtualBox. You can either ask in their forums/channels for help, or completely remove/uninstall/delete/purge their version and install the official version from the Linux Downloads section of VirtualBox.

k-of-g wrote:Interestingly, it started working again, but I'm not sure what changed (no reboot, etc.).
When in doubt, a reboot cures 50% of the issues.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26738
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: USB devices don't list

Postby Ofloo » 21. Sep 2019, 09:33

Code: Select all   Expand viewCollapse view
vboxmanage -version
6.0.12r133076

In the mean while they do list back as root but still not as user.

Code: Select all   Expand viewCollapse view
vboxmanage list usbhost
Host USB Devices:

<none>

Code: Select all   Expand viewCollapse view
lsb_release -a
No LSB modules are available.
Distributor ID:   Ubuntu
Description:   Ubuntu 18.04.3 LTS
Release:   18.04
Codename:   bionic

Code: Select all   Expand viewCollapse view
cat /etc/apt/sources.list.d/virtualbox.list
deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib

Code: Select all   Expand viewCollapse view
vboxmanage list  extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      6.0.12
Revision:     133076
Edition:     
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:

Code: Select all   Expand viewCollapse view
lsmod | grep -i vbox
vboxpci                24576  0
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               475136  3 vboxpci,vboxnetadp,vboxnetflt

Code: Select all   Expand viewCollapse view
dmesg |grep -i vbox
[   48.229672] vboxdrv: Found 8 processor cores
[   48.248157] vboxdrv: TSC mode is Invariant, tentative frequency 4007999091 Hz
[   48.248157] vboxdrv: Successfully loaded version 6.0.12 (interface 0x00290008)
[   48.450792] VBoxNetFlt: Successfully started.
[   48.452024] VBoxNetAdp: Successfully started.
[   48.453093] VBoxPciLinuxInit
[   48.454369] vboxpci: IOMMU not found (not registered)
Ofloo
 
Posts: 6
Joined: 24. Aug 2019, 09:36

Re: USB devices don't list

Postby socratis » 24. Sep 2019, 00:02

The only difference between your Ubuntu18.04, and my Ubuntu18.04-based Mint19, is the output of 'lsmod':
$ lsmod
Module Size Used by
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
vboxdrv 487424 3 vboxpci,vboxnetadp,vboxnetflt

And from your "id":
Code: Select all   Expand viewCollapse view
UID=1000(ofloo) GID=1000(ofloo) groepen=1000(ofloo),4(adm),20(dialout),21(fax),22(voice),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),34(backup),44(video),46(plugdev),50(staff),113(netdev),118(lpadmin),120(scanner),127(sambashare),129(vboxusers),130(vboxsf)
I see that you're running as administrator. I'm not. Can you create another user, add them to the 'vboxusers' group and try?
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26738
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 15 guests