Hi, I'm trying to pass the USB device from Proxmox to a VM.
I followed the simple way to pass the usb device id to the guest.
However, the guest does not work via the USB?
Proxmox shell output with USB device not connected:
Proxmox shell output with USB device connected:
I then connect the USB device successfully I think, as per Simple Way: pass the USB device ID to the guest:
I then check Proxmox connected the USB to the VM:
VM shell output seems to not be connected, or I don't understand, or I need to configure the VM some way I don't understand:
Maybe I need to implement the Assigning Devices to VMs, as the Simple Way doesn't seem to work (or I don't know what else to do to make the VM use the USB).
According to Assigning Devices to VMs, I think I might come up with a different USB ID using the USB1.x, USB2.0 syntax: qm set <VM-ID> -usb[<n>] host={ <bus>-<port>(.<port>)* | <vendor-id>:<product-id> }
Confused?
I followed the simple way to pass the usb device id to the guest.
However, the guest does not work via the USB?
Proxmox shell output with USB device not connected:
Bash:
root@proxmox:~# lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Proxmox shell output with USB device connected:
Bash:
root@proxmox:~# lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 05ac:12a8 Apple, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I then connect the USB device successfully I think, as per Simple Way: pass the USB device ID to the guest:
Bash:
root@proxmox:~# qm set 145 -usb0 host=05ac:12a8
update VM 145: -usb0 host=05ac:12a8
I then check Proxmox connected the USB to the VM:
Bash:
root@proxmox:~# qm monitor 145
Entering Qemu Monitor for VM 145 - type 'help' for help
qm> info usbhost
Bus 3, Addr 4, Port 10, Speed 480 Mb/s
Class 00: USB device 05ac:12a8, iPhone
VM shell output seems to not be connected, or I don't understand, or I need to configure the VM some way I don't understand:
Bash:
[2.4.4-RELEASE][admin@pfSense.localdomain]/boot: usbconfig
ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen0.2: <QEMU QEMU USB Tablet> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
[2.4.4-RELEASE][admin@pfSense.localdomain]/boot: ifconfig
vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
ether 42:63:7c:e4:6c:e3
hwaddr 42:63:7c:e4:6c:e3
inet6 fe80::4063:7cff:fee4:6ce3%vtnet0 prefixlen 64 scopeid 0x1
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
vtnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
ether a6:2d:d5:4f:6c:f3
hwaddr a6:2d:d5:4f:6c:f3
inet6 fe80::a42d:d5ff:fe4f:6cf3%vtnet1 prefixlen 64 scopeid 0x2
inet 192.168.1.170 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T <full-duplex>
status: active
enc0: flags=0<> metric 0 mtu 1536
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: enc
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
pflog0: flags=100<PROMISC> metric 0 mtu 33160
groups: pflog
pfsync0: flags=0<> metric 0 mtu 1500
groups: pfsync
syncpeer: 224.0.0.240 maxupd: 128 defer: on
syncok: 1
Maybe I need to implement the Assigning Devices to VMs, as the Simple Way doesn't seem to work (or I don't know what else to do to make the VM use the USB).
According to Assigning Devices to VMs, I think I might come up with a different USB ID using the USB1.x, USB2.0 syntax: qm set <VM-ID> -usb[<n>] host={ <bus>-<port>(.<port>)* | <vendor-id>:<product-id> }
Confused?
Last edited: