Files
lxd-profiles/profiles/containerization/lxd-host-socket.profile.yaml
T
xavierandClaude 97312bbae3 feat: Add LXD host socket profile for container management
This profile allows containers to access the host LXD daemon via Unix socket,
enabling centralized LXD management from within containers.

Features:
- Proxy host LXD socket to container at same path
- Automatic LXD client installation via snap
- No additional configuration required
- Practical guide and example script included

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 23:56:52 +02:00

18 lines
469 B
YAML

name: lxd-host-socket
description: "Permet à un container d'accéder au démon LXD de l'hôte via le socket Unix"
devices:
lxd-socket:
type: proxy
listen: unix:/var/snap/lxd/common/lxd/unix.socket
connect: unix:/var/snap/lxd/common/lxd/unix.socket
uid: 0
gid: 0
mode: "0660"
config:
cloud-init.vendor-data: |
#cloud-config
package_update: true
packages:
- snapd
runcmd:
- snap install lxd --channel=latest/stable