Skip to content

2025-05 hetzner proxmox cluster#

We have setup proxmox servers (see 2025-02-18 more hetzner server install, and 2024-11-14 hetzner server install) and configure them with ansible, but they are yet to be set as a single cluster.

Setting up the vSwitch#

We need a vSwitch to connect our servers in a private network (which is handy for a proxmox cluster).

In robot console of hetzner, I created a vSwitch with ID 4000. I added hetzner-01,02 and 03 servers.

I then follow documentation to add interfaces to our servers.

I created the hetzner_vswitch role to configure corresponding interfaces on our servers.

For example on hetzner-01, it will create /etc/network/interfaces.d/vswitch-4000 with:

# This is generated by ansible
# Do not edit directly

# Setup inet interface for vswitch of id 4000
iface enp41s0.4000 inet manual
    vlan-raw-device enp41s0
# Setup the inet corresponding bridge
auto vmbr1
iface vmbr1 inet static
    address 10.12.0.1/16
    bridge-ports enp41s0.4000
    bridge-stp off
    bridge-fd 0
# Setup inet6 interface for vswitch of id 4000
iface enp41s0.4000 inet6 manual
    vlan-raw-device enp41s0
# Setup the inet6 corresponding bridge
auto vmbr1
iface vmbr1 inet6 static
    address fded:b8d9:a973:1:1::/64
    bridge-ports enp41s0.4000
    bridge-stp off
    bridge-fd 0