Pass USB WiFi adapter into Proxmox VM

Pass USB WiFi adapter into Proxmox VM

Using TP-Link TL-WN722N

The GUI way of adding a USB device to a Proxmox VM didn't work for me when using a USB network adapter (the device id was not showing up when trying to add to the VM via the GUI), so here is a simple manual workaround.

  1. Plug in your desired USB device into the physical machine you're running Proxmox on.

  2. Using the CLI on the Proxmox host machine (recommended to use ssh/webGUI CLI), list all connected USB devices with lsusb :

  1. Note the id of the desired device. In this case the TP-Link TL-WN722, with id: 2357:010c

  2. Ensure the desired Proxmox VM that you want to pass the USB device to is powered off, and take note of its number (104 in the belowimage):

  3. (still) On the Proxmox host machine, run the following command to pass the USB device through to one or more of your virtual machines:

    qm set [VM#] -usb0 host=[host-id]

    e.g. for VM #104 & host id 2357:010c, I would run:

    qm set 104 -usb0 host=2357:010c

    source: proxmox documentation

  4. Boot up your Proxmox VM (in my case, VM #104) and run lsusb in using the CLI. You should now see the USB device that you just passed through (2357:010c for me) in there!

Hope this helps a few other fellow lost souls! ^^