Skip to content

LXC

Linux Containers (LXC)🔗

= ("[Website](" + this.url + ")") | = ("[Documentation](" + this.docs + ")") | = ("[Source](" + this.source + ")")

LXD🔗

Daemon acting as hypervisor

1
sudo lxd init

and go through setup process

  • LXD clustering: connect multiple LXD instances on network
  • storage pool: required for images etc.
  • no to using empty partition/disk will create loop device
  • MaaS (Metal as a Service) server: infrastructure management tool
  • network bridge: required to give containers network access

LXC🔗

1
2
3
sudo lxc launch <image>[:<version>]
sudo lxc exec <container name> /bin/bash # or other shell
sudo lxc list # show container info/status

Config🔗

  1. Default Configuration Directory: /etc/lxc/lxc.conf
  2. Container-Specific Configuration Files: /var/lib/lxc/my-container/config
  3. User Containers (Unprivileged Containers): ~/.local/share/lxc/my-container/config

Images🔗

  • sources are called remote
1
lxc remote list

References🔗