install-steam-lxc.sh | ||
LICENSE | ||
README.md |
Steam LXC Installation Script
This script automates the installation of Steam within an unprivileged LXC container in Proxmox with GPU passthrough. It sets up a complete environment including a MATE desktop environment and KasmVNC for remote access.
Prerequisites
- Proxmox 7.4 or later
- Unprivileged LXC container with Debian 12
- Working internet connection
- Root access to both Proxmox host and LXC container
Installation Order
- First, set up the LXC container in Proxmox
- Configure GPU passthrough on the Proxmox host
- Run the installation script INSIDE the LXC container
IMPORTANT: This script must be run INSIDE the LXC container, not on the Proxmox host shell!
GPU Passthrough Setup
Before running this script, ensure you have properly configured GPU passthrough for your LXC container. This involves:
- Getting the GID of the 'render' group in your container
- Modifying the LXC configuration on the Proxmox host
- Verifying the GPU is properly passed through
For detailed GPU passthrough setup instructions, refer to the original guide.
Installation
IMPORTANT: These steps should be performed INSIDE the LXC container, not on the Proxmox host!
- First, log into your LXC container via the Proxmox web interface console or SSH
- Download the installation script:
wget https://git.hhf.technology/hhf/proxmox-install-steam-lxc/raw/branch/main/install-steam-lxc.sh
- Make the script executable:
chmod +x install-steam-lxc.sh
- Run the script as root:
sudo ./install-steam-lxc.sh
- Follow the prompts to create a new user account.
Post-Installation
After the installation completes:
- Switch to the new user account created during installation
- Start KasmVNC with GPU passthrough:
vncserver -hw3d -drinode /dev/dri/renderD128
- Access your desktop through the KasmVNC web interface
- Launch Steam from the desktop menu or by running the
steam
command
Notes
- Always use the specified vncserver command with
-hw3d
and-drinode
flags to ensure GPU passthrough is enabled - It's recommended to disable desktop compositing for better performance
- If the KasmVNC website doesn't load correctly at first, try refreshing a few times
Support
For issues and questions, please open an issue in the GitHub repository or refer to the original documentation.
License
Apache 2.0 License