The USB devices is not being passed through the VM

edersong

Member
May 15, 2021
4
0
21
49
I created a Debian buster VM and assigned a USB device to him thru the Proxmox but it not being recognized by the VM.
It is recognized by Node and I’m able to add the USB device to the VM configuration but it’s not being listed by Debian using lsusb command.
Already rebooted many times but no lucky.
Any one know how to solve it?
Thank you in advance.
conbee.png

My VM config:

Bash:
root@jaga:/home/pi# qm showcmd 100 --pretty
/usr/bin/kvm \
  -id 100 \
  -name lion-o \
  -no-shutdown \
  -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' \
  -mon 'chardev=qmp,mode=control' \
  -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \
  -mon 'chardev=qmp-event,mode=control' \
  -pidfile /var/run/qemu-server/100.pid \
  -daemonize \
  -smbios 'type=1,uuid=6d29cb95-f249-4c9f-b6ba-2110bc7306f7' \
  -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/pve-edk2-firmware//AAVMF_CODE.fd' \
  -drive 'if=pflash,unit=1,format=qcow2,id=drive-efidisk0,file=/var/lib/vz/images/100/vm-100-disk-0.qcow2' \
  -smp '4,sockets=1,cores=4,maxcpus=4' \
  -nodefaults \
  -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
  -vnc unix:/var/run/qemu-server/100.vnc,password \
  -cpu host \
  -m 2048 \
  -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pcie.0,addr=0x1e' \
  -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pcie.0,addr=0x1f' \
  -device 'usb-ehci,id=ehci,bus=pcie.0,addr=0x1' \
  -device 'usb-host,hostbus=1,hostport=1.4,id=usb0' \
  -chardev 'socket,id=serial0,path=/var/run/qemu-server/100.serial0,server,nowait' \
  -serial chardev:serial0 \
  -device 'virtio-gpu,id=vga,bus=pcie.0,addr=0x2' \
  -device 'virtio-balloon-pci,id=balloon0,bus=pcie.0,addr=0x3' \
  -device 'virtio-scsi-pci,id=scsihw0,bus=pcie.0,addr=0x5' \
  -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-scsi0,format=qcow2,cache=none,aio=native,detect-zeroes=on' \
  -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' \
  -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
  -device 'virtio-net-pci,mac=46:CE:58:97:ED:F7,netdev=net0,bus=pcie.0,addr=0x12,id=net0' \
  -machine 'type=virt+pve0'
 
Possibly the function and/or bus ID had been changed after activation.

Run
Code:
lsusb -v

Before and after starting the VM and compare the data about your device whether there is any difference.