[SOLVED] Arch container network config overwritten on boot

Schubi

Member
Oct 27, 2021
2
0
6
40
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)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!