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:
1 parent
43d621bf02
commit
9a239b34b6
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
|
||||
Reference in new issue
Block a user