mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
![]() After the commit[1] "meson.build: allow explicit distrosysconfdir", the config of lxc would install
to distrosysconfdir[2], if this value not set, it might set to /etc/sysconfig, that cause lxc-net
configuration cannot be found[3] due to our bb file install the lxc-net to /etc/default folder.
Ref:
[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