-
I'm trying to run talos on the Hetzner bare metal server, but unfortunately I'm not able to setup a network properly (it runs ok on the installer but after bootstrap and reboot I just lose the connection.). If I try to configure Talos without network option it runs just fine but I'm not able to use specific network configuration. Here's the config I'm attempting (values are altered). It's heavily influenced by netplan config which was I trying to reproduce in Talos, which I'll also provide below Maybe someone can take a look and tell if there's something wrong with the config or anything I'm missing. machine:
install:
disk: /dev/nvme1
image: ghcr.io/siderolabs/installer:v1.5.5
network:
hostname: node1
nameservers:
- 185.12.64.1
- 2a01:4ff:ff00::add:2
- 185.12.64.2
- 2a01:4ff:ff00::add:1
interfaces:
# External network configuration
- interface: enp35s0
# This vlan corresponds to a vswitch in Hetzner which provides virtual network for servers
vlans:
- addresses:
- 10.0.1.3/24
vlanId: 4000
mtu: 1400
routes:
- network: 10.0.0.0/16
gateway: 10.0.1.1
addresses:
# These are external IPs that are available to server using the gateway
- 135.181.180.222/32
- 135.181.180.234/32
- 2a01:4f9:3a:22c8::2/64
routes:
- network: 135.181.180.193/32
- network: 0.0.0.0/0
gateway: 135.181.180.193
- network: 2a01:4f9:3a:22c8::/64
gateway: fe80::1 Here's an example netplan config which would work on Ubuntu, for example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
the configuration looks fine to me, it'd be weird if it works during the install, but fails afterwards Do you have console logs of the machine when it fails? |
Beta Was this translation helpful? Give feedback.
@smira thank you for clarification, you're right. The problem was that I actually had a different network interface name locally and that's why it didn't work (spent a day trying to figure that out).
Here's a working config for anyone that might try to setup Talos with Hetzner as well (most of the configs out there have configs that are working only for legacy Hetzner servers):