I try to setup Ubuntu with full disc encryption on top of Hetzner Cloud. I got everything to work except the network connection in initramfs. Thanks to the UI console its possible to unlock, but I need SSH (dropbear) in init. I successfully using the same configuration on their root servers without any issues.
If I setup dropbear to get the IP by dhcp always resulting in NETWORK IS UNREACHABLE
. But it gets the right parameters from the dhcp server. I asked Hetzner Support. They told me they think the dhcp client does not support RFC 3442 Classless Static Routes Option and recommended to add a static route with ip r a 172.31.1.1 dev ens3
. Like on this Question I added the route, but always got the same error: NETWORK IS UNREACHABLE
. I tested to set the route in different scripts, but nothing changed. I tested Ubuntu 16.04 and 18.04.
I'am happy about any recommends about this.
Thanks!
Best Answer
For those who come across this thread:
At least in Debian Stretch a little more generic configuration (which won't break on package update) works. We just configure network statically with a script in init-premount:
vi /etc/initramfs-tools/scripts/init-premount/static-routes
chmod 755 /etc/initramfs-tools/scripts/init-premount/static-routes