Device passthrought on LXC

wolframio

Member
Dec 15, 2021
53
5
13
41
why adding a "Device passthrough" in LXC is not "so intuitive" as it is when one does it for a VM??

Thanks!
 
Hi,

on what version of Proxmox VE are you? Since 8.2, this is natively supported via the web interface, via CLI/API it has been since 8.1.

In the web interface, there should be a entry Device Passthrough when clicking on Resources > Add.
 
Hi,

on what version of Proxmox VE are you? Since 8.2, this is natively supported via the web interface, via CLI/API it has been since 8.1.

In the web interface, there should be a entry Device Passthrough when clicking on Resources > Add.
Thanks for the reply... To be clear, in a VM i can do a USB passthrought adding the device just selecting it from a list... For the LXC you have to enter the path of the device (/dev/xxx).
 
To be clear, in a VM i can do a USB passthrought adding the device just selecting it from a list... For the LXC you have to enter the path of the device (/dev/xxx).
That is simply due to the major difference how VMs and CTs work and expected to work like that.

For VMs, the device is passed through as a whole, e.g. the operating system has to load its own drivers etc.
For CTs, the device drivers are loaded by the (hypervisor) host, these then create certain device interface (character) files, which then can be passed to a CT.
 
That is simply due to the major difference how VMs and CTs work and expected to work like that.

For VMs, the device is passed through as a whole, e.g. the operating system has to load its own drivers etc.
For CTs, the device drivers are loaded by the (hypervisor) host, these then create certain device interface (character) files, which then can be passed to a CT.
Is it possible that instead of the wizard asking for the "path" of the device to be passed through, it asks what type of device you want to add (storage, USB port, PCI, etc.) and displays a list of devices connected to the host?

The actual way (where you have to set the device path) can be an "advanced option".

Thanks!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!