Steam on LXD

preview_player
Показать описание
Let's try running Steam and some games from inside a LXD container!

The final config for the container ended up looking like this (stripped images/volatile bits):
```
architecture: x86_64
config:
environment.DISPLAY: :0
environment.PULSE_LATENCY_MSEC: "30"
environment.PULSE_SERVER: /mnt/.pulse-native
environment.QT_X11_NO_MITSHM: "1"
devices:
gpu:
type: gpu
pulse:
bind: container
connect: unix:/run/user/201105/pulse/native
listen: unix:/mnt/.pulse-native
mode: "0666"
type: proxy
x11:
bind: container
connect: unix:@/tmp/.X11-unix/X0
listen: unix:@/tmp/.X11-unix/X0
type: proxy
ephemeral: false
profiles:
- default
stateful: false
description: ""
```

Again, you can expect full performance on a more reasonable machine than mine.
My laptop is a 3-4 years old business laptop with integrated graphics that was busy running Steam as well as the live stream encoding and two external monitors!
Рекомендации по теме
Комментарии
Автор

This is great!!!, this would definitely revive some of the native Linux games and applications on modern distro those are based on old distro and glibc!

onthimartificialintelligence
Автор

While I prefer blog posts to videos for this kind of tutorials, it encouraged me to port my "steam" container from raw lxc to lxd.

I noticed one thing: It seems that the current Steam Linux Runtime (Soldier) which is also used by Proton 5.13 expects the X11 socket to be a normal named socket, not an abstract one (when called on command line something called "bwrap" was complaining about a missing "/tmp/.X11-unix/X0").
So, I also added a proxy for the socket in filesystem like this (I think it can't harm to have both the abstract and the named ones as the host system seems to have both as well):
lxc config device add $CONTAINER x11socket proxy bind=container listen=unix:/tmp/.X11-unix/X0 mode=0777 security.uid=1000 security.gid=1000

space_nomad
Автор

hi and ty for the video, if i have 2 networks, my wifi and wired one, can one container use wifi, and other use wired?

sebastians
Автор

How do I access my game controller from lxd container

kid-vflu