add USB DEVICE to VM using UI. Run VM. Make the label in the PROXMOX LOG under ROOT:
# echo "Test log entry $(date)" | tee -a /dev/kmsg
Check the label:
# dmesg | tail -2
>>>>>[73899.039588] Test log entry Mon 03 Jul 2023 10:00:22 PM UTC
STOP VM
Check the logs
# dmesg | tail -30
>>>>[73899.433272] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB0
>>>>[73899.457266] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB1
>>>>[73899.493275] usb 2-2.1: GSM modem (1-port) converter now attached to ttyUSB2
double check:
# ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
another check:
# usb-devices
T: Bus=02 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#= 7 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev=00.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#=0x1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#=0x2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
I: If#=0x3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I: If#=0x4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
Install minicom and reboot modem with AT-commands
# apt-get install minicom
# minicom -D /dev/ttyUSB0 -b 115200
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
>>>>Welcome to minicom 2.8
>>>>OPTIONS: I18n
>>>>Port /dev/ttyUSB0, 00:00:36
>>>>Press CTRL-A Z for help on special keys
ENTER AT-commands end press Enter:
ATZ
>>>>OK
ATI
>>>>Manufacturer: huawei
>>>>Model: E1550
>>>>Revision: 10.600.00.00.00
>>>>IMEI: 320043000029000
>>>>+GCAP: +CGSM,+DS,+ES
Reboot modem AT-command:
AT+CFUN=1,1
>>>> Cannot open /dev/ttyUSB0!
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Press CTRL-A and X after that => for Exit