- Select the Rescue tab for the specific server, via the hetzner robot manager
-
- Operating system=Linux
-
- Architecture=64 bit
-
- Public key=optional
- --> Activate rescue system
- Select the Reset tab for the specific server,
- Check: Execute an automatic hardware reset
- --> Send
- Wait a few mins
- Connect via ssh/terminal to the rescue system running on your server
wget https://github.com/WMP/proxmox-hetzner/raw/main/install-proxmox.sh
bash install-proxmox.sh --help- Install Proxmox and attention to these :
- choose
zfspartition type - choose
lz4in compress type of advanced partitioning - do not add real IP info in network configuration part (just leave defaults!)
- close VNC window after system rebooted and waits for reconnect
- choose
After installer reboots QEMU, the script will automaticaly configure network vmbr0 for a bridged network. It will also run the Post Install Script
If you enable ACME make sure to pass an email with -e, --acme-email EMAIL
- Reboot main
rescuessh:
reboot- After a few minutes, login again to your proxmox server with ssh on port
22or the port you gave the install script. - Make sure to change the hostname file to reflect your public ip from hetzner.
For a fully unattended installation without VNC interaction, use the --automated-install flag:
bash install-proxmox.sh --automated-install --proxmox-version 9 \
--pve-fqdn pve.example.com \
--pve-email admin@example.com \
--pve-root-password SecurePass123 \
--pve-filesystem zfs --pve-zfs-raid raid1 \
--pve-disk-list sda,sdb --yesThis uses the Proxmox auto-install-assistant to generate an answer file and create a custom ISO. VNC is available for optional monitoring during installation.
Tested on:
- Proxmox VE 9.1 on OVH Advanced-1
- For
private subnetappend these lines to interface file :
auto vmbr1
iface vmbr1 inet static
address 192.168.20.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '192.168.20.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.20.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1- For
public subnetappend these lines to interface file (first-Usable-IP/subnet)
auto vmbr2
iface vmbr2 inet static
address first-Usable-IP/subnet
address first-Usable-IP/subnet
bridge-ports none
bridge-stp off
bridge-fd 0- For
vlan supportappend these lines to interface file :- You have to create a vswitch with ID
4000in your robot panel of hetzner.
- You have to create a vswitch with ID
auto vlan4000
iface vlan4000 inet static
address 10.0.1.5/24
mtu 1400
vlan-raw-device vmbr0
up ip route add 10.0.0.0/16 via 10.0.1.1 dev vlan4000
down ip route del 10.0.0.0/16 via 10.0.1.1 dev vlan4000- Limit ZFS Memory Usage According to This Link
echo "options zfs zfs_arc_min=$[6 * 1024*1024*1024]" >> /etc/modprobe.d/99-zfs.conf
echo "options zfs zfs_arc_max=$[12 * 1024*1024*1024]" >> /etc/modprobe.d/99-zfs.conf
update-initramfs -uhttps://IP_ADDRESS:8006/