mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2026-01-27 10:41:26 +01:00
lxc systemd service [1] defines a StateDirectory to ensure that
the /var/lib/lxc directory is automatically created and managed
by systemd during service startup.
Do not create lxc directory at build time for systemd.
[1]
|
||
|---|---|---|
| .. | ||
| files | ||
| lxc_git.bb | ||
| README | ||
install:
Install the following packages to your image:
IMAGE_INSTALL:append = "lxc lxc-networking kernel-modules"
These will put the core lxc application and networking onto your image. No other configuration is required for a basic system.
Note: has only been tested with systemd, sysvinit patches are welcome
Note: Partially conflicts with packages such as k3s, networking will fail to start.
sample test:
% lxc-create -n test -t download -- --server us.lxd.images.canonical.com -d alpine -r 3.16 -a amd64 % lxc-start test % lxc-console test