Open paulrogov opened 2 months ago
Optionally, you can use this cloud-init
config for persistent config on Ubuntu 24.04 client servers.
This is in yaml
format and should be specified when creating a new server instance (tested with Hetzner Ubuntu 24.04 CX22):
#cloud-config
write_files:
- path: /etc/systemd/network/10-enp7s0.network
content: |
# Custom network configuration added by cloud-init
[Match]
Name=enp7s0
[Network]
DHCP=yes
Gateway=10.0.0.1
append: true
- path: /etc/systemd/resolved.conf
content: |
# Custom network configuration added by cloud-init
DNS=1.1.1.1 FallbackDNS=8.8.8.8 # Cloudflare and Google Fallback
append: true
runcmd:
- reboot
Problem
Reason
A Hetzner Ubuntu 24.04 CX22 has network interface named
enp7s0
, notens10
mentioned in the current version of the document.Suggested Fix
Tested with Ubuntu 24.04 CX22
enp7s0
(can be double-checked withifconfig
output)[Network] DHCP=yes Gateway=10.0.0.1