Proxmox Virtual Environment (VE)

Proxmox Virtual Environment is a server management platform that runs a KVM hypervisor and Linux Containers.

VLANs in proxmox with Unifi switch on a single NIC

Setting up VLANs in Proxmox for containers and virtual machines was an error prone process and tought to debug. There are many tutorials and ideas about how to accomplish this. Ultimately, I ended up creating a VLAN aware bridge and set VLAN tags when adding that bridge to the virtual machines / containers.

iface enp0s31f6 inet manual

auto vmbr0
iface vmbr0 inet manual
	bridge-ports enp0s31f6
	bridge-stp off
	bridge-fd 0
	bridge-vlan-aware yes
	bridge-vids 2-4094

auto vmbr0.10
iface vmbr0.10 inet static
	address 192.1.168.137/24
	gateway 192.1.168.1

Containers

pveam available –section system

LXC Containers and bind mounts

Use this tool to map the permissions properly on containers in the config

Pass through iGPU to Linux Container

Requires a privileged container.

ls -l /dev/dri

drwxr-xr-x 2 root root         80 Nov 15 18:23 by-path
crw-rw---- 1 root video  226,   0 Nov 15 18:23 card0
crw-rw---- 1 root render 226, 128 Nov 15 18:23 renderD128

Add this to the container config: /etc/pve/lxc/100.conf

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/renderD128 none bind,optional,create=file

Starting the container and running ls -l /dev/dri should produce similar output to the above.

Install the intel drivers: https://github.com/intel/compute-runtime/releases /bin/chgrp video /dev/dri /bin/chmod 755 /dev/dri /bin/chmod 660 /dev/dri/*

https://forum.proxmox.com/threads/intel-rocket-lake-11th-quicksync-passthrough.98874/#post-446128

Links to this note