Proxmox LXC PBS

Proxmox Backup Server is flexible and can be installed on any device running Debian, a VM or a LXC. Here I show my Proxmox LXC setup. Having PBS on the PVE is making use of the large and fast SSD ZFS RAID 10 storage.

Share
Proxmox LXC PBS

Preparation

  • Create a Bridge for the LXC to use. On bond0 I have vbr0 with my main IP.
  • Create a user pbsbackup and set the privileges according to your security plan

If you want to use a TrueNAS LXC, see my blog post TrueNAS LXC PBS or VM, see my other post, TrueNAS VM PBS

Create a new LXC for PBS

Using the Debian 13 template, create a new LXC Container with the default Debian Trixie Image, use 2 cores, 2 GiB RAM and 8 GiB disk or more (this is minimum).

PBS Installation

We need to update and upgrade the CT. Then, add nano/vim, sudo, wget and all the others you like, then add a file, /etc/apt/sourses.list

Run these Commands in the LXC shell.

Update the packages

sudo apt-get update && sudo apt-get dist-upgrade -y

Add apps

sudo apt install nano sudo wget -y

Add the PBS-No-Subscription repository

deb http://ftp.debian.org/debian trixie main contrib
deb http://ftp.debian.org/debian trixie-updates main contrib

# Proxmox Backup Server pbs-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pbs trixie pbs-no-subscription

# security updates
deb http://security.debian.org/debian-security trixie-security main contrib

You will need to add the official GPG keys by running the following command

wget https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-trixie.gpg

Afterward, you should run the update and upgrade commands

sudo apt update && apt upgrade -y

Installing the PBS package

Run the following command to install the PBS package

apt install proxmox-backup

Reboot the LXC systemctl reboot

Installation is now Complete

You should now be able to access your Proxmox Backup server at

https://{container ip}:8007

To add a bind mount point

pct set 100 -mp0 /host/dir,mp=/container/mount/point

See more in the wiki: (bind mount points)


Removing the Nag Screen

echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data\.status.*{/{s/\!//;s/active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" >/etc/apt/apt.conf.d/no-nag-script
⚠️
Using this, or any other script, requires you to:
- read the code before executing
- fully understand what the script is trying to do
- fix any issues, including security issues, on your own



References

PBS [1] LinuxContainers [2]


  1. Proxmox Backup Server homepage, Features, System Requirements,
    Download, Get Started, Installation Guide ↩︎

  2. LinuxContainers homepage. Security of LXC ↩︎