Guide to Setup Proxmox Backup Server VM and ZFS on Raspberry Pi #182
Anexgohan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Instructions to get Proxmox Backup Server and ZFS working on a VM.
Tested on Raspberry Pi 5 8gb model, should work on others aswell as long as they are arm64 support.
Links:
Proxmox Backup Server Documentation
Guide and Discussion thread
Brainstormin thread - closed for now
You need a VM running in Proxmox VE.
Tested for Debian & Ubuntu VMs.
Cloud Image Sources
Get cloud images from here:
Debian
Ubuntu
A). Raspberry Pi 5 Host Setup
This section is performed on the Raspberry Pi 5 host.
Raspberry Pi 5 should use the Kernel with 4K pagesize:
If the container summary memory usage and swap usage always shows 0, please modify
cmdline.txt
.Recently RPi 5 updates moved this file to:
Old file location (use whichever works for you):
Put the following parameters to the end of the line:
B). VM Shell Setup
Everything after this point is done in the VM's shell.
Make the VM using Proxmox GUI or baremetal.
host
.OVMF (UEFI)
.Default
. VersionLatest
, vIOMMUDefault (None)
.Default
orVirtIO-GPU
with 8MB of video memory.virtio-scsi-single
.virtio (paravirtualized)
.Install Utilities
Install some essential tools and optional utilities:
(Everything after
curl
is optional)ifupdown2
is needed for Debian if you have network issues. Install it withapt install ifupdown2
.Only install
ifupdown2
after trying basic troubleshooting; this will either completely fix or completely break your VM's networking.apt update && \ apt install nano wget curl openssh-server rsync bash-completion parted usbutils pciutils qemu-guest-agent -y
Setup Repositories
Add Non-Free Source (Debian)
Install Proxmox Backup Server
apt update && \ apt install proxmox-backup-server
Then reboot:
If you encounter any error, or if some package does not install, or if you get an
ifupdown2
error, reboot and runapt install proxmox-backup-server
again.If the update fails due to being unable to reach repositories or a "Failed to fetch" error, then disable the enterprise repository as shown below.
Disable Enterprise Repository
The enterprise repository will halt
apt
updates if you don't have a subscription.sed -i 's/^/#/' /etc/apt/sources.list.d/pbs-enterprise.list
Add Kernel Repository
Search for Kernel Headers (Raspberry Pi 5)
This should give you a long list of
pve-kernel-*
Proxmox PVE Kernel Images available.Install Kernel Headers (Raspberry Pi 5)
This will take a long while and may feel like it's stuck or crashed, but it's working in the background. Be patient.
On my RPi 5 with a 2-core, 2GB RAM VM, it takes approximately 5-10 minutes.
You can install the latest generic kernel or openeuler version available for arm64 architecture.
or
You can also install newer versions; 6.6 openeuler was the latest at the time of writing.
Use this to list available generic arm64 kernels:
Disable Kernel Repository
You may want to disable this if you do not wish to perform kernel updates.
Also, the 'Sid' suite should not be used in production environments. Kernel updates can induce instability if done improperly, so be careful.
sed -i 's/^/#/' /etc/apt/sources.list.d/kernel-port-sid.list
Setup ZFS
This will take a long while and may feel like it's stuck or crashed, but it's working in the background. Be patient.
On my RPi 5 with a 2-core, 2GB RAM VM, it takes approximately 10 minutes.
apt update && apt install dpkg-dev zfs-dkms zfsutils-linux -y
Reboot (a simple 30-60 second reboot can save you a lot of headache and hours of troubleshooting):
If this command does not throw an error, your ZFS is good to go:
Final Update and Upgrade
apt update && apt full-upgrade -y
Clean Up
Remove broken and unnecessary leftovers:
Accessing Proxmox Backup Server
Get the VM's host IP address:
Or with a filter:
Log in to PBS via your browser:
https://<ip-address-of-VM>:8007/
Final Notes:
USB Disk Pass-Through:
Pass any disk by passing the entire USB port to the VM from the Proxmox VE GUI.
Proxmox VE GUI
>Select the VM
>Hardware
tab.USB Device
.Note:
No SMART data will be available inside the VM, monitor the disk health from the Proxmox VE GUI.
NVME Disk Pass-Through:
In case of using NVME drives with an expansion board like pimoroni's NVME board.
find the /dev/disk/by-id/ path of the NVME disk you want to pass through.
Then add the disk to the VM configuration file.
Add the following line to the VM configuration file:
Note:
No SMART data will be available inside the VM, monitor the disk health from the Proxmox VE GUI.
Now you can use ZFS inside PBS and get the awesomeness that is ZFS and Deduplication.
Beta Was this translation helpful? Give feedback.
All reactions