[SOLVED] Cannot see usb3 devices inside vm

belst

New Member
Feb 13, 2020
7
0
1
32
Hi,

I want to use a usb3 device inside a vm.

In the following snippet it is the device with the id usb4 (See3CAM_CU55)

Code:
qm> info usb
  Device 0.2, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet, ID: tablet
  Device 2.0, Port 1, Speed 1.5 Mb/s, Product USB Host Device, ID: usb0
  Device 2.0, Port 2, Speed 1.5 Mb/s, Product USB Host Device, ID: usb1
  Device 2.1, Port 3, Speed 1.5 Mb/s, Product HID compliant keyboard, ID: usb2
  Device 2.2, Port 4, Speed 12 Mb/s, Product QEMU USB Hub
  Device 2.3, Port 4.1, Speed 1.5 Mb/s, Product USB Optical Mouse, ID: usb3
  Device 2.0, Port 4.2, Speed 5000 Mb/s, Product See3CAM_CU55, ID: usb4
qm> info usbhost
  Bus 4, Addr 29, Port 4, Speed 5000 Mb/s
    Class ef: USB device 2560:c154, See3CAM_CU55
  Bus 3, Addr 4, Port 6, Speed 1.5 Mb/s
    Class 00: USB device 046d:c046, USB Optical Mouse
  Bus 3, Addr 3, Port 5, Speed 1.5 Mb/s
    Class 00: USB device 046d:c30e, HID compliant keyboard

As you can see it is added as a device to the vm, but inside the guest I don't get anything:
* no dmesg entries when unplugging/plugging it in
* no lsusb entry

I get both of those on the host.

dmesg on the host: (when plugging it in)

Code:
[  +6.585205] usb 4-4: new SuperSpeed Gen 1 USB device number 30 using xhci_hcd
[  +0.019218] usb 4-4: LPM exit latency is zeroed, disabling LPM.
[  +0.000633] usb 4-4: New USB device found, idVendor=2560, idProduct=c154, bcdDevice= 0.00
[  +0.000001] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0.000001] usb 4-4: Product: See3CAM_CU55
[  +0.000001] usb 4-4: Manufacturer: e-con systems
[  +0.000000] usb 4-4: SerialNumber: 0ECC0700
[  +0.001870] uvcvideo: Found UVC 1.00 device See3CAM_CU55 (2560:c154)
[  +0.026895] uvcvideo 4-4:1.0: Entity type for entity Extension 3 was not initialized!
[  +0.000002] uvcvideo 4-4:1.0: Entity type for entity Processing 2 was not initialized!
[  +0.000000] uvcvideo 4-4:1.0: Entity type for entity Camera 1 was not initialized!
[  +0.000046] input: See3CAM_CU55 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb4/4-4/4-4:1.0/input/input116
[  +0.000463] hid-generic 0003:2560:C154.0061: hiddev0,hidraw0: USB HID v1.11 Device [e-con systems See3CAM_CU55] on usb-0000:06:00.3-4/input2
[  +1.906050] usb 4-4: reset SuperSpeed Gen 1 USB device number 30 using xhci_hcd
[  +0.020039] usb 4-4: LPM exit latency is zeroed, disabling LPM.
[  +0.000757] uvcvideo: Found UVC 1.00 device See3CAM_CU55 (2560:c154)
[  +0.026647] uvcvideo 4-4:1.0: Entity type for entity Extension 3 was not initialized!
[  +0.000001] uvcvideo 4-4:1.0: Entity type for entity Processing 2 was not initialized!
[  +0.000001] uvcvideo 4-4:1.0: Entity type for entity Camera 1 was not initialized!
[  +0.000038] input: See3CAM_CU55 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb4/4-4/4-4:1.0/input/input117
[  +0.000535] hid-generic 0003:2560:C154.0062: hiddev0,hidraw0: USB HID v1.11 Device [e-con systems See3CAM_CU55] on usb-0000:06:00.3-4/input2
[  +2.168067] usb 4-4: reset SuperSpeed Gen 1 USB device number 30 using xhci_hcd
[  +0.019944] usb 4-4: LPM exit latency is zeroed, disabling LPM.
[  +0.000868] uvcvideo: Found UVC 1.00 device See3CAM_CU55 (2560:c154)
[  +0.027576] uvcvideo 4-4:1.0: Entity type for entity Extension 3 was not initialized!
[  +0.000002] uvcvideo 4-4:1.0: Entity type for entity Processing 2 was not initialized!
[  +0.000000] uvcvideo 4-4:1.0: Entity type for entity Camera 1 was not initialized!
[  +0.000036] input: See3CAM_CU55 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb4/4-4/4-4:1.0/input/input118
[  +0.000461] hid-generic 0003:2560:C154.0063: hiddev0,hidraw0: USB HID v1.11 Device [e-con systems See3CAM_CU55] on usb-0000:06:00.3-4/input2
[  +2.171061] usb 4-4: reset SuperSpeed Gen 1 USB device number 30 using xhci_hcd
[  +0.019944] usb 4-4: LPM exit latency is zeroed, disabling LPM.
[  +0.000861] uvcvideo: Found UVC 1.00 device See3CAM_CU55 (2560:c154)
[  +0.026588] uvcvideo 4-4:1.0: Entity type for entity Extension 3 was not initialized!
[  +0.000002] uvcvideo 4-4:1.0: Entity type for entity Processing 2 was not initialized!
[  +0.000000] uvcvideo 4-4:1.0: Entity type for entity Camera 1 was not initialized!
[  +0.000034] input: See3CAM_CU55 as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:06:00.3/usb4/4-4/4-4:1.0/input/input119
[  +0.000488] hid-generic 0003:2560:C154.0064: hiddev0,hidraw0: USB HID v1.11 Device [e-con systems See3CAM_CU55] on usb-0000:06:00.3-4/input2

am I missing any drivers or something in the guest?

The guest is running archlinux

Thanks
 
vm config:

Code:
agent: 1
audio0: device=ich9-intel-hda,driver=spice
bios: ovmf
bootdisk: scsi0
cores: 4
cpu: host
efidisk0: local-lvm:vm-107-disk-0,size=4M
hostpci0: 04:00,x-vga=on,pcie=1
machine: q35
memory: 8138
name: st-desktop
net0: virtio=12:B1:B9:D6:2F:D3,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
sata0: none,media=cdrom
scsi0: local-lvm:vm-107-disk-1,size=512G
scsihw: virtio-scsi-pci
smbios1: uuid=d370fa45-6701-4f4e-9476-939fcfc3750c
sockets: 1
usb0: host=3-4,usb3=1
usb1: host=3-3,usb3=1
usb2: host=3-5,usb3=1
usb3: host=3-6,usb3=1
usb4: host=4-4,usb3=1
vmgenid: f839d13a-3484-4399-a7b1-869023679f80
 
can you try to remove the 'usb3' from the ports where only the mouse/keyboard is plugged in?
 
two things you could try :

reorder the usb devices so that the camera comes first
use vendor/device id instead of port

also, you poweroff / start the vm everytime you change the usb options, right?
 
thanks, having the camera as the first usb device and using device id instead of port seems to have worked.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!