Skip to content

container: pass host GPU through to created containers - #5

Merged
kenvandine merged 4 commits into
lemonade-sdk:mainfrom
kenvandine:gpu_passthrough
May 7, 2026
Merged

container: pass host GPU through to created containers#5
kenvandine merged 4 commits into
lemonade-sdk:mainfrom
kenvandine:gpu_passthrough

Conversation

@kenvandine

Copy link
Copy Markdown
Member
Adds an LXD "gpu" device (covers /dev/dri render nodes) and a unix-char
device for /dev/kfd (AMD ROCm compute) when present on the host, so AI
workloads inside the container can use the GPU.

kenvandine and others added 4 commits April 8, 2026 23:02
  npm install -g puts openclaw in /usr/lib/node_modules which the
  container user cannot write to, causing self-updates to fail with
  EPERM. Install to ~/.npm-global as the container user instead, and
  propagate NPM_CONFIG_PREFIX + PATH to profile.d, environment.d, and
  the systemd service drop-in so the binary is found in all contexts.
Adds an LXD "gpu" device (covers /dev/dri render nodes) and a unix-char
device for /dev/kfd (AMD ROCm compute) when present on the host, so AI
workloads inside the container can use the GPU.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Set uid/gid/mode on the gpu and kfd device entries so LXD exposes the
device nodes inside the container owned by the mapped user (mode 0660),
giving the user account direct access without requiring render/video
group membership.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kenvandine
kenvandine merged commit 94558e9 into lemonade-sdk:main May 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant