I tried applying this solution to an LXC cloud (is it correct?) image:Hey folks,
Just wanted to share a quick fix for anyone trying to use Debian 13 LXC templates from images.linuxcontainers.org and running into this error when creating a container in Proxmox VE:
Cause:
The template you're using is missing the file /etc/network/interfaces, which Proxmox expects to be present to inject the network config (especially if you assign a static IP in the UI).
Fix:
You just need to add a minimal network config inside the template image before using it.
Step-by-step fix:
Extract the image :
Add missing network config:Bash:mkdir /tmp/fixed-template cd /tmp/fixed-template tar -xJf /path/to/debian-13-template.tar.xz
Repack the image:Bash:mkdir -p etc/network cat <<EOF > etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp EOF
Place it in your template cache (e.g. /var/lib/vz/template/cache) and use it from the GUI or with pct create.Bash:tar -cJf /path/to/debian-13-fixed.tar.xz *
Now you can assign a dhcp or a static IP and gateway during container creation via the Proxmox interface, and it will work perfectly.
Hope this helps others — shoutout if you're hitting the same issue!
https://fra1lxdmirror01.do.letsbuildthe.cloud/images/debian/trixie/amd64/cloud/20250818_05:24/rootfs.tar.xz
The container starts successfully, but network auto-configuration fails
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.31.1,hwaddr=BC:24:11:46

defined in /etc/pve/lxc/XXX.conf are not applied automatically when creating a new LXC from this template.
its applied dhcp
but in lxc
Code:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.31.13/24
gateway 192.168.31.1
How can I fix this?
UPD
systemd-networkd doesnt use /etc/network/interfaces
how to switch proxmox to set lxc network config over systemd-networkd?
Last edited: