Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rootless docker/podman support #160

Open
IvanCharcos opened this issue Aug 21, 2024 · 1 comment
Open

Rootless docker/podman support #160

IvanCharcos opened this issue Aug 21, 2024 · 1 comment
Labels
status:awaiting-triage type:enhancement New feature or request for feature enhancement

Comments

@IvanCharcos
Copy link

Is your feature request related to a problem?

No response

What is your feature request?

Hello,

I was wondering if there is a way to make this container work for rootless container environments.
From the documentation, it looks like we need to sudo.

My containers are all rootless so it would be nice to have Steam Headless support it.

Are there any workarounds?

No response

Additional Context

No response

@IvanCharcos IvanCharcos added status:awaiting-triage type:enhancement New feature or request for feature enhancement labels Aug 21, 2024
@jtmcdole
Copy link

jtmcdole commented Jan 8, 2025

One thing I had to do was update overlay/etc/cont-init.d/30-configure_udev.sh to do a permissions check:

if [[ -e /dev/uinput ]]; then
  permissions=$(stat -c "%a" /dev/uinput)
  if [[ "$permissions" != "666" ]]; then
    print_step_header "Ensure the default user has permission to r/w on input devices"
    chmod 0666 /dev/uinput
  else
    print_step_header "User already has write permission on input devices"
  fi
 fi

This got around the error when starting.

To get nvidia visible to podman-compose:

podman-compose --podman-run-args="--device=nvidia.com/gpu=all" up  --force-recreate

I still get errors though.

[steam-headless] | 2025-01-08 18:17:58,238 INFO supervisord started with pid 1
[steam-headless] | 2025-01-08 18:17:59,241 INFO spawned: 'dbus' with pid 349
[steam-headless] | 2025-01-08 18:17:59,244 INFO spawned: 'udev' with pid 350
[steam-headless] | 2025-01-08 18:17:59,245 INFO spawned: 'xorg' with pid 351
[steam-headless] | 2025-01-08 18:17:59,246 INFO spawned: 'audiostream' with pid 352
[steam-headless] | 2025-01-08 18:17:59,248 INFO spawned: 'frontend' with pid 353
[steam-headless] | 2025-01-08 18:17:59,249 INFO spawned: 'pulseaudio' with pid 355
[steam-headless] | 2025-01-08 18:17:59,250 INFO spawned: 'x11vnc' with pid 356
[steam-headless] | 2025-01-08 18:17:59,252 INFO spawned: 'desktop' with pid 359
[steam-headless] | PULSEAUDIO: Starting pulseaudio service
[steam-headless] | 2025-01-08 18:17:59,259 WARN exited: frontend (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:17:59,270 INFO reaped unknown pid 374 (exit status 0)
[steam-headless] | 2025-01-08 18:17:59,312 WARN exited: udev (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:00,313 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,315 INFO spawned: 'udev' with pid 391
[steam-headless] | 2025-01-08 18:18:00,316 INFO success: xorg entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,316 INFO success: audiostream entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,317 INFO spawned: 'frontend' with pid 392
[steam-headless] | 2025-01-08 18:18:00,317 INFO success: pulseaudio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,317 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,317 INFO success: desktop entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[steam-headless] | 2025-01-08 18:18:00,327 WARN exited: frontend (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:00,380 WARN exited: udev (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:02,383 INFO spawned: 'udev' with pid 417
[steam-headless] | 2025-01-08 18:18:02,384 INFO spawned: 'frontend' with pid 418
[steam-headless] | 2025-01-08 18:18:02,393 WARN exited: frontend (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:02,445 WARN exited: udev (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:06,292 INFO spawned: 'udev' with pid 457
[steam-headless] | 2025-01-08 18:18:06,294 INFO spawned: 'frontend' with pid 458
[steam-headless] | 2025-01-08 18:18:06,304 WARN exited: frontend (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:06,348 INFO gave up: frontend entered FATAL state, too many start retries too quickly
[steam-headless] | 2025-01-08 18:18:06,356 WARN exited: udev (exit status 1; not expected)
[steam-headless] | 2025-01-08 18:18:07,357 INFO gave up: udev entered FATAL state, too many start retries too quickly
[steam-headless] | 2025-01-08 18:18:09,269 WARN exited: xorg (exit status 11; not expected)
[steam-headless] | 2025-01-08 18:18:09,271 INFO spawned: 'xorg' with pid 491
[steam-headless] | 2025-01-08 18:18:10,272 INFO success: xorg entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
^C[steam-headless] | 2025-01-08 18:18:17,279 WARN received SIGINT indicating exit request
[steam-headless] | 2025-01-08 18:18:17,279 INFO waiting for dbus, xorg, audiostream, pulseaudio, x11vnc, desktop to die

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:enhancement New feature or request for feature enhancement
Projects
None yet
Development

No branches or pull requests

2 participants