使用 systemd-nspawn 容器化 Steam #3
Replies: 4 comments 3 replies
-
这样相较于 Arch 原生运行 Steam 有什么优势吗?Steam Deck 的 Steam OS 都基于 Arch Linux 了😂 |
Beta Was this translation helpful? Give feedback.
1 reply
-
好奇老師的容器什麼時候換成 ubuntu 了(還是本來就是( |
Beta Was this translation helpful? Give feedback.
1 reply
-
我没跑起来来,不确定是哪里出了问题 Steam 报错steam@steam:~$ steam
Running Steam on ubuntu 18.04 64-bit
STEAM_RUNTIME is enabled automatically
Steam runtime environment up-to-date!
Steam client's requirements are satisfied
WARNING: Using default/fallback debugger launch
/home/steam/.steam/ubuntu12_32/steam
[2021-09-19 16:36:20] Startup - updater built Sep 13 2021 22:00:59
SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation) 容器状态$ machinectl status steam
steam(ee64a54a0cc44c84ac3ea214671c0115)
Since: Sun 2021-09-19 16:34:01 CST; 5min ago
Leader: 11328 (systemd)
Service: systemd-nspawn; class container
Root: /var/lib/machines/steam
Iface: br0
Address: 192.168.250.135
169.254.130.180
fe80::7817:acff:fe4e:13b5%4
OS: Ubuntu 18.04.6 LTS
UID Shift: 925106176
Unit: machine-steam.scope
└─payload
├─init.scope
│ └─11328 /lib/systemd/systemd
├─system.slice
│ ├─cron.service
│ │ └─11386 /usr/sbin/cron -f
│ ├─dbus.service
│ │ └─11388 /usr/bin/dbus-daemon --system --address=systemd: --nofork --no>
│ ├─networkd-dispatcher.service
│ │ └─11385 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-tr>
│ ├─rsyslog.service
│ │ └─11384 /usr/sbin/rsyslogd -n
│ ├─systemd-journald.service
│ │ └─11346 /lib/systemd/systemd-journald
│ ├─systemd-logind.service
│ │ └─11387 /lib/systemd/systemd-logind
│ ├─systemd-networkd.service
│ │ └─11360 /lib/systemd/systemd-networkd
│ └─systemd-resolved.service
│ └─11382 /lib/systemd/systemd-resolved
└─user.slice
└─user-1000.slice
├─session-22.scope
│ ├─11393 /bin/login -p -- "" "" "" "" ""
│ ├─11412 -bash
│ ├─11607 /bin/sh -e /usr/local/bin/steam
│ ├─11609 bash /home/steam/.steam/steam.sh
│ └─11739 /home/steam/.steam/ubuntu12_32/steam
└─[email protected]
└─init.scope
├─11407 /lib/systemd/systemd --user
└─11408 "(sd-pam)" "" "" "" "" "" "" "" "" "" "" "" ""
Sep 19 16:34:01 archlinux systemd[1]: Started Container steam 容器配置文件$ cat /etc/systemd/nspawn/steam.nspawn [Exec]
Capability=all
Boot=on
;Parameters=
;Environment=
Hostname=steam
Environment=XAUTHORITY=~/.Xauthority
Environment=DISPLAY=:0
;User=steam
[Files]
;ReadOnly=yes
BindReadOnly=/tmp/.X11-unix
Bind=/dev/nvidia0
Bind=/dev/dri/card0
Bind=/dev/shm
Bind=/dev/input
#BindReadOnly=/tmp/work/xauth-steam:/home/steam/.Xauthority
[Network]
Private=yes
Bridge=br0
VirtualEthernet=yes
;Port= 双显卡服务状态$ systemctl status bumblebeed.service
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2021-09-19 14:25:10 CST; 2h 19min ago
Main PID: 591 (bumblebeed)
Tasks: 2 (limit: 19030)
Memory: 65.5M
CPU: 16.654s
CGroup: /system.slice/bumblebeed.service
├─ 591 /usr/bin/bumblebeed
└─7109 /usr/lib/Xorg :8 -config /etc/bumblebee/xorg.conf.nvidia -configdir /etc/bumblebee/xorg.conf.d -sharevts -nolisten tcp -noreset -verbose 3 -isolateDevice PCI:01:00:0 -modulepath /usr/lib/nvid>
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772611] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772634] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772640] [WARN][XORG] (WW) Warning, couldn't open module mouse
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772652] [WARN][XORG] (WW) NVIDIA: No DRM device: Direct render devices found but none could be
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772656] [WARN][XORG] (WW) NVIDIA: used.
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772661] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772668] [WARN][XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772678] [WARN][XORG] (WW) Warning, couldn't open module mouse
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772686] [ERROR][XORG] (EE) PreInit returned 2 for "<default pointer>"
Sep 19 15:47:35 archlinux bumblebeed[591]: [ 4969.772692] [ERROR][XORG] (EE) PreInit returned 2 for "<default keyboard>" |
Beta Was this translation helpful? Give feedback.
1 reply
-
皓奇老师好强啊。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
zhs/containerize-steam-with-systemd-nspawn/
https://liolok.com/zhs/containerize-steam-with-systemd-nspawn/
Beta Was this translation helpful? Give feedback.
All reactions