Outils pour utilisateurs

Outils du site


linux:proxmox-sur-hetzner

Ceci est une ancienne révision du document !


Hetzner Proxmox & ZFS

Installation

  1. En mode rescue, se connecter en SSH et introduire la commande
    installimage
  2. Choisir Other

  1. Puis Proxmox Bullseye

  1. Dans le fichier de configuration
    1. Modifier le hostname
    2. Réaliser une partition de la sorte:
      PART swap swap    4G
      PART / ext4  50G
    3. Supprimer les lignes PART et LV plus bas
  2. Procéder à l'intallation et redémarrer
  3. Installer zfs:
    apt install zfs-dkms zfsutils-linux
  4. Créer une nouvelle partition vierge
    fdisk /dev/nvme0n1
  5. Créer le pool zfs sur le UI de Proxmox PVE

Réseau en routed

auto vmbr100
iface vmbr100 inet static
        address 172.31.32.1/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        post-up   iptables -t nat -A POSTROUTING -s '172.31.32.0/24' -o vmbr0 -j MASQUERADE        
        post-down iptables -t nat -D POSTROUTING -s '172.31.32.0/24' -o vmbr0 -j MASQUERADE
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp --dport 3389 -j DNAT --to-destination 172.31.32.2:3389
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p udp --dport 3389 -j DNAT --to-destination 172.31.32.2:3389
        post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to-destination 172.31.32.2:3389
        post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to-destination 172.31.32.2:3389

   69  nano /etc/sysctl.conf
   70  sysctl -w net.ipv4.ip_forward=1

Connecter un drive hetzner en samba samba

In the Proxmox GUI, create a new Storage with the following config:

ID: Name of your Storage Server: u301XXX.your-storagebox.de Username: u301XXX-sub1 Password: XXX Share: u301XXX-sub1

Sources

linux/proxmox-sur-hetzner.1656237880.txt.gz · Dernière modification : de root