From b9dd36af0c15eafa7eff7857d338b71fca99a423 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 2 Feb 2022 15:11:02 -0300 Subject: [PATCH] lxc-net: don't start by default inside lxc When lxc is installed inside an lxc container, trying to bring up lxc-net with the default parameters will conflict with the networking setup for lxc on the host. This breaks all networking inside the container where lxc is installed. Signed-off-by: Antonio Terceiro --- config/init/systemd/lxc-net.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/config/init/systemd/lxc-net.service.in b/config/init/systemd/lxc-net.service.in index 6ed8cd82b..a615d8b2d 100644 --- a/config/init/systemd/lxc-net.service.in +++ b/config/init/systemd/lxc-net.service.in @@ -3,6 +3,7 @@ Description=LXC network bridge setup After=network-online.target Before=lxc.service Documentation=man:lxc +ConditionVirtualization=!lxc [Service] Type=oneshot