"VBoxManage list usbhost" only lists USB devices before launching VBox GUI

Discussions related to using VirtualBox on Linux hosts.
Post Reply
virt25
Posts: 2
Joined: 18. Jul 2020, 14:16

"VBoxManage list usbhost" only lists USB devices before launching VBox GUI

Post by virt25 »

I'm running Windows 10 on Virtual Box (Kubuntu 20.04 as host) and I'm having a hard time trying to detect my USB on Windows. I'm using VB 6.1.12, installed Extension Pack and Guest Additions (on Windows).

The thing is, when I go to Devices > USB, not a single USB is listed in there. I'm reading this one topic (viewtopic.php?f=7&t=87206) which is quite similar to what (I think) it happens to me. My user belongs to 'vboxusers' group (I already logged out to make sure changes apply).

Trying to run

Code: Select all

sudo VBoxManage list usbhost
works good, but running

Code: Select all

VBoxManage list usbhost
only works sometimes. More specifically, it only works when I reboot my computer (or logout and in my session) and haven't started VirtualBox GUI. As soon as I open it (that is VirtualBox GUI), whenever I run 'VBoxManage list usbhost' I get

Code: Select all

Host USB Devices:

<none>
I don't know what could be causing this, it seems like VirtualBox is removing my user from 'vboxusers' group but when I restart I'm added back again? I'd appreciate some help. Thanks.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: "VBoxManage list usbhost" only lists USB devices before launching VBox GUI

Post by scottgus1 »

Having read the Linux Hosts forums for a while, though not skilled enough to actually help fix things that much, I would say this sort of thing has not shown much. Virtualbox itself does not have settings that cause this behavior.

Sudo vs not-sudo differences lead me to suspect there is some permissions problem in the Linux host OS with the regular account.
virt25
Posts: 2
Joined: 18. Jul 2020, 14:16

Re: "VBoxManage list usbhost" only lists USB devices before launching VBox GUI

Post by virt25 »

I "solved" this. In case anyone is having the same issue, just restart your computer and don't open VirtualBox GUI. Just launch it from the terminal with

Code: Select all

VBoxManage startvm "W10"
Replace W10 with the name of your vm.

It's just a workaround but I couldn't figure out why GUI is messing with permissions.
Post Reply