WMP / proxmox-hetzner

Install Proxmox-VE on Hetzner dedicated-server without KVM console
3 stars 1 forks source link

Proxmox
Hetzner
Stars


Install Proxmox on Hetzner Dedicated Server with QEMU

Prepare the rescue from hetzner robot manager

Install requirements and Install Proxmox

wget https://github.com/WMP/proxmox-hetzner/raw/main/install-proxmox.sh
bash install-proxmox.sh --help

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

Useful network configs

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
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
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

Post Install

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 -u

Login to Web GUI

https://IP_ADDRESS:8006/

Special Thanks

Ariadata Tteck