Outils pour utilisateurs

Outils du site


linux:proxmox-sur-hetzner

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
linux:proxmox-sur-hetzner [2021/10/24 04:58] – créée rootlinux:proxmox-sur-hetzner [2024/12/29 19:51] (Version actuelle) – [Installation] root
Ligne 1: Ligne 1:
-modifier hosts hostname+====== Hetzner Proxmox ZFS ======
  
-curl -#o /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg  http://download.proxmox.com/debian/proxmox-release-bullseye.gpg+===== Installation =====
  
-echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list+  - En mode rescue, se connecter en SSH et introduire la commande <code bash>installimage</code> 
 +  - Choisir Other  
 +    {{:linux:pasted:20220414-210910.png}} 
 +  - Puis Proxmox Bullseye 
 +    {{:linux:pasted:20220414-210929.png}} 
 +  - Dans le fichier de configuration 
 +    - Modifier le hostname 
 +    - Réaliser une partition de la sorte: <code>PART  /boot  ext3  1024M 
 +PART  lvm    vg0    60G 
 +LV  vg0  root      ext3  50G 
 +LV  vg0  swap  swap  swap   10G</code> 
 +    Supprimer les lignes PART et LV plus bas 
 +  Procéder à l'intallation et redémarrer 
 +  - Installer zfs: <code bash>apt install zfs-dkms zfsutils-linux</code> 
 +  - Créer une nouvelle partition vierge <code bash>fdisk /dev/nvme0n1</code> 
 +  Créer le pool zfs sur le UI de Proxmox PVE
  
-apt update              +===== Réseau en routed =====
-apt dist-upgrade +
  
-apt purge firmware-bnx2x firmware-realtek firmware-linux-free +<code>auto vmbr100 
-apt-get install proxmox-ve +iface vmbr100 inet static 
- +        address 172.31.32.1/24
-nano /etc/network/interfaces +
- +
-auto vmbr0 +
-#private sub network +
-iface vmbr0 inet static +
-        address  172.31.32.1/24+
         bridge-ports none         bridge-ports none
         bridge-stp off         bridge-stp off
         bridge-fd 0         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</code>
 +  
 +===== 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**
 +
 +===== Forcer les disques à être en GPT =====
 +On peut forcer les disques à être en GPT, même si la taille ne le permet pas en rajoutant
 +"FORCE_GPT 1" dans le fichier installimage
  
-        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward +===== Sources ===== 
-        post-up   iptables -t nat -A POSTROUTING -s '172.31.32.0/24' -o enp2s0 -j MASQUERADE +  * https://stanislas.blog/2018/04/setup-zfs-pool-debian-hetzner
-        post-down iptables -t nat -D POSTROUTING -s '172.31.32.0/24' -o enp2s0 -j MASQUERADE+  * https://github.com/okleinschmidt/hetzner-installimage/blob/master/functions.sh
  
-https://pve.proxmox.com/wiki/Network_Configuration 
-https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve#step-1---installation 
linux/proxmox-sur-hetzner.1635051518.txt.gz · Dernière modification : (modification externe)