Projet

Général

Profil

Full install (kimsufi)

  1. Wipe disk
wipefs -a /dev/sda
  1. Write the image

If zstd available:

curl 'https://download.regdrasil.com/pve/pve-7.2-4k.zst' | zstdcat - | dd of=/dev/sda bs=4M

If not:

curl 'https://download.regdrasil.com/pve/pve-7.2-4k.gz' | gunzip -c - | dd of=/dev/sda bs=4M
  1. Fix MBR GPT
partprobe
gdisk /dev/sda
    w
  1. create 4GB of swap at the end of disk
gdisk /dev/sda
    n # New part
    4 # Part number
    first sector location: -4G # first sector
    <enter> # last sector
    Hex code : 8200 (Linux Swap)
    w
partprobe
  1. Fix network

If you have an 'eth0' interface:

udevadm info --export --query=property --path=/sys/class/net/eth0 | grep ID_NET_NAME_PATH
modprobe zfs
zpool import rpool -R /mnt -f
nano /mnt/etc/network/interfaces

Replace eno0 with your systemd network interface name

auto lo
iface lo inet loopback

iface eno0 inet manual

auto vmbr0
iface vmbr0 inet static
        address <ipv4>/24
        gateway <gateway>.254
        bridge_ports eno0
        bridge_stp off
        bridge_fd 0
  1. Optional: copy your public ssh key to /mnt/root/.ssh/authorized_keys (not working)
  1. Export the zfs pool
zpool export rpool
  1. Reboot to your new proxmox
reboot
  1. extend disk space
parted /dev/sda resizepart 3 100%
partprobe
zpool online -e rpool <partition>
  1. change hostname/dns

https://pve.proxmox.com/wiki/Renaming_a_PVE_node