Formatting '/var/lib/vz/images/100/vm-100-disk-0.raw', fmt=raw size=8589934592 preallocation=off
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 9a6b627e-265e-4b27-8ca6-b7e9f8a8cfa1
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
extracting archive '/var/lib/vz/template/cache/debian12-rootfs.tar.xz'
Total bytes read: 582010880 (556MiB, 83MiB/s)
Detected container architecture: arm64
unable to open file '/etc/network/interfaces.tmp.127464' - No such file or directory
TASK ERROR: unable to create CT 100 - error in setup task PVE::LXC::Setup::post_create_hook
发生这种情况显然是因为容器使用 systemd-networkd
而不是 ifupdown2
先将网络设置为静态,不要配置任何地址,启动容器后禁用 systemd-networkd
服务,安装 ifupdown2
并启用网络服务 networking
使 Proxmox 配置生效
Q.E.D.