Metadata-Version: 2.4
Name: pve-install-hetzner
Version: 3.0.0
Summary: Install Proxmox VE on a Hetzner dedicated server from the Linux rescue system
Keywords: proxmox,pve,hetzner,dedicated-server,rescue,zfs
Author: foundata GmbH
License-Expression: GPL-3.0-or-later
License-File: LICENSES/GPL-3.0-or-later.txt
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System :: Installation/Setup
Requires-Dist: prompt-toolkit>=3.0.52,<4
Requires-Dist: tomli-w>=1.2,<2
Requires-Python: >=3.12
Project-URL: Homepage, https://foundata.com/en/projects/proxmox-pve-installer-hetzner/
Project-URL: Documentation, https://foundata.com/en/projects/proxmox-pve-installer-hetzner/#doc
Project-URL: Repository, https://foundata.com/en/projects/proxmox-pve-installer-hetzner/#source
Project-URL: Issues, https://foundata.com/en/projects/proxmox-pve-installer-hetzner/#issues
Project-URL: Changelog, https://foundata.com/en/projects/proxmox-pve-installer-hetzner/#changelog
Description-Content-Type: text/markdown

# Proxmox Virtual Environment (PVE) installer for Hetzner dedicated servers

<!--
SPDX-FileCopyrightText: foundata GmbH <https://foundata.com>
SPDX-License-Identifier: GPL-3.0-or-later
-->

**Install a standalone Proxmox VE node on a Hetzner dedicated server directly
from its Linux rescue system, using the original upstream ISOs.**

<!-- rumdl-disable MD033 -->
<!-- HTML for consistent rendering across limited platform parsers -->
<div align="center" id="project-readme-header">
<br>
<br>

**⭐ Found this useful? Support open-source and star this project:**

[![GitHub repository](https://img.shields.io/github/stars/foundata/proxmox-pve-installer-hetzner.svg)](https://github.com/foundata/proxmox-pve-installer-hetzner)

<br>
</div>
<!-- rumdl-enable MD033 -->

Run
[`pve-install-hetzner`](https://foundata.com/en/projects/proxmox-pve-installer-hetzner/)
over SSH. It turns your settings into a
[Proxmox answer file](https://pve.proxmox.com/wiki/Automated_Installation)
and boots the official installer in a temporary VM inside rescue. The VM writes
directly to the physical disks you select. When you reboot, the server runs
Proxmox VE from those disks and applies your network settings before networking
starts.

[![Diagram](https://kroki.io/mermaid/png/eNpVjk1LxEAMhu_7K0JOeuhf8KSgoCjsspehh9lp1hmcj5KktZX-eLvTIphLPt68T3KN5dt5ywqnxwOsIcPlk23vgUncQAafSX8yMbyGPEz7FGQWpYRttdzCxWCwH6kJWdTG2PjNhi00zcNyKUUF1BPs-gp8Ob4vMCaDJ0p9YcsznN92JOWu5jFV-24S-OAypTLB-QlKXqAL8iXmDo8UySl10PtZgrNxU_B-o9WmguxV18sWhHhcC6bbYwv4ImrwH7w--4fb9rE9_AIO7Gcf)](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/README.md)


## Table of contents<a id="toc"></a>

- [Features](#features)
- [Demo](#demo)
  - [Screenshots](#demo-screenshots)
- [Installation](#installation)
- [Usage](#usage)
  - [From rescue to first login](#quick-start)
  - [Network designs](#network-designs)
    - [PVE gateway, flat network](#pve-gateway)
    - [Firewall gateway, optional subnetting](#firewall-gateway)
  - [Scripted installation](#automation)
- [Storage layouts](#storage)
- [Disk firmware and Secure Boot](#firmware)
- [Network and repository settings](#network-repositories)
- [Compatibility](#compatibility)
- [FAQ](#faq)
  - [How do I choose the private IPv4 subnets during installation?](#choose-subnets)
  - [How do I change a private IPv4 subnet after installation?](#change-subnets)
    - [With the PVE gateway (flat network)](#subnets-pve)
    - [With the firewall gateway (optional subnetting)](#subnets-firewall)
  - [How do I expose a VM to the internet?](#publish-service)
    - [With the PVE gateway (flat network)](#publish-pve)
    - [With the firewall gateway (optional subnetting)](#publish-firewall)
  - [How do I add a workload subnet?](#workload-subnets)
  - [How do I download the Proxmox VE ISO from another URL?](#iso-download-url)
- [Troubleshooting](#troubleshooting)
  - [Installation and boot errors](#install-boot-error)
  - [Missing UEFI boot entries](#missing-uefi-entries)
- [Contributing](#contributing)
- [Licensing, copyright](#licensing-copyright)
  - [Trademarks](#trademarks)
- [Author information](#author-information)


## Features<a id="features"></a>

- Install over SSH using the original PVE ISOs, without Hetzner's `installimage`
  or a remote console requested from support.
- Use PVE as the guest gateway or route workloads through a firewall VM.
- Install on a ZFS mirror (the default) or choose another disk layout.
- Choose BIOS or UEFI for the installed disks independently of how rescue
  booted.


## Demo<a id="demo"></a>

### Screenshots<a id="demo-screenshots"></a>

<!-- rumdl-disable MD033 -->
<!-- HTML for consistent rendering across limited platform parsers -->
[<img src="https://raw.githubusercontent.com/foundata/proxmox-pve-installer-hetzner/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-01-tool-install.png" alt="Screenshot: Installing the CLI with pipx in Hetzner rescue" height="128" />](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-01-tool-install.png)
&#160;
[<img src="https://raw.githubusercontent.com/foundata/proxmox-pve-installer-hetzner/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-02-wizard.png" alt="Screenshot: Entering the host details and root SSH public key in the wizard" height="128" />](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-02-wizard.png)
&#160;
[<img src="https://raw.githubusercontent.com/foundata/proxmox-pve-installer-hetzner/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-03-summary.png" alt="Screenshot: Reviewing the boot mode, disk health and network before installation" height="128" />](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-03-summary.png)
&#160;
[<img src="https://raw.githubusercontent.com/foundata/proxmox-pve-installer-hetzner/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-04-wizard-disk-selection.png" alt="Screenshot: Selecting the installation disks in mirror order" height="128" />](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-04-wizard-disk-selection.png)
&#160;
[<img src="https://raw.githubusercontent.com/foundata/proxmox-pve-installer-hetzner/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-05-webui-access.png" alt="Screenshot: Choosing direct HTTPS, an allowlist or an SSH tunnel for web access" height="128" />](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/assets/images/screenshots/pve-installer-hetzner-05-webui-access.png)
<!-- rumdl-enable MD033 -->


## Installation<a id="installation"></a>

The CLI runs as root in Hetzner's rescue system (Debian 13 (Trixie) or newer).
Activate **Linux 64-bit** rescue in Hetzner Robot, reboot the server and connect
with `ssh -t root@SERVER_IP`. Install the CLI in rescue using Debian's pipx.

```sh
apt-get update && apt-get install -y pipx
PIPX_BIN_DIR=/usr/local/bin pipx install 'pve-install-hetzner'
pve-install-hetzner --version
```

The CLI requires Python 3.12 or later. The Debian 13 rescue image we tested
included Python 3.13 and offered pipx through APT. For an unpublished build, see
[testing a local wheel](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/DEVELOPMENT.md#wheel-tests).

Please check that the server meets the requirements:

- **Host and network.** Use an x86-64 server with KVM enabled, a physical
  public uplink and a primary IPv4 address. Additional physical NICs can be
  pinned by MAC address. Keep Secure Boot disabled so Robot rescue
  remains available.
- **Target disks.** Choose writable whole disks of at least 16 GiB that meet
  the [layout requirements](#storage). Native 4K-sector disks require a UEFI
  target. Mounted partitions, active swap or other block devices using a disk
  prevent exclusive access in rescue.


## Usage<a id="usage"></a>

### From rescue to first login<a id="quick-start"></a>

1. [Install the CLI in rescue](#installation) and run `pve-install-hetzner` in
   an SSH terminal. Use `tmux` if the connection is unreliable.

2. Choose a [network design](#network-designs). Review the selected disks in
   order, their serial numbers, the boot mode and the management address. Supply
   your workstation's public SSH key for root access to the installed host.

3. Choose **Continue installation**, set the root password and type the
   displayed `ERASE` phrase. **This authorizes overwriting the selected disks.**
   The installer then downloads the ISO if needed, verifies it and installs
   Proxmox VE.

4. When installation succeeds, run `systemctl reboot`. Open the URL printed by
   the installer and sign in as `root@pam` with the password you set. See
   [web access](#network-repositories) for direct HTTPS and SSH tunnels, or
   [installation and boot errors](#install-boot-error) if SSH reports a changed
   host key.

### Network designs<a id="network-designs"></a>

|                        |               PVE gateway, flat network (default)                | Firewall gateway, optional subnetting |
| ---------------------- | ---------------------------------------------------------------- | ------------------------------------- |
| Attach workload VMs to | `vmbr0`                                                          | `lan0`, or another workload VNet      |
| Guest IPv4 gateway     | PVE at `192.168.200.1/24`. Set guest addresses and DNS manually. | The firewall VM's LAN address. Configure LAN addressing and DHCP on the appliance. |
| Incoming services      | Publish individual guest services on PVE.                        | PVE keeps management traffic and forwards other incoming IPv4 connections to the appliance. Publish services there. |

#### PVE gateway, flat network<a id="pve-gateway"></a>

[![Diagram](https://kroki.io/mermaid/png/eNpdkMFKw0AQhu99imG8KJiYFisxJykW4kFbaFOVkMMkmTah292wu7FU8bm898lcl5yc0zDzfz__zFaoY9WQtrB-HIGrNMeU7adkDVlnrGY6YAFBEECWo2yrCM4_0DjFkWSEhWcyv1_muNzMIVXGwmL1J1utUiBZw5FLyJ4G8dKLZzl-HErt3cb3k3B8F4eTKArHN5NbuKx5S72wVwMy88gmx1el90JRDZtn8598cyQWD1-ApqGOMQHstKoMwvfIu7ws1vMc31UPFUlwR8sdg20Ydj27yKYvJVtopZ-10lgSgnU4ZDD2JNh7wLYVIrGapOlIs7TX7k1qz8lFHMdDH9TkUmhNp2QK09Evq-5sFA==)](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/README.md#pve-gateway)

The guest subnet defaults to `192.168.200.0/24`. To change it, use the wizard or
set `network.guest-subnet` in the answer file. PVE masquerades outbound guest
IPv4 traffic. With guest IPv6 enabled, PVE advertises the routed /64 on the
guest bridge for automatic addressing. By default, the host filters incoming
connections to guests in both address families.

#### Firewall gateway, optional subnetting<a id="firewall-gateway"></a>

[![Diagram](https://kroki.io/mermaid/png/eNqdktFKwzAUhu_3FId4a7umOumKiKIbFbQbrN2Esotsy2hZTEoSKXPsuXbvk5lkHerNLiwESvL93znkZM1EsyyJ1JA9dcB8SYESqj85lZDXSktK3tEcPM-DvEC8WgbwdYDSEA3hAZq7TO7OxwUaTweQCKVhNLHYZJIA4Sto6ALy5xYeOzgr0LoJjMNyuB_6-Cbycb_v4-7VSZs5crhDw0rShjAG01eLzx7SP5HQRvYdlxm6zEtQMNPese9pUKCZkBsmyMoY1O-KYRD4b93wGs3vd4BUSWqKYkC1FEuFYH9S-iBqXQlOGPjGjq0dt3Z8zo7_YU-tPW3t6Tl7etbu9OkoGxTosRRCUdClWZJwVWlQHwtONVTc7VZcaXPBVN4uZPfOzszuNqfKR1iBONLrn3n47ayU3jLqqplTxmJXpiaScn1pXpHY0PgiiqL231sR06-UZBv3oNf5BhjKvqU=)](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/README.md#firewall-gateway)

The installer creates an isolated transit network for a firewall VM, such as
OPNsense or another virtual appliance. Create the VM, attach its WAN to `fw0wan`
and select DHCP.

The transit subnet defaults to `192.168.199.0/30`. PVE uses `192.168.199.1`, and
Proxmox SDN leases `192.168.199.2` to the firewall WAN. To use another private
/30, select it in the wizard or set `network.firewall.transit-subnet` in the
answer file. Allow private IPv4 addresses on the firewall WAN.

Attach the firewall VM's LAN interface to `lan0` and choose the workload subnets
on the appliance. The diagram uses `192.168.200.0/24` for `lan0` and
`192.168.201.0/24` for `lan1`. Give each LAN a subnet that does not overlap the
transit subnet or another LAN. PVE masquerades the transit address, so enable
outbound IPv4 NAT on the appliance for private workloads. Proxmox classifies SDN
IPAM and DHCP as technology previews.

PVE retains TCP 22 and 8006, IPv4 echo requests and required control traffic by
default. Web access still follows `access.web`. With guest IPv6 enabled,
configure `fe80::2/64` on the appliance WAN and use `fe80::1` on that link as
its IPv6 gateway. PVE routes your selected service addresses or prefixes to it.
Management remains reachable while the appliance is offline.
[Proxmox SDN and DHCP](https://pve.proxmox.com/pve-docs/chapter-pvesdn.html#pvesdn_config_dhcp)

### Scripted installation<a id="automation"></a>

Use a `pve-install-hetzner` answer file to share settings across servers.
Put `schema-version = 3` before the first TOML table.
Save this partial example as `fleet.toml` in rescue and put your workstation's
public SSH key in `keys/admin.pub` beside it. Relative file paths resolve from
the directory containing the TOML file.

Replace the example administration addresses with the public source addresses
that the installed server will see from your network or VPN.

```toml
schema-version = 3

[host]
email = "ops@example.org"
timezone = "Europe/Berlin"

[access]
ssh-public-key-file = "keys/admin.pub"
web = "allowlist"
web-allow-from = ["198.51.100.24", "2001:db8:1234::/48"]

[storage]
layout = "zfs-mirror"

[installation]
pve-version = "latest"

[network]
gateway = "pve"
guest-subnet = "192.168.200.0/24"
```

For a firewall VM, replace the `[network]` table in that file. This example
keeps public IPv6 on the PVE host and reserves TCP 22 and 8006 for management.

```toml
[network]
gateway = "firewall-vm"
ipv6 = "host-only"

[network.firewall]
zone = "zone0"
wan-vnet = "fw0wan"
transit-subnet = "192.168.199.0/30"
host-tcp-ports = [22, 8006]
host-ping = true
```

Use `pve-install-hetzner plan --answer-file fleet.toml` for a preview. To keep
the reviewed settings for one server, choose a separate output file. On a
terminal, enter the missing hostname and choose the disks in order. The guide
prompts for missing required values individually, groups optional settings and
lets you edit supplied values during review.

```sh
pve-install-hetzner plan --answer-file fleet.toml --save-answer-file pve01.toml
```

Check disk serial numbers, firmware, MAC addresses and routes. `plan` installs
any missing preview tools in the live rescue system and only inspects the
server's disks. Save the answer file in rescue, for example under `/root`.
It contains the reviewed settings and any credential references. Only
`install` reads the root credential. Install from the reviewed file when ready.

```sh
pve-install-hetzner install --answer-file pve01.toml
```

- **Host** (`[host]`) holds `fqdn`, `email` and `timezone`.
- **Access** (`[access]`) takes either `ssh-public-key` or
  `ssh-public-key-file`. Use `root-password-hash-file` or `root-password-file`
  for the root credential. Set `web` and, for the `allowlist` mode,
  `web-allow-from` for [web access](#network-repositories).
- **Storage** (`[storage]`) takes a `layout` and an ordered `disks` array of
  whole-disk paths. Prefer the stable names under `/dev/disk/by-id/`.
- **Installation** (`[installation]`) holds `pve-version`, `target-firmware`,
  `repository` and an optional local `iso` path. Use `"latest"` to follow the
  newest bundled ISO or an exact build such as `"9.2-1"` to pin a server.
  Saving reviewed answers preserves that choice.
- **Network** (`[network]`) sets `gateway`, `ipv6`, the physical `uplink-name`
  (default `nic0`), `uplink-bridge` (default `hetzwan0`) and `guest-bridge`
  (default `vmbr0` or `lan0`). Set `guest-subnet` for the flat network. Ordinary
  bridge names allow up to ten ASCII letters, digits or underscores and must
  start with a letter. Map additional ports by MAC in `[network.nic-pins]`.
  Public addresses, gateways and the uplink MAC come from rescue.
- **Firewall network** (`[network.firewall]`) sets the SDN resources and IPv4
  management exceptions shown above. Pick distinct zone and VNet names of two to
  eight ASCII letters or digits starting with a letter. With
  `ipv6 = "host-and-guests"`, supply `routed-ipv6` as an array of public service
  addresses or prefixes routed to this server. Exclude PVE's own address.

For an unattended installation, set `root-password-hash-file` in the existing
`[access]` table to the path of a file containing one Linux crypt hash, such
as a SHA-512 crypt or yescrypt hash. Alternatively, set `root-password-file`
to the path of a one-line plaintext password. Keep the credential file
readable only by root. Either credential reference accepts `"-"` for standard
input. Passwords and hashes belong in the credential source.

**Passing `--unattended` explicitly authorizes erasure without a terminal
prompt for this invocation.** Supply a complete node file with the ordered
disks and one credential reference.

```sh
pve-install-hetzner install --answer-file pve01.toml --unattended
```

An unattended installation leaves the machine in rescue until you reboot it.

Both commands install missing Debian packages for SSH key validation and
hardware discovery. After review, `install` adds the tools needed for the
selected installation and boot checks. It uses OpenSSL for a plaintext root
password. If package setup is interrupted or reaches its 30-minute limit, the
active package operation finishes before the installer exits.

## Storage layouts<a id="storage"></a>

In `[storage]`, set `layout` and list whole-disk paths in the `disks` array in
the intended order.

|         Layout         |        Disks        | Installed storage |
| ---------------------- | ------------------- | ----------------- |
| `zfs-mirror` (default) | 2 or more           | ZFS mirror. Each member holds a complete copy. |
| `zfs-single`           | 1                   | Single-device ZFS pool. |
| `ext4` or `xfs`        | 1                   | ext4 or XFS root filesystem on LVM. |
| `zfs-stripe`           | 2 or more           | ZFS stripes data across the selected disks. Failure of any member loses the pool. |
| `zfs-raid10`           | Even count, 4 to 26 | ZFS stripes data across mirrored pairs. Consecutive entries in `storage.disks` form a pair. |
| `zfs-raidz1`           | 3 or more           | ZFS RAIDZ with single parity. |
| `zfs-raidz2`           | 4 or more           | ZFS RAIDZ with double parity. |
| `zfs-raidz3`           | 5 or more           | ZFS RAIDZ with triple parity. |

All selected disks must have the same logical sector size. For mirrors and
RAIDZ, each disk's capacity must be within 10% of the first disk's capacity.
For RAID10 this tolerance applies within each mirrored pair. The native LVM
layouts name their volume group `pve`. First boot with a second attached
volume group named `pve` has no test coverage.
See [how to test a storage layout](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/DEVELOPMENT.md#vm-boot).

## Disk firmware and Secure Boot<a id="firmware"></a>

`installation.target-firmware` selects the bootloader installed on the target
disks. The default is `auto`. Both `plan` and `install` show how rescue
started and which boot mode the installed disks require.

| Rescue started in | `auto` (default) | `bios` | `uefi` |
| ----------------- | ---------------- | ------ | ------ |
| Legacy BIOS       | BIOS             | BIOS   | UEFI   |
| UEFI              | UEFI             | BIOS   | UEFI   |

For example, if rescue used legacy PXE and you intend to boot the disks with
UEFI, set `target-firmware = "uefi"` in `[installation]`. Before installing,
confirm the server is configured to boot its disks in the selected mode.
A BIOS target requires legacy boot support (CSM on UEFI hardware).
[Some Hetzner models support UEFI only](https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/).

**Keep Secure Boot disabled for a UEFI target.** Enabling it
[prevents Hetzner Robot rescue from starting](https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/#secure-boot-support).
The installer uses temporary EFI variables and checks the fallback loader at
`EFI/BOOT/BOOTX64.EFI` on each disk. The server firmware determines whether
those disks appear in its boot menu.

If UEFI rescue reports Secure Boot **enabled**, both commands report a blocked
installation and exit unsuccessfully. If EFI variables are unreadable, the plan
reports **unknown**. Legacy BIOS rescue cannot observe the UEFI setting.
In either case, check the setting in firmware before booting a UEFI target.


## Network and repository settings<a id="network-repositories"></a>

|      Setting      | Installed configuration |
| ----------------- | ----------------------- |
| Public uplink     | The physical NIC carrying the rescue IPv4 default route is pinned by MAC to `nic0`. The public bridge (`hetzwan0` by default) carries the main IPv4 as a /32, a host route to the gateway and an optional global IPv6 address. Upstream DNS comes from rescue. |
| Web interface     | Set `access.web` to `public` (default), `ssh-tunnel` or `allowlist`. Public and allowlist modes listen on host addresses on TCP 8006. Tunnel mode listens on `127.0.0.1`. The SPICE proxy stays on loopback in all modes. |
| Additional NICs   | In `[network.nic-pins]`, use one entry per spare physical port, such as `"02:00:00:00:00:02" = "nic1"`. Unmapped ports retain their normal names. Only the physical uplink joins the public bridge. |
| Package updates   | The default enables the signed `pve-no-subscription` repository. Set `repository = "enterprise"` in `[installation]` with a Proxmox subscription. Debian's installed sources are preserved. |
| Storage using RPC | The installer masks `rpcbind.service` and `rpcbind.socket`. Unmask both units if your storage requires rpcbind. |

|  `network.ipv6`   |        PVE host        | Workloads |
| ----------------- | ---------------------- | --------- |
| `off`             | IPv4 management        | IPv4 only on routed paths |
| `host-only`       | Public IPv6 management | IPv6 forwarding blocked |
| `host-and-guests` | Public IPv6 management | Flat network: SLAAC on the routed /64. Firewall gateway: service addresses and prefixes routed through the appliance. |

The installer defaults to `host-only` when rescue has usable public IPv6, or
`off` otherwise. Link-local IPv6 still works between guests on the same LAN.
Each workload LAN using SLAAC needs its own routed /64.
[Hetzner IPv6 routing](https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/)

With the firewall gateway, `host-tcp-ports` applies to the host's public IPv4
address. Retain TCP 22 for SSH and TCP 8006 for direct HTTPS over IPv4. IPv6
management uses the host's own address.

In allowlist mode, put at least one numeric IPv4 or IPv6 address or CIDR
network in `access.web-allow-from`. Use the network address for each CIDR.
Omit this field in the other modes. The installer sets native pveproxy
`POLICY=deny` and
`ALLOW_FROM` to those sources plus IPv4 and IPv6 loopback. Other connections
to the web UI and API are rejected before TLS. SSH stays reachable according
to your existing host and Hetzner firewall rules. An SSH tunnel from a host
with SSH access can still reach the loopback endpoint.

For direct HTTPS, open `https://SERVER_IP:8006/` from your workstation. If you
filter incoming traffic, allow TCP 8006 from your administration network. For
tunnel access, use the private key matching the public key you supplied during
installation. Leave this command running and open <https://localhost:8006/>.

```sh
ssh -i ~/.ssh/your-private-key -N -L 127.0.0.1:8006:127.0.0.1:8006 root@SERVER_IP
```

## Compatibility<a id="compatibility"></a>

Under **Storage and boot → Proxmox VE version**, choose a bundled ISO or keep
**Latest supported** (the default). The bundled (and tested) builds are 9.3-1,
9.2-1 and 9.1-1. The 9.0-1 ISO lacks the required interface-name pinning.

For a newer stable 9.x ISO, choose **Enter a newer 9.x build** or set
`installation.pve-version` to the exact build. The preview checks the filename
against Proxmox's signed checksum list. These builds are untested with this
installer but should work. A new PVE major version (10.X) requires a tool
update.


## FAQ<a id="faq"></a>

### How do I choose the private IPv4 subnets during installation?<a id="choose-subnets"></a>

Choose the gateway design first. Under **Installation settings**, edit the
field for that design, or set it in your [answer file](#automation).

|            Network            |           Wizard field           |           Answer-file setting            | Default |
| ----------------------------- | -------------------------------- | ---------------------------------------- | ------- |
| PVE gateway: guest LAN        | **Guest IPv4 subnet**            | `guest-subnet` in `[network]`            | `192.168.200.0/24` |
| Firewall gateway: WAN transit | **Firewall transit IPv4 subnet** | `transit-subnet` in `[network.firewall]` | `192.168.199.0/30` |

Enter the network address with its prefix length. PVE takes the first usable
address. The firewall transit needs a private /30, and the firewall WAN gets
the second usable address by DHCP. Choose each workload LAN's subnet on the
firewall VM when you configure it. Pick ranges that do not overlap each other
or networks you reach over a VPN.


### How do I change a private IPv4 subnet after installation?<a id="change-subnets"></a>

#### With the PVE gateway (flat network)<a id="subnets-pve"></a>

On PVE, change the guest bridge address in `/etc/network/interfaces`. For
example, set `vmbr0` to `192.168.210.1/24` and use that address as the guests'
default gateway. Update the subnet in
`/etc/pve-install-hetzner/gateway.nft` and any guest addresses in
`publish-ipv4.nft`, then [check and load the rules](#publish-pve). Apply the
bridge change with `ifreload -a` and update the guests' addresses and routes.

#### With the firewall gateway (optional subnetting)<a id="subnets-firewall"></a>

- To change a **workload LAN**, update its interface address, DHCP range and
  address-specific rules on the firewall VM. Renew guest leases and update
  static addresses and gateways. Guests stay attached to the same VNet.
- To change the **WAN transit subnet**, schedule a brief firewall outage. In
  **Datacenter → SDN → IPAM**, remove the old firewall WAN mapping. Under
  **VNets**, replace the subnet on `fw0wan`. For `192.168.198.0/30`, use
  `192.168.198.1` as the gateway and `192.168.198.2` for both DHCP range
  endpoints. Leave SDN SNAT disabled. Apply the changes and map the WAN MAC to
  the new lease in IPAM. On PVE, replace the old WAN address throughout
  `/etc/pve-install-hetzner/gateway.nft` and load the checked rules. Renew the
  firewall's WAN lease, then test outbound access and any published services.


### How do I expose a VM to the internet?<a id="publish-service"></a>

#### With the PVE gateway (flat network)<a id="publish-pve"></a>

Give the workload a stable address. For HTTPS over IPv4, point
its DNS `A` record at the host's public address. On PVE, add a DNAT rule to
`/etc/pve-install-hetzner/publish-ipv4.nft`, substituting your addresses and
bridge name. The forwarding policy permits connections published this way.

```nft
iifname "hetzwan0" ip daddr 203.0.113.7 tcp dport 443 dnat ip to 192.168.200.10:443
```

For HTTPS over IPv6, enable `host-and-guests`, point the `AAAA` record at the
guest's public address and allow TCP 443 to that address in
`/etc/pve-install-hetzner/publish-ipv6.nft`.

```nft
iifname "hetzwan0" oifname "vmbr0" ip6 daddr 2001:db8:1::10 tcp dport 443 accept
```

Check and load the installer table on PVE. Allow the port in any upstream and
guest firewall rules, then test from outside the server.

```sh
nft -c -f /etc/pve-install-hetzner/gateway.nft && nft -f /etc/pve-install-hetzner/gateway.nft
```

#### With the firewall gateway (optional subnetting)<a id="publish-firewall"></a>

Point the `A` record at the host's public IPv4 address. On
the appliance, forward TCP 443 to the workload, or run a reverse proxy that
serves the application. For IPv6, point `AAAA` at a routed service address.
Allow HTTPS to the guest that owns it, or assign it to the reverse proxy.

### How do I add a workload subnet?<a id="workload-subnets"></a>

Use the **firewall gateway** to route traffic between workload LANs. For
example, if `lan0` uses `192.168.200.0/24`, add `192.168.201.0/24` on
`lan1` as follows.

1. In **Datacenter → SDN**, create VNet `lan1` in `zone0` and apply the change.
2. Add a NIC on `lan1` to the firewall VM. Assign it `192.168.201.1/24` in the
   appliance and configure DHCP and inter-LAN rules there.
3. Attach workloads for the new subnet to `lan1`. PVE needs no address on either
   workload LAN.

### How do I download the Proxmox VE ISO from another URL?<a id="iso-download-url"></a>

Set `PVE_INSTALL_HETZNER_ISO_BASE_URL` to an HTTPS directory containing the
official ISOs under their original filenames. Use a URL without credentials,
a query or a fragment.

```sh
export PVE_INSTALL_HETZNER_ISO_BASE_URL='https://mirror.example.org/proxmox/iso/'
pve-install-hetzner plan --answer-file node.toml
pve-install-hetzner install --answer-file node.toml
```

`plan` shows the resolved URL. `install` downloads the ISO and checks its
SHA-256 before erasing disks. A mirror supplies only the ISO. For unlisted
builds, rescue also needs access to the official Proxmox server for the
signed checksums. To use a local ISO, set `iso` in `[installation]` to its
path. Omit `pve-version` to identify a bundled ISO by checksum, or set it to
require a match. For an unlisted local ISO, supply the exact build.


## Troubleshooting<a id="troubleshooting"></a>

### Installation and boot errors<a id="install-boot-error"></a>

- **The installer stopped.** Read the error in rescue and inspect the serial
  log (`/root/pve-console-*.log`) before rebooting. Recheck the selected disks
  before retrying.
- **SSH reports a changed host key.** Rescue and the installed host have
  different keys. Use a Hetzner remote console to verify the fingerprint with
  `ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub` before accepting it.
- **Proxmox booted, but SSH is unreachable.** Request a remote console from
  Hetzner support. Run
  `journalctl -b -u proxmox-first-boot-network-pre -u networking` and compare
  the uplink MAC address and public routes with the plan.
- **First boot reports a ZFS root-pool error.** Inspect
  `journalctl -b -u proxmox-first-boot-network-pre`. Correct the reported
  cause, then run `systemctl restart proxmox-first-boot-network-pre.service`.
- **Another OS booted.** Use the firmware's one-time boot menu to select an
  installation disk in the [planned firmware mode](#firmware).

### Missing UEFI boot entries<a id="missing-uefi-entries"></a>

If the firmware lists network boot but neither mirror disk, request a remote
console from Hetzner support. Check that the server is in UEFI mode with Secure
Boot disabled. Boot Linux rescue in UEFI mode and confirm `/sys/firmware/efi`
exists. Run `efibootmgr -v` to inspect the boot entries. Register each missing
disk using its actual path by serial number. On this installer's GPT layout,
partition 2 is the EFI System Partition.

```sh
efibootmgr --create-only --disk /dev/disk/by-id/ata-FIRST_DISK_SERIAL \
    --part 2 --label 'Proxmox mirror A' --loader '\EFI\BOOT\BOOTX64.EFI'
efibootmgr --create-only --disk /dev/disk/by-id/ata-SECOND_DISK_SERIAL \
    --part 2 --label 'Proxmox mirror B' --loader '\EFI\BOOT\BOOTX64.EFI'
efibootmgr -v
```

Match each entry's GPT partition UUID against `lsblk -o NAME,SERIAL,PARTUUID`.
Use `efibootmgr --bootorder` with this server's entry numbers. Keep IPv4 PXE
first, followed by the mirror disks and any other entries you need. To test
one disk for a single boot, use `efibootmgr --bootnext` with its entry number.
After reboot, `bootctl status` identifies the EFI partition that loaded
systemd-boot.


## Contributing<a id="contributing"></a>

See the [contribution guide](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/CONTRIBUTING.md) to report issues or submit
changes. To report a vulnerability privately, follow the
[security policy](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/SECURITY.md).


## Licensing, copyright<a id="licensing-copyright"></a>

<!--REUSE-IgnoreStart-->
<!-- should match SPDX-PackageSupplier -->
Copyright (c) 2024-2026, foundata GmbH <https://foundata.com>

This project is licensed under the GNU General Public License v3.0 or later
(SPDX-License-Identifier: `GPL-3.0-or-later`), see
[`LICENSES/GPL-3.0-or-later.txt`](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/LICENSES/GPL-3.0-or-later.txt)
for the full text.

The [`REUSE.toml`](https://github.com/foundata/proxmox-pve-installer-hetzner/blob/refs/tags/v3.0.0/REUSE.toml) file provides detailed licensing and copyright
information in a human- and machine-readable format. This includes parts that
may be subject to different licensing or usage terms, such as third-party
components. The repository conforms to the
[REUSE specification](https://reuse.software/spec/). You can use
[`reuse spdx`](https://reuse.readthedocs.io/en/latest/readme.html#cli) to create
an
[SPDX software bill of materials (SBOM)](https://en.wikipedia.org/wiki/Software_Package_Data_Exchange).
<!--REUSE-IgnoreEnd-->

[![REUSE status](https://api.reuse.software/badge/github.com/foundata/proxmox-pve-installer-hetzner)](https://api.reuse.software/info/github.com/foundata/proxmox-pve-installer-hetzner)


### Trademarks<a id="trademarks"></a>

Third-party trademarks used in this repository:

- Debian® is a trademark of Software in the Public Interest, Inc., registered in
  Germany and the United States.
- Hetzner® is a trademark of Hetzner Online GmbH, registered in the European
  Union.
- Linux® is a trademark of Linus Torvalds, registered in Germany, the European
  Union and the United States.
- Proxmox® is a trademark of Proxmox Server Solutions GmbH, registered in
  Germany and the United States.

Their use here is purely descriptive and does not imply any affiliation with or
endorsement by the trademark holders.

Own and licensed trademarks used in this repository:

- foundata® is a trademark of [IPAM GmbH](https://ipam-services.com/),
  registered in Germany and the European Union, licensed to
  [foundata GmbH](https://foundata.com/).


## Author information<a id="author-information"></a>

This [project](https://foundata.com/en/projects/) was created and is maintained
by [foundata](https://foundata.com/).

`proxmox-pve-installer-hetzner` is *not* associated with Proxmox Server
Solutions GmbH nor the official
[Proxmox Virtual Environment (PVE)](https://www.proxmox.com/en/proxmox-virtual-environment/overview)
project.
