grnet / snf-image

snf-image is a Ganeti OS definition. It allows Ganeti to launch instances from predefined or untrusted custom Images. The whole process of deploying an Image onto the block device, as provided by Ganeti, is done in complete isolation from the physical host, enhancing robustness and security.
Other
12 stars 12 forks source link

Debian 9's new default network interface names don't work #101

Open kasimon opened 6 years ago

kasimon commented 6 years ago

In

https://github.com/grnet/snf-image/blob/develop/snf-image-helper/networking/ifupdown.sh.in

the network interface name is hardcoded as eth$index. This conflicts with the new interface naming scheme in debian 9, where interfaces get names like ens0 or enp1s1 instead of eth0, eth1, ... This behavior is described in section 2.2.9 of the release notes: https://www.debian.org/releases/stretch/amd64/release-notes/ch-whats-new.en.html#new-interface-names, which links to a more in depth description on freedesktop.org: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

I'm not sure what's the best way to handle this, probably for now the easiest way would be to disable the new naming scheme by setting a symlink as descripted in the freedesktop description:

ln -s /dev/null /etc/systemd/network/99-default.link

and recreate the initramfs with

update-initramfs -u
skalkoto commented 6 years ago

Hello, we ran into this and decided to fix it in snf-image-creator: https://github.com/grnet/snf-image-creator/commit/1f8678173983305aeeb8210e29e233efe9064d63 The tool that creates the images and not snf-image which is responsible to create ganeti instances out of images.