nix-community/srvos

[Hetzner Cloud] Networking does not work together with cloud-init

shyim opened this issue · 3 comments

shyim commented

Is your feature request related to a problem? Please describe.

Cloud-Init together with the networking here does not work as cloud-init generates a network configuration which will be loaded first.

Solution is to delete /etc/systemd/network/10-cloud-init-enp1s0.network and then restart networking then the NixOS configuration works

There is a deeper issue where cloud-init doesn't have access to dhclient (which is deprecated), preventing it from standing up the interface and even querying the metadata service. If that was fixed, we could remove all of the networking code and the requirement to copy-paste the IPv6 address as well as it would come from that metadata server.

fixed!