Am 29.04.24 um 11:36 schrieb Fiona Ebner: > Am 29.04.24 um 11:23 schrieb Fiona Ebner: >> Reported in the community forum: >> https://forum.proxmox.com/threads/145848/#post-658694 >> >> Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> >> --- >> >> Minimally tested, that an upgrade from an existing 23.04 container >> works, there still is network and no obviously bad messages in the >> container's journal. >> > > Hmm, while the upgrade did work, starting from an Ubuntu 24.04 template > and setting a static IP does not seem to work, like described here: > https://forum.proxmox.com/threads/145848/post-658058
Seems like the ordering of the configuration files is the issue. The following would fix it, but probably needs to be special-cased for new Ubuntu (or new systemd, would still need to check where the change came in exactly) not to mess up existing containers, right? > diff --git a/src/PVE/LXC/Setup/Base.pm b/src/PVE/LXC/Setup/Base.pm > index 084b039..162498a 100644 > --- a/src/PVE/LXC/Setup/Base.pm > +++ b/src/PVE/LXC/Setup/Base.pm > @@ -249,7 +249,7 @@ sub setup_systemd_networkd { > my $d = PVE::LXC::Config->parse_lxc_network($conf->{$k}); > next if !$d->{name}; > > - my $filename = "/etc/systemd/network/$d->{name}.network"; > + my $filename = "/etc/systemd/network/10-$d->{name}.network"; > > my $data = <<"DATA"; > [Match] _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel