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>
This commit is contained in:
xavierandClaude committed 2025-10-02 23:56:52 +02:00
1 parent cb7dd981bf
commit 97312bbae3
3 files changed
+102

No files matched your search

@@ -0,0 +1,18 @@
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