/pimox7

Proxmox V7 for Raspberry Pi

Primary LanguageShell

Pimox - Proxmox V7 for the Raspberry Pi

Pimox is a port of Proxmox to the Raspberry Pi allowing you to build a Proxmox cluster of Rapberry Pi's or even a hybrid cluster of Pis and x86 hardware.

Requirements

  • Raspberry Pi 4
  • Internet connection via ethernet

Install from "scratch", RPiOS64bit Interactive Automatic Installer

  1. Flash and startup the latest image from https://downloads.raspberrypi.org/raspios_arm64/ .
  2. sudo -s
  3. curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh
  4. chmod +x RPiOS64-IA-Install.sh
  5. ./RPiOS64-IA-Install.sh
  6. Follow the prompts

Manual installation

DO THIS FIRST

To install pimox on top of 5.15 kernel, you need to install zfs 2.1
To achieve that, you need

first to install linux-headers matching your kernel

sudo apt-get install raspberrypi-kernel-headers

then to configure apt to use bullseye-backports repo as documented here https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/index.html#installation
apt install zfs-dkms/bullseye-backport
# apt install zfsutils-linux/bullseye-backport

apt install zfs-zed/bullseye-backport
Result can be checked

apt list | grep zfs | grep installed
libzfs4linux/bullseye-backports,now 2.1.5-1bpo11+1 arm64 [installed,automatic]
zfs-dkms/bullseye-backports,now 2.1.5-1bpo11+1 all [installed]
zfs-zed/bullseye-backports,now 2.1.5-1bpo11+1 arm64 [installed]
zfsutils-linux/bullseye-backports,now 2.1.5-1bpo11+1 arm64 [installed]

Then there is another similar trick to solve with ceph-dkms dependecy.
this package needs to be compiled as root on your system https://github.com/pimox/ceph-dkms

Prechecks

  1. Pre-installed Debian Bullseye based 64-bit OS (not 32bit)
  2. In /etc/network/interfaces, give the Pi a static IP address. You cannot use dhcp.
  3. In /etc/network/interfaces, remove any IPv6 addresses.
  4. In /etc/hostname, make sure the Pi has a name.
  5. In /etc/hosts, make sure this hostname corresponds to the static IP you previous set.
  6. Make sure the kernel-headers are installed.

Installation

  1. echo "deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/" > /etc/apt/sources.list.d/pimox.list
  2. curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add -
  3. apt update
  4. apt install proxmox-ve (use a local attatched console! Network connections will be lost/reset during installation progress)

Notes

  1. This repo just contains the precompiled debian packages. The original Proxmox sources can be found at https://git.proxmox.com
  2. The (very minimally) patched sources to rebuild this can be found at https://github.com/pimox