[SOLVED] Arch container network config overwritten on boot

Schubi

Member
Oct 27, 2021
2
0
6
41
Hi!

I'm using the stock archlinux-base template, create a CT, run it and configure the network via /etc/systemd/network/eth0.network.
But after every reboot, the file gets reset to dhcp=no, therefore no internet.
How can I prevent this?

Regards,
Schubi
 
hi,

I'm using the stock archlinux-base template, create a CT, run it and configure the network via /etc/systemd/network/eth0.network.
But after every reboot, the file gets reset to dhcp=no, therefore no internet.
for configuring the network on the container you should rather use the network configuration options in PVE (or edit the container configuration file in /etc/pve/lxc/CTID.conf)