Passthough USB to LXC Container
Info
All this commands need to be run on the Proxmox host.
Stop Container
First we need to stop the container we want to add the USB device to.
Bash | |
---|---|
Get Info
First we need to get the Bus and Device ID of the USB device we want to passthrough. To do this we use the lsusb command.
Bash | |
---|---|
Example output:
Bash | |
---|---|
In this case we are looking for the RTL2838 DVB-T device. What's important is the Bus and Device ID. In this case Bus 001 Device 002.
Bash | |
---|---|
Bash | |
---|---|
Important in this output is the number 189 (1) .
- Save this number for later.
Add USB to LXC Container
Go to the configs of your containers
Bash | |
---|---|
Open the config of the container you want to add the USB device to.
Bash | |
---|---|
Add the following line to the config.
Warning
Replace [NUMBER] with the number you saved earlier.
And replace [BUS] and [Device] with the Bus and Device ID of the USB device you want to passthrough.
Bash | |
---|---|
Rights for the Container
Bash | |
---|---|
Start Container
Bash | |
---|---|