I wish to attach my mediated devices to lxc containers.
Since PVE uses it's own tooling
Example:
And adding the device:
Can this be translated to a PVE lxc config?
Since PVE uses it's own tooling
pct
are there equivalent commands to query mdev devices like lxc info --resources
that would display the information I need?Example:
Code:
~$ lxc info --resources
GPUs:
Card 0:
NUMA node: 0
Vendor: Intel Corporation (8086)
Product: UHD Graphics 630 (Desktop) (3e92)
PCI address: 0000:00:02.0
Driver: i915 (5.4.0-89-generic)
DRM:
ID: 0
Card: card0 (226:0)
Control: controlD64 (226:0)
Render: renderD128 (226:128)
Mdev profiles:
- i915-GVTg_V5_4 (1 available)
low_gm_size: 128MB
high_gm_size: 512MB
fence: 4
resolution: 1920x1200
weight: 4
- i915-GVTg_V5_8 (2 available)
low_gm_size: 64MB
high_gm_size: 384MB
fence: 4
resolution: 1024x768
weight:
And adding the device:
lxc config device add CONTAINER i915 gpu gputype=mdev mdev=i915-GVTg_V5_8 id=0
Can this be translated to a PVE lxc config?
The above are examples at Linux Containers: https://discuss.linuxcontainers.org/t/vgpu-passthrough-in-lxd-vm/14002/2
and https://discuss.linuxcontainers.org/t/vms-virgl-and-or-mdev-gpu-acceleration/12550