Hi everyone,
I'm trying to set up a dedicated desktop environment inside an LXC container and have it use a physical monitor connected directly to my server's GPU. I've spent a lot of time researching, but I'm getting stuck and could use some guidance.
My Goal:
To have an LXC container (running Ubuntu Desktop) take full control of a GPU so it can display its graphical session on a dedicated monitor, just like a normal desktop computer. My Proxmox host should run headless.
What I Understand So Far:
Based on my research, I took the first steps to detach the GPU from the Proxmox host:
Could anyone provide a clear, step-by-step process or point me to a reliable guide for this specific LXC scenario? Example configuration snippets would be incredibly helpful.
Thank you so much in advance
I'm trying to set up a dedicated desktop environment inside an LXC container and have it use a physical monitor connected directly to my server's GPU. I've spent a lot of time researching, but I'm getting stuck and could use some guidance.
My Goal:
To have an LXC container (running Ubuntu Desktop) take full control of a GPU so it can display its graphical session on a dedicated monitor, just like a normal desktop computer. My Proxmox host should run headless.
What I Understand So Far:
- The Conflict: By default, the Proxmox host uses the GPU to display its own console (vtconsole), which prevents anything else from using the display output.
- VM vs. LXC: I know that the method for a full VM (using IOMMU, vfio-pci, etc.) is not the correct way to do this for an LXC container, because containers share the host's kernel.
Based on my research, I took the first steps to detach the GPU from the Proxmox host:
- Edited GRUB: I modified /etc/default/grub and added video=efifb
ff nofb nomodeset to the GRUB_CMDLINE_LINUX_DEFAULT to stop the host console from grabbing the screen.
- Blacklisted Drivers: I created a file in /etc/modprobe.d/ to blacklist the nouveau, amdgpu, and nvidia drivers.
- Updated and Rebooted: I ran update-grub, update-initramfs -u, and rebooted the node.
Could anyone provide a clear, step-by-step process or point me to a reliable guide for this specific LXC scenario? Example configuration snippets would be incredibly helpful.
Thank you so much in advance