Proxmox Backup Server 2

Installing Proxmox Backup Server (PBS) on an LXC Container provides many benefits.

  • Firstly, it saves space as an LXC does not need the full resources that a Virtual Machine (VM) does.
  • Secondly, it makes maintenance easier as you can move the PBS container to another Proxmox Installation if you ever need to shut it down.

Let’s get started!

Create a new LXC container


When creating an LXC container, you will need to use a template.

Template Screen

You can download a template by

  1. Clicking on a Storage location
  2. Selecting “CT Templates”
  3. Clicking Templates button
  4. Searching for the desired template
Debian Template in Proxmox

You can use the debian-11-standard template from Proxmox but I prefer using Turnkey templates wherever possible for automatic updates, etc.

Turnkey-Core Template

Either one will work as they are based on Debian, but for this guide, I will be using turnkey-core.

Create the LXC container using the template

According to the Official Documentation, the minimum requirements are as follows:

Minimum Server Requirements, for Evaluation

These minimum requirements are for evaluation purposes only and should not be used in production.

  • CPU: 64bit (x86-64 or AMD64), 2+ Cores
  • Memory (RAM): 2 GB RAM
  • Hard drive: more than 8GB of space.
  • Network card (NIC)

General Tab

Create: LXC Container General Tab

Put in your desired CT ID, Hostname, and Password

Template Tab

Create: LXC Container Template Tab

Select the desired template that you downloaded before

Disks Tab

Create: LXC Container Disks Tab

Select the LXC storage location and the disk size you want


Create: LXC Container CPU Tab

The minimum requirements state 2 Cores, but you can assign as many CPU cores as you wish.

Memory Tab

Create: LXC Container Memory Tab

Next, you can assign the amount of RAM you would like this container to have. I am giving it 2 GB RAM as per the minimum requirements.

Network Tab

Create: LXC Container Network Tab

Next, input your Gateway IP and you can assign the container a static IP if you wish. I like to give it the same as the Container ID for ease of reference.


Create: LXC Container DNS Tab

I usually leave these as default but you do you!

Confirm Tab

Create: LXC Container Confirm Tab

Now that you validated your parameters, you can click Finish and it will create the container!

Container Setup

Start your container and log in as root using the password you defined earlier.

Proxmox LXC container start

TurnKey First boot configuration

If you used the turnkey template, then you should be greeted with this screen. If not then feel free to skip to the next section.

TurnKey Linux - First boot configuration - Initialize Hub Services

For TurnKey installations, I like to do the Skip, Skip, Install approach. This means we will skip the Initialize Hub services

TurnKey Linux - First boot configuration - System Notifications and Critical Security Alerts

Skip the System Notifications and Critical Security Alerts

TurnKey Linux - First boot configuration - Security updates

Then install the Security updates. You can do as you wish but I recommend installing the latest security patches before going to the next step.

TurnKey Linux - First boot configuration - application services menu

Once completed, you will get this menu, and you can hit ENTER to enter the Advanced Menu

TurnKey Linux - First boot configuration - Advanced Menu

You can now use the arrow keys to go down to Quit and hit enter

Then hit Enter to quit

Installing PBS

Update Dependencies

Run the following commands to update your packages

apt update
apt upgrade -y

When you see screens like this, I like just to hit ENTER and select the default

Configuring the Debian Package Repositories

You will need to create a new file in /etc/apt/sources.list (ex. vim /etc/apt/sources.list) and paste the following:

deb bullseye main contrib
deb bullseye-updates main contrib

# Proxmox Backup Server pbs-no-subscription repository provided by,
# NOT recommended for production use
deb bullseye pbs-no-subscription

# security updates
deb bullseye-security main contrib

Next, you will need to add the official GPG keys by running the following command:

wget -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

Afterward, you should be able to run the commands

apt update
apt upgrade -y

Installing the PBS package

Run the following command to install the PBS package

apt install proxmox-backup

Installation Complete!

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

https://{container ip}:8007

(Note the https)


The following signatures couldn’t be verified…

If you get these errors when updating or installing the package, then you did not install the correct GPG key. Please follow the instructions above again

Get:10 bullseye InRelease [2675 B]
Err:10 bullseye InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD4BA3917E23BF59
Reading package lists... Done
W: GPG error: bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD4BA3917E23BF59
E: The repository ' bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Follow this documentation for more information:

E: Unable to locate package proxmox-backup

Make sure to update your packages:

apt update
apt upgrade -y

Otherwise, you either did not update the /etc/apt/sources.list file correctly or you did not install the GPG key correctly. Please follow the instructions above and try again


Once you have set up your Proxmox Backup Server, you are all set to start backing things up! I’ll try to write a more in-depth guide on how to use PBS soon so stay tuned! I hope you enjoyed this guide on how to install Proxmox Backup Server on an LXC Container.

If you liked this guide please give it a share! (It helps a bunch <3)

If you are interested in more content like this, please check out the links below:

Thanks for reading and Happy Hacking!

About Author

4 thoughts on “Install Proxmox Backup Server 2 on an LXC Container

  1. With the new release of Proxmox VE and PBS on Debian 12, do you have any recommendations on what security keys and repositories we should use?

  2. Thanks for the walkthrough installing PBS as a CT.
    I successfully installed PBS 8 but can’t seem to be able to NFS-mount anything from the (unprivileged) container.
    For example the following :
    # mkdir /pbs
    # mount /pbs

    Fails with “access denied”. I think it relates to the fact that user “root” in a CT is remapped to another user on the host system. Is there a solution to this?

    1. Hey Fab, for unprivileged containers, you would need to first mount the NFS share to a folder on the host (ex. /mnt/share) then bind mount that folder to the container and do some uid/gid mapping. Here’s a post that goes more into detail about this process:
      Otherwise, if you use a privileged container, you should be able to mount the NFS share directly.

      I haven’t found an “easy” way to accomplish this using an unpriviledged container yet. I ended up scrapping it and doing something else, but if I do find a way. I’ll let you know!

Leave a Reply

Your email address will not be published. Required fields are marked *