Huawei USB passtrough : not showing in the vm

Hello,

I am trying to pass a huawei 3g modem to a vm but i'm having difficulties. the usb in showing on the host, on the qm monitoring but not on the guest VM.

root@proxmox:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 4: Dev 5, If 0, Class=stor., Driver=usbfs, 480M
|__ Port 4: Dev 5, If 1, Class=stor., Driver=usbfs, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M

I have added the following line in the vm conf file

args: -device usb-host,hostbus=3,hostport=4

qm> info usbhost
Bus 3, Addr 5, Port 4, Speed 480 Mb/s
Class 00: USB device 12d1:1446, HUAWEI Mobile

But then when i log in the VM and do an lsusb it's not showing

jeedom@jeedom:~$ lsusb
Bus 001 Device 003: ID 0409:55aa NEC Corp. Hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Can someone help me ?
 
Hello yecine06

Did you try it with another device (e.g. an usb memory stick) and/or with another VM?

I prefer to use the qm command, works without any problems; it would be in your case

Code:
qm set <vm-id> -usb0 host=3-4
or
qm set <vm-id> -usb0 host=12d1:1446



kind regards

Mr.Holmes
 
I tried with a usb stick and no luck

root@proxmox:~# qm set 100 -usb1 host=2-1
update VM 100: -usb1 host=2-1
root@proxmox:~# qm monitor 100
Entering Qemu Monitor for VM 100 - type 'help' for help
qm> info usbhost
Bus 3, Addr 6, Port 6, Speed 480 Mb/s
Class 00: USB device 0781:5406, U3 Cruzer Micro
Bus 3, Addr 5, Port 4, Speed 480 Mb/s
Class 00: USB device 12d1:1446, HUAWEI Mobile
qm>

$ lsusbBus 001 Device 003: ID 0409:55aa NEC Corp. Hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 
Hello yecine06,

- your usb memory stick seems to be at 3-6 (you specified 2-1), and your 3G stick at 3-4

- after setting (in config file directly or via "qm set") you must shut down and start the VM (not just a reload!) - don't be confused by the expression "update", it refers to config file but not to the running VM!

Kind regards

Mr.Holmes