Another USB issue

Discussions related to using VirtualBox on Linux hosts.

Another USB issue

Postby tampa911 » 11. Jun 2021, 00:50

I have an Alfa AWUS036ACH and it is not recognized within VirtualBox running on an Ubuntu (20.04 LTS) host. I have followed instructions in a number of threads, but nothing seems to remedy the situation. The USB WiFi adapter is recognized by the host OS (but was manually disabled after testing)

My USB Webcam and USB Mouse both work without issue. I am stumped.

Below are the outputs requested on the USB Basics and Troubleshooting page. I have also zipped and attached the logs requested there...

=My account is a member of the virtualboxusers group.

vboxmanage -version
6.1.22r144080

vboxmanage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 6.1.22
Revision: 144080
Edition:
Description: Oracle Cloud Infrastructure integration, 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:

VBoxManage list usbhost
Host USB Devices:

<none>

VBoxManage list usbfilters
Global USB Device Filters:

<none>

VBoxManage showvminfo "TeleKali"
Name: TeleKali
Groups: /
Guest OS: Debian (64-bit)
UUID: b036451b-4245-4a11-87e5-42a2f7cf549a
Config file: /home/steve/VirtualBox VMs/TeleKali/TeleKali.vbox
Snapshot folder: /home/steve/VirtualBox VMs/TeleKali/Snapshots
Log folder: /home/steve/VirtualBox VMs/TeleKali/Logs
Hardware UUID: b036451b-4245-4a11-87e5-42a2f7cf549a
Memory size: 8192MB
Page Fusion: disabled
VRAM size: 128MB
CPU exec cap: 100%
HPET: disabled
CPUProfile: host
Chipset: piix3
Firmware: BIOS
Number of CPUs: 2
PAE: disabled
Long Mode: enabled
Triple Fault Reset: disabled
APIC: enabled
X2APIC: enabled
Nested VT-x/AMD-V: disabled
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device 1: Floppy
Boot Device 2: DVD
Boot Device 3: HardDisk
Boot Device 4: Not Assigned
ACPI: enabled
IOAPIC: enabled
BIOS APIC mode: APIC
Time offset: 0ms
RTC: UTC
Hardware Virtualization: enabled
Nested Paging: enabled
Large Pages: disabled
VT-x VPID: enabled
VT-x Unrestricted Exec.: enabled
Paravirt. Provider: Default
Effective Paravirt. Prov.: KVM
State: powered off (since 2021-06-10T22:25:22.076000000)
Graphics Controller: VMSVGA
Monitor count: 1
3D Acceleration: enabled
2D Video Acceleration: disabled
Teleporter Enabled: disabled
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: disabled
Allow Tracing to Access VM: disabled
Tracing Configuration:
Autostart Enabled: disabled
Autostart Delay: 0
Default Frontend:
VM process priority: default
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE (1, 0): Empty
SATA (0, 0): /home/steve/VirtualBox VMs/TeleKali/TeleKali.vdi (UUID: a46da561-39b5-4249-91ac-a7fccbe1c877)
NIC 1: MAC: 0800273822D7, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: AC97, Codec: AD1980)
Audio playback: enabled
Audio capture: disabled
Clipboard Mode: Bidirectional
Drag and drop Mode: Bidirectional
VRDE: disabled
OHCI USB: disabled
EHCI USB: disabled
xHCI USB: enabled

USB Device Filters:

<none>

Bandwidth groups: <none>

Shared folders:

Name: 'TeleKali_Drop', Host path: '/home/steve/TeleKali_Drop' (machine mapping), writable, auto-mount

Capturing: not active
Capture audio: not active
Capture screens: 0
Capture file: /home/steve/VirtualBox VMs/TeleKali/TeleKali.webm
Capture dimensions: 1024x768
Capture rate: 512kbps
Capture FPS: 25kbps
Capture options:

Guest:

Configured memory balloon size: 0MB
Attachments
TeleKali-2021-06-10-18-47-47.zip
Machine log from cold boot, usb connected, machine powered off.
(38.05 KiB) Downloaded 2 times
VBoxSVC.zip
(2.25 KiB) Downloaded 2 times
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby scottgus1 » 11. Jun 2021, 03:51

Thanks for the info! I see that 'list usbhost' shows no devices. Please look through this topic where the same thing happened. Apparently, at the end, it was found that the host OS was missing a file. viewtopic.php?f=7&t=103014

My account is a member of the virtualboxusers group

There's a command 'id' that is supposed to show this status, can you run it and post the output if the above doesn't help, just to round off the picture, please?
scottgus1
Site Moderator
 
Posts: 12462
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Another USB issue

Postby tampa911 » 11. Jun 2021, 04:39

I ran the ID command it shows group memberships, of which my account is apart of the vboxusers group.
Last edited by tampa911 on 11. Jun 2021, 04:50, edited 1 time in total.
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby tampa911 » 11. Jun 2021, 04:48

scottgus1 wrote:Thanks for the info! I see that 'list usbhost' shows no devices. Please look through this topic where the same thing happened. Apparently, at the end, it was found that the host OS was missing a file.

My account is a member of the virtualboxusers group

There's a command 'id' that is supposed to show this status, can you run it and post the output if the above doesn't help, just to round off the picture, please?



I don't have a vboxconfig file in the /etc/udev/rules.d folder and I don't have a udev folder under the usr path that was mentioned in this thread.... Could be a part of the problem, but I have no idea how to fix it if it is...
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby tampa911 » 11. Jun 2021, 04:51

id
uid=1000(steve) gid=1000(steve) groups=1000(steve),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),129(vboxusers)
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby tampa911 » 11. Jun 2021, 04:53

This is on my host machine... notice the last wireless adapter, that is the one I am trying to add to virtualbox

steve@Teleserver2:~/dict$ iwconfig
lo no wireless extensions.

eno2 no wireless extensions.

wlo1 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on

docker0 no wireless extensions.

wlx00c0caac1db0 unassociated ESSID:"" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=0/100 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby scottgus1 » 11. Jun 2021, 16:46

tampa911 wrote:a vboxconfig file .... Could be a part of the problem, but I have no idea how to fix it if it is...

Regrettably, neither do I. The links got very Linux-y, and I am more Windows-centric. It will have to be looked through and attempted, though. I don't see what else could be the problem.
scottgus1
Site Moderator
 
Posts: 12462
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Another USB issue

Postby fth0 » 11. Jun 2021, 19:49

VBoxSVC.log wrote:
00:00:00.140291 nspr-2   Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE

AFAIU this error indicates that the VirtualBox installation on the host is not correct. I'd suggest to uninstall all VirtualBox components (the VMs won't be removed), reboot the host, and reinstall VirtualBox. Please show the output of ls -l /dev/vbox* before the un-installation and after the re-installation.
fth0
Volunteer
 
Posts: 2172
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Another USB issue

Postby tampa911 » 12. Jun 2021, 18:04

Before uninstall


steve@Teleserver2:~$ ls -l /dev/vbox*
crw------- 1 root vboxusers 10, 58 Jun 10 18:07 /dev/vboxdrv
crw------- 1 root root 10, 57 Jun 10 18:07 /dev/vboxdrvu
crw------- 1 root root 10, 56 Jun 10 18:07 /dev/vboxnetctl

/dev/vboxusb:
total 0
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby fth0 » 13. Jun 2021, 11:11

Ok, that's what I expected. Please carry on with my suggestion.
fth0
Volunteer
 
Posts: 2172
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Another USB issue

Postby tampa911 » 13. Jun 2021, 17:04

That seemed to do it. The devices are now being recognized properly. Thanks fth0!


ls -l /dev/vboxdrv
crw------- 1 root root 10, 58 Jun 13 10:07 /dev/vboxdrv

Just for my curiosity and for anyone else who may have a similar issue in the future, what were those other directories in the output from the pre-reinstall ls ?
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby fth0 » 13. Jun 2021, 18:16

Those are not folders, but character devices (note the "c"). As could be seen from the error message inside the VBoxSVC.log file, the problematic one was /dev/vboxdrvu (note the "u", which does not stand for USB, BTW). It should now be read-/writable by either the vboxusers group or even by everyone.

I deliberately didn't tell you in advance, because people are tempted to manually correct the permissions then, but that would probably not solve the actual problem for them.
fth0
Volunteer
 
Posts: 2172
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Another USB issue

Postby tampa911 » 22. Jun 2021, 00:10

Something is messing me up... I went on vacation for a few days, left the host running and when I came back, USB was broken again in virtualbox. Seems permissions somehow got hosed again...

Code: Select all   Expand viewCollapse view
ls -l /dev/vbox*
crw------- 1 root root      10, 58 Jun 21 17:51 /dev/vboxdrv
crw-rw-rw- 1 root root      10, 57 Jun 21 17:51 /dev/vboxdrvu
crw------- 1 root root      10, 56 Jun 21 17:51 /dev/vboxnetctl

ls: cannot open directory '/dev/vboxusb': Permission denied


I readded my account to vboxusers and am now able to see most of my USB devices inside of virtualbox, but the Realtek adapter is missing again :(

Code: Select all   Expand viewCollapse view
ls -l /dev/vbox*
crw------- 1 root root      10, 58 Jun 21 18:15 /dev/vboxdrv
crw-rw-rw- 1 root root      10, 57 Jun 21 18:15 /dev/vboxdrvu
crw------- 1 root root      10, 56 Jun 21 18:15 /dev/vboxnetctl

/dev/vboxusb:
total 0
drwxr-x--- 2 root vboxusers 160 Jun 21 18:21 001
drwxr-x--- 2 root vboxusers  60 Jun 21 18:21 002


Code: Select all   Expand viewCollapse view
root@kali:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30

Re: Another USB issue

Postby tampa911 » 22. Jun 2021, 00:28

OK, Scratch that, after adding my user account to the vboxusers group, I started the VM, with the Realtek disconnected from the host, waited a few minutes, plugged it in and it ended up being recognized....

So confused.... :D
tampa911
 
Posts: 9
Joined: 11. Jun 2021, 00:30


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 23 guests