参考: https://pve.proxmox.com/wiki/USB_physical_port_mapping
把 USB 设备插入 PVE 主机后, dmesg 可以看到
假定虚拟机 ID 为 120,修改虚拟机配置文件: /etc/pve/qemu-server/120.conf,添加:
usb0: host=1-1.1.4
主机上 # qm stop 120; sleep 3; qm start 120 // 不是 qm restart
Ubuntu 的虚拟机内,默认 Kernel 没有 usbserial 模块,需要
sudo apt-get install linux-image-extra-virtual
sudo reboot
lsmod|grep usbserial
ls -al /dev/ttyUSB0