USB devices are lost in guest system (Linux) after host (MacOS) lock

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
JSam
Posts: 1
Joined: 5. Oct 2021, 17:37

USB devices are lost in guest system (Linux) after host (MacOS) lock

Post by JSam »

Hi,

I'm using VirtualBox 6.1.22r145957 with Extension Pack on MacBook pro running MacOS Catalina 10.15.7. Guest OS is fresh installed Ubuntu 20.04.2 with Guest additions. After guest reboot lsusb gives me two devices:

Code: Select all

$ lsusb
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/12p, 12M
    |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
(I understand the entry for device 2 corresponds to Pointing device: USB tablet)

After I lock my MacBook for 30 seconds lsusb shows me that I've lost my Tablet entry:

Code: Select all

$ lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/12p, 12M
VBox.log shows new entries:

Code: Select all

01:04:45.106751 OHCI: Software reset
01:04:45.107248 OHCI: USB Operational
"dmesg" command shows new entries:

Code: Select all

[  339.623821] ohci-pci 0000:00:06.0: frame counter not updating; disabled
[  339.623837] ohci-pci 0000:00:06.0: HC died; cleaning up
[  339.624285] usb 1-1: USB disconnect, device number 2
I don't particularly care of Tablet device (pointer still works in VM) but some other valuable USB device would disappear the same way after host lock (or sleep).

Any help greatly appreciated!
Post Reply