virt-builder debian-12 network interface naming issues
Hi, The debian-12 template has the network interface name "ens2" in /etc/network/interfaces. After importing the disk image with virt-install I get "ens3" inside the guest. This probably happens because the libvirt domain XML is slightly different from the one that the template was generated with and the virtio-net device has a different PCI bus address. Networking does not come up after boot. One possible fix when generating the template: # cat >/etc/systemd/network/dhcp.network [Match] Name=en* [Network] DHCP=yes # systemctl enable systemd-networkd # mv /etc/network/interfaces /etc/network/interfaces.save See https://wiki.debian.org/SystemdNetworkd and https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_modern.... This way the image would DHCP any "ens*" network interface. I'm not sure how to best translate this into a patch, but I hope this information is useful. Having networking out-of-the-box would be nice! Thanks, Stefan
participants (1)
-
Stefan Hajnoczi