Skip to content

Latest commit

 

History

History
102 lines (81 loc) · 3.06 KB

README.md

File metadata and controls

102 lines (81 loc) · 3.06 KB

Raspbian Linux Kernel for Proxmox ARM64

This Repository is for all "Proxmox ARM64" Instances running on a Raspberry PI 4B.
You can use this pre-build Linux Kernel for better compatibility with Proxmox without building it your self.

Related

Proxmox-Port by jiangcuo
Proxmox-Arm64 by jiangcuo
RaspberryPi Kernel Sourcecode
OpenZFS Sourcecode

Features

  • RamDisk Boot
  • OpenZFS Support
  • KSM Kernel Support
  • VLAN Filtering

Installation

Download the newest Kernel Version (6.6.*)

wget -q --show-progress https://github.com/Rappelkiste98/raspberry-linux-pve/releases/download/6.6.31/linux-image-6.6.31-v8-pve+_arm64.deb &&
wget -q --show-progress https://github.com/Rappelkiste98/raspberry-linux-pve/releases/download/6.6.31/linux-headers-6.6.31-v8-pve+_arm64.deb

Install new Kernel Image

sudo apt install $PWD/linux-image-6.6.31-v8-pve+_arm64.deb

Install new Kernel Headers

sudo apt install $PWD/linux-headers-6.6.31-v8-pve+_arm64.deb

Configure new Bootloader settings for installed Kernel

mv /boot/vmlinuz-6.6.31-v8-pve+ /boot/firmware/
mv /boot/initrd.img-6.6.31-v8-pve+ /boot/firmware/

sudo nano /boot/firmware/config.txt

At File End add this Lines:
[pi4]
kernel=vmlinuz-6.6.31-v8-pve+
initramfs initrd.img-6.6.31-v8-pve+ followkernel

Configure old Bootloader settings for installed Kernel

sudo nano /boot/config.txt

At File End add this Lines:
[pi4]
kernel=vmlinuz-6.6.31-v8-pve+
initramfs initrd.img-6.6.31-v8-pve+ followkernel

Hold official RaspberryPi Kernel APT Packages (APT doesn't upgrade this Packages after this Settings)

sudo apt-mark hold raspberrypi-kernel raspberrypi-kernel-headers

Reboot your RaspberryPi and Check used Kernel

uname -r => 6.6.31-v8-pve+

FAQ

How can I check that the ZFS Module is installed?

sudo modprobe zfs => No Return Value is fine
sudo zpool --version => 'zfs-2.2.0-pve4 zfs-kmod-2.2.99-1'

How can I check that the KSM Module is installed?

sudo modprobe drm_kms_helper => No Return Value is fine
sudo cat /sys/kernel/mm/ksm/run => '0' Or '1' (KSM activates automatically at 70% RAM Usage)
sudo cat /sys/kernel/mm/ksm/pages_shared => '0' Or Bigger

How to activate KSM Features in Proxmox?

sudo apt install ksmtuned
sudo systemctl enable --now ksm.service
sudo systemctl enable --now ksmtuned.service

Troubleshooting

Raspberry Pi doesn't boot after Kernel installation

1. Take your Raspberry PI Boot-Device (USB HDD/SSD OR SD-Card) and connect it to another Computer
2. Open the "config.txt" on the Bootpartion
3. Uncomment the new attached Lines:
    #kernel=vmlinuz-6.1.58-pve+ initramfs
    #initrd.img-6.1.58-pve+ followkernel
4. Save "config.txt" and connect it to the Raspberry PI
5. Reboot Raspberry PI

Now the Default Raspbian Linux Kernel is used.