Skip to content

WMP/proxmox-hetzner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox
Hetzner
Stars


Install Proxmox on Hetzner and OVH Dedicated Server with QEMU

Prepare the rescue from hetzner robot manager

  • 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

Install requirements and Install Proxmox

wget https://github.com/WMP/proxmox-hetzner/raw/main/install-proxmox.sh
bash install-proxmox.sh --help
  • Install Proxmox and attention to these :
    • choose zfs partition type
    • choose lz4 in 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

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 rescue ssh:
reboot
  • After a few minutes, login again to your proxmox server with ssh on port 22 or the port you gave the install script.
  • Make sure to change the hostname file to reflect your public ip from hetzner.

Useful network configs

  • For private subnet append 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 subnet append 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 support append these lines to interface file :
    • You have to create a vswitch with ID 4000 in your robot panel of hetzner.
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

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

Login to Web GUI

https://IP_ADDRESS:8006/

Special Thanks

Ariadata Tteck

About

Install Proxmox-VE on Hetzner dedicated-server without KVM console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%