NixOS host can't passthrough USB to Windows 11 guest

Discussions related to using VirtualBox on Linux hosts.
Post Reply
alke
Posts: 1
Joined: 2. May 2024, 15:29

NixOS host can't passthrough USB to Windows 11 guest

Post by alke »

Hi,
I have installed vbox on nixos by entering :

Code: Select all

  virtualisation = {

    virtualbox.host.enable = true;
    virtualbox.host.enableExtensionPack = true;
  
  };
  users.users.<user> = {
    extraGroups = [ "vboxusers" ];
  };
Then I have installed windows 11 as my guest. I want to pass through my Garmin Fenix 6X watch to the guest, so I have:
  • installed vbox guests addons as admin
  • added Garmin on usb devices list
    Screenshot_20240502_153620.png
    Screenshot_20240502_153620.png (40.08 KiB) Viewed 223 times
  • tried to access the device on my guest system
Unluckily this was unsuccessful.

I went to this forum for help, but i couldn't find anything. Feel free to redirect me to another thread if this is duplicated.

By checking the

Code: Select all

cat .config/VirtualBox/VBoxSVC.log
I can see:

Code: Select all

00:18:34.670958 USBPROXY USBProxyBackendLinux: Device 091e:0003 (sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13//dev
       │ ice:/dev/vboxusb/001/017) isn't accessible. giving udev a few seconds to fix this...
 352   │ 00:18:52.145093 USBPROXY USB: Unknown USB device detected (idVendor: 0x091e, idProduct: 0x4cdb)
 353   │ 00:18:52.145108 USBPROXY USBProxyBackendLinux: Device 091e:4cdb (sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13//dev
       │ ice:/dev/vboxusb/001/018) isn't accessible. giving udev a few seconds to fix this...
 354   │ 00:33:40.959690 USBPROXY USB: Unknown USB device detected (idVendor: 0x091e, idProduct: 0x4cdb)
 355   │ 00:33:40.959702 USBPROXY USBProxyBackendLinux: Device 091e:4cdb (sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-13//dev
       │ ice:/dev/vboxusb/001/019) isn't accessible. giving udev a few seconds to fix this...
 356   │ 00:34:07.822271 nspr-10  Saving settings file "/home/alke/VirtualBox VMs/tiny11/tiny11.vbox" with version "1.19-linux"
 357   │ 00:34:07.832550 nspr-10  Finished saving settings file "/home/alke/VirtualBox VMs/tiny11/tiny11.vbox"
 358   │ 00:34:07.848232 nspr-4   ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={300763af-5d6b-46e6-aa96-273eac15538a}
       │  aComponent={MachineWrap} aText={The machine is not mutable (state is Running)}, preserve=false aResultDetail=0

It seems to be the right device:

Code: Select all

❯ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 27c6:533c Shenzhen Goodix Technology Co.,Ltd. FingerPrint
Bus 001 Device 003: ID 0c45:6a0c Microdia Integrated_Webcam_HD
Bus 001 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 019: ID 091e:4cdb Garmin International Fenix 6
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
So it seems to be related to my host os.

Can you please help?
Post Reply