From f206eab5753bd9ee2d5b1126c6ec5a18e75cac89 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ishii Date: Thu, 14 Jul 2022 16:23:37 +0900 Subject: agl-lxc: Enable network bridge via lxc-net On lxc-host-image-demo, network (physical ethernet) is statically assigned to the ivi-guest space currently. This may be a bit problematic since the other guests and also host can't use network for some future usecases, for example we can't login to host by ssh. This change enables network bridge settings via lxc-net to solve this problem. Bug-AGL: SPEC-4475 Signed-off-by: Hiroyuki Ishii Change-Id: Ic1a39b64de932f67b7be833d469ef1a80e0c52c9 --- meta-agl-lxc/recipes-container/lxc/files/lxc-net.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-agl-lxc/recipes-container/lxc/files/lxc-net.service (limited to 'meta-agl-lxc/recipes-container/lxc/files/lxc-net.service') diff --git a/meta-agl-lxc/recipes-container/lxc/files/lxc-net.service b/meta-agl-lxc/recipes-container/lxc/files/lxc-net.service new file mode 100644 index 00000000..1b6e8451 --- /dev/null +++ b/meta-agl-lxc/recipes-container/lxc/files/lxc-net.service @@ -0,0 +1,15 @@ +[Unit] +Description=LXC network bridge setup +After=network-online.target systemd-resolved.service +Before=lxc.service +Documentation=man:lxc +ConditionVirtualization=!lxc + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=@LIBEXECDIR@/lxc/lxc-net start +ExecStop=@LIBEXECDIR@/lxc/lxc-net stop + +[Install] +WantedBy=multi-user.target -- cgit 1.2.3-korg