Proxmox Virtual Environment (PVE) installer for Hetzner dedicated servers
Install a standalone Proxmox VE node on a Hetzner dedicated server directly from its Linux rescue system, using the original upstream ISOs.
Run
pve-install-hetzner
over SSH without using Hetzner's installimage or requesting a remote
console from support. Follow the guided installation, or use plan to review
a TOML answer file before installing. Storage defaults to a ZFS mirror.
Table of contents
- Features
- Installation
- Usage
- Storage layouts
- Disk firmware and Secure Boot
- Network and repository settings
- Compatibility
- Verification and recovery
- Contributing
- Licensing, copyright
- Author information
Features
- Install directly on the physical disks. The tool starts a temporary virtual machine (VM) in the rescue system itself and boots the official Proxmox VE installer with the selected disks attached to the VM. After the server reboots, the rescue system and the temporary VM are gone, and Proxmox VE runs on the physical server.
- Configure the public uplink, private guest network, package sources and management access before networking starts on the first physical boot.
- Support for many disk layouts.
- Choose BIOS or UEFI for the disks independently of how rescue booted. With ZFS, each disk's boot entries select the new pool by GUID, so another drive can hold a pool with the same name.
Installation
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.
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.
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. 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
From rescue to first login
After installing the CLI in rescue, start the guide in a
terminal. If the connection is unreliable, run it inside tmux.
pve-install-hetzner
-
Enter the node's fully qualified hostname and notification email. For root SSH access to the installed host, paste one public key from your workstation (for example, the line printed by
cat ~/.ssh/id_ed25519.pub) or choose its public key file in rescue. Check the displayed SHA-256 fingerprint. -
Review the grouped settings. Use ↑/↓ to highlight a setting such as Guest IPv4 subnet, then Enter to edit it. For Timezone, Enter keeps the current zone (initially
UTC). TypeEurope/Berlindirectly, search forBerlin, or enter?to browse the list. Choose Continue with these settings when ready. At the disk list, use Space to select disks in the intended order. Space again removes a disk. Check their models, serials and capacities, then press Enter to review. On a basic terminal, enter menu numbers and specify disk order with spaces or commas, for example2 1. -
Check disk health, mirror pairs for RAID10, the disk boot mode, management addresses and guest routing. Choose Show /etc/network/interfaces for the full configuration. Use Edit settings or Change disks to revise the plan. Compare drive warnings with the individual drive logs. Some controllers cannot report health for their member drives. A blocked plan exits before installation. For a Secure Boot warning, check the firmware and restart rescue after adjusting it.
-
Choose Continue installation when ready. Enter on Cancel exits. Set the root password for the Proxmox VE web UI. The installer prepares any missing native tools, verifies the ISO and asks you to type the displayed
ERASEphrase with the selected disk paths. Confirming authorizes overwriting the selected disks. Follow the installation in the serial log under/root/pve-console-*.log. -
When the installer reports success, reboot with
systemctl reboot. -
Open the web interface from your workstation and sign in as
root@pamwith the root password you set during installation. Use the address printed by the installer for the Web interface access mode you selected.-
Direct HTTPS (default). Open
https://SERVER_IP:8006/. If you filter incoming traffic, allow TCP 8006 from your administration network. -
Allowlist. Open the same HTTPS address from one of your configured source addresses or networks. You can also connect through the SSH tunnel.
-
SSH tunnel only. On your workstation, replace
~/.ssh/your-private-keywith the path to the private key matching the public key you supplied during installation. Leave the tunnel open and browse to https://localhost:8006/.ssh -i ~/.ssh/your-private-key -N -L 127.0.0.1:8006:127.0.0.1:8006 root@SERVER_IP
Replace
SERVER_IPwith the server's address. Root SSH requires your key in every mode. Rescue and the installed host have different SSH host keys. If SSH reports a change, verify the new fingerprint from the Hetzner KVM console withssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub. -
Scripted installation
Use a pve-install-hetzner answer file to share settings across servers.
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.
schema-version = 2
[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"
[network]
uplink-bridge = "wanbr01"
guest-bridge = "vmbr0"
guest-subnet = "192.168.20.0/24"
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.
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.
pve-install-hetzner install --answer-file pve01.toml
Set schema-version = 2 at the top of a new answer file. The wizard and
schema 2 use wanbr01 for the public uplink and vmbr0 for private guests
by default. Files with schema-version = 1 or no version keep the original
public vmbr0 and private vmbr1. To convert an existing file, load it with
plan --answer-file and save the reviewed settings with --save-answer-file.
The saved file uses schema 2 and records both bridge names explicitly.
- Host (
[host]) holdsfqdn,emailandtimezone. - Access (
[access]) takes eitherssh-public-keyorssh-public-key-file. Useroot-password-hash-fileorroot-password-filefor the root credential. Setweband, for theallowlistmode,web-allow-fromfor web access. - Storage (
[storage]) takes alayoutand an ordereddisksarray of whole-disk paths. Prefer the stable names under/dev/disk/by-id/. - Installation (
[installation]) holdstarget-firmware,repositoryand an optional localisopath. - Network (
[network]) holdsuplink-namefor the physical NIC,uplink-bridgeandguest-bridgefor the bridges,guest-subnetand optionalguest-ipv6. Choose distinct bridge names of up to ten ASCII letters, digits or underscores, starting with a letter. In[network.nic-pins], map each additional port's quoted MAC address to its installed name. The installer discovers the public addresses, gateways and uplink MAC in rescue.
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.
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
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.
Disk firmware and Secure Boot
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.
Hetzner UEFI guide
Keep Secure Boot disabled for a UEFI target. Hetzner documents that enabling
it prevents Robot rescue from starting. Use the standard Proxmox boot chain
with Secure Boot off. The UEFI installation uses
temporary EFI variables and checks the fallback loader at EFI/BOOT/BOOTX64.EFI
on each disk. Physical firmware decides whether to list these disks
automatically. A Secure Boot deployment would require a verified signed boot
chain on each member.
Hetzner Secure Boot guidance
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.
For a BIOS target, the installer checks the MBR bootstrap, the GPT BIOS boot partition and the GRUB configuration on each disk. In both modes it reads the ZFS boot entries back and checks that they select the installed pool's GUID. For LVM targets it reads the installed filesystem, GRUB configuration, kernel and initramfs directly from the selected disk.
Network and repository settings
| Setting | Installed configuration |
|---|---|
| Public uplink | The physical NIC carrying the rescue IPv4 default route is pinned by MAC to nic0. The public bridge (wanbr01 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. |
| Private guests | Attach guests to the private bridge (vmbr0 by default). The default subnet is 192.168.20.0/24, with gateway 192.168.20.1 and outbound IPv4 masquerading. Configure guest addresses and DNS statically. Set network.guest-subnet for a different RFC 1918 network. |
| Routed guest IPv6 | Set network.guest-ipv6 to a subprefix of the server's routed allocation that excludes the host address. Assign guests addresses from that prefix and use its first host address as their gateway. Inbound IPv6 is routable. Configure guest firewall policy before exposing services. |
| 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. |
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.
When restoring VMs or containers, match each guest NIC to the bridge role shown in the installation plan. Attaching guests to the public bridge puts their MACs on the provider network and requires the corresponding Hetzner IP/MAC configuration. For host or guest filtering, use the Proxmox firewall. On a remotely managed node, allow your administration source to reach SSH before enabling a default drop policy. Hetzner networking · Proxmox firewall
Compatibility
By default, the packaged installer downloads the Proxmox VE 9.3-1 ISO. The 9.3-1 and 9.2-1 images have passed BIOS and UEFI boot tests. The installer also recognizes the 9.1-1 image by checksum. That image remains untested. It recognizes the 9.0-1 checksum and stops before preparing that ISO. The native installer gained the interface-name pinning feature this tool requires in 9.1-1. Proxmox answer-file format changes
To use local amd64 installation media, set iso to its path in
[installation]. Both commands verify the local file by SHA-256
before preparing the installation media or writing to disks. You can rename
the ISO.
To use a fleet mirror, set PVE_INSTALL_HETZNER_ISO_BASE_URL to the HTTPS
directory containing the official ISOs under their original filenames. Use
the same environment for preview and installation.
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 full download URL. install fetches that ISO and verifies
the built-in SHA-256 for the selected release before erasing disks. A failed
download or checksum stops installation. A local installation.iso takes
precedence. Use a directory URL without credentials, a query or a fragment.
The earlier standalone installer was tested with Proxmox VE 8.2-1 in Debian 12 rescue VMs.
The installer translates the reviewed settings into the native Proxmox answer file for the ISO's serial installer and pre-network first-boot service. The repository also pins the rescue APT signing key. Proxmox automated installation · Official ISO and checksums
Verification and recovery
Post-boot checks
Run these commands on the installed node in an SSH session
(ssh root@SERVER_IP from your workstation) or in the Proxmox web shell.
pveversion
if test -d /sys/firmware/efi; then echo UEFI; else echo BIOS; fi
findmnt -n -o SOURCE,FSTYPE /
ip -br address
ip route
ip -6 route
ss -lnt
systemctl --failed
apt-get update
On a healthy installation, expect these results.
- The firmware check prints
BIOSorUEFIto match the selected disk boot mode. - For a ZFS root,
zpool status -P rpoolshows the selected layout with all intended membersONLINE. Useproxmox-boot-tool statusto list the boot partitions andlsblk -o NAME,MODEL,SERIAL,UUIDto match them to disks. - For an LVM root,
findmntshows the chosen filesystem on/dev/mapper/pve-root. Runlvs -o vg_name,lv_name,devicesto check its backing disk. ss -lntshows a wildcard listener on port 8006 for public or allowlisted HTTPS, or127.0.0.1:8006for SSH tunnel access. For an allowlist, check that HTTPS works from an allowed source and that another source is rejected.
Troubleshooting
Installation stopped or the node is unreachable
- The installer stopped. Check the error in the rescue terminal. If
installprinted a serial log path (/root/pve-console-*.log), inspect that file before rebooting. A fresh installation overwrites the selected disks. Check the selection again before retrying. - Proxmox booted, but SSH is unreachable. From the Hetzner KVM console, run
journalctl -b -u proxmox-first-boot-network-pre -u networking. Compare the MAC address of the pinned uplink and the routes on the public bridge with the installation plan. - First boot reports a ZFS root-pool error. The hook writes the network
and access settings before it pins the pool GUID for future kernel updates.
Inspect
journalctl -b -u proxmox-first-boot-network-pre. Once you have corrected the reported cause, runsystemctl 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.
- The mirror is missing from the boot menu. Check the firmware mode on the KVM console. For UEFI, confirm Secure Boot is disabled and follow the UEFI boot entry instructions.
To return to rescue, activate it again in Robot and reset the server. Save any rescue logs you need before rebooting. Files in rescue are temporary.
The boot prompt reports two matching pools
On a server with two pools named rpool, an initramfs error saying
more than one matching pool can come from an older disk's bootloader.
At the prompt, uname -r and cat /proc/cmdline show which kernel and root
argument actually started. Compare them with the new install's kernel and
numeric pool GUID. In the one-time boot menu, select each target disk by model
and port. Once both boot, put the two target disks first in the firmware's
local disk order and keep Hetzner network boot first overall. On the Fujitsu
D3401-H2 the local order is under Boot → Hard Disk Drive BBS Priorities.
The mirror disks are missing from the UEFI boot menu
If a UEFI-only boot menu lists network boot but neither installed disk,
boot Linux rescue itself in UEFI mode. On the tested D3401-H2, native
UEFI network boot used Advanced → Network Stack Configuration → IPv4 PXE
Support with the network stack enabled and Launch CSM disabled. Keep
Secure Boot disabled. Check /sys/firmware/efi exists in rescue
and identify each mirror disk by its serial number. On this installer's GPT
layout, partition 2 on each disk is the EFI System Partition. Inspect existing
firmware entries with efibootmgr -v and register each missing disk, using
its actual whole-disk path in place of the examples.
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, ordered
with IPv4 PXE first, then both mirror entries. Preserve any other entries you
still want available. Use efibootmgr --bootnext with one entry number to
test a particular disk for one boot. After reboot, check efibootmgr -v again.
On the tested Fujitsu, the firmware grouped the network entries together.
bootctl status identifies the EFI partition that loaded systemd-boot.
Debian efibootmgr manual
Contributing
See the contribution guide to report issues or submit changes. To report a vulnerability privately, follow the security policy.
Licensing, copyright
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
for the full text.
The 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. You can use
reuse spdx to create
an
SPDX software bill of materials (SBOM).
Trademarks
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, registered in Germany and the European Union, licensed to foundata GmbH.
Author information
This project was created and is maintained by foundata.
proxmox-pve-installer-hetzner is not associated with Proxmox Server
Solutions GmbH nor the official
Proxmox Virtual Environment (PVE)
project.
Metadata
Release files for pve-install-hetzner 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pve_install_hetzner-2.1.1.tar.gz | 70.3 kB | Without provenance | Details for pve_install_hetzner-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pve_install_hetzner-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for pve_install_hetzner-2.1.1-py3-none-any.whl |
Total release size: 137.5 kB
Release files / pve_install_hetzner-2.1.1.tar.gz
| Download URL | pve_install_hetzner-2.1.1.tar.gz |
|---|---|
| Size | 70.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe2af7c28ffdde4057bedf6a32cb245ff5460986471cff1bbe2b8ff4064e1574
|
|
BLAKE2b-256 checksum How to use checksums |
d2f542323c95bd421d25b662e6480882b2e5aad2511d53348c7e32bcad5a77a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pve_install_hetzner-2.1.1-py3-none-any.whl
| Download URL | pve_install_hetzner-2.1.1-py3-none-any.whl |
|---|---|
| Size | 67.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4a7a43e70d3946132e83f92af982de701cbe8e94ba799713e68f9d9b75dbbd2
|
|
BLAKE2b-256 checksum How to use checksums |
900ab566b1c076d5bddd88fd32384376b3da57a639302ec1fbf3a01909fb1f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pve-install-hetzner 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.