From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 5440320EC93 for ; Mon, 29 Apr 2024 11:56:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 58057B3F8; Mon, 29 Apr 2024 11:56:19 +0200 (CEST) Message-ID: <7936cb72-5145-4330-bc3c-0c846d8b8213@proxmox.com> Date: Mon, 29 Apr 2024 11:56:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Fiona Ebner To: pve-devel@lists.proxmox.com References: <20240429092346.15139-1-f.ebner@proxmox.com> Content-Language: en-US In-Reply-To: X-SPAM-LEVEL: Spam detection results: 0 AWL -0.066 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH container] setup: support Ubuntu 24.04 Noble X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" 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 >> --- >> >> 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