Don't miss out on new posts! Sign up for the Newsletter here:
Proxmox

Proxmox Update No Subscription Repository Configuration

If you are delving into running Proxmox VE for your home lab or other use cases and are coming from other hypervisors you may have been playing around with, like me, you may struggle a bit with some of the basics when getting started learning the platform. One of those tasks is updating Proxmox to the latest Proxmox VE version. Let’s take a look at how to update repositories and perform a dist upgrade to the latest version without having a Proxmox subscription.

Learn how to install Proxmox VE in VMware vSphere:

What is Proxmox VE?

Proxmox VE is an enterprise hypervisor that I have seen really gaining popularity among the home usage community and elsewhere as it provides a readily available and Proxmox works with most hardware that other hypervisors work with.

Proxmox VE is a complete open-source virtualization platform for enterprise virtualization. With PVE you can run virtual machines and even containers with your Proxmox VE installation.

It also includes a free Proxmox Backup Server that provides an enterprise backup solution for backing up and recovering your virtual machines, containers, and physical hosts, all in one solution.

Proxmox VE enterprise virtualization hypervisor
Proxmox VE enterprise virtualization hypervisor

You can learn more about and download Proxmox VE from here:

Why upgrade Proxmox VE?

Like any good lifecycle management, upgrading ProxMox VE is best practice. The last thing you want to do is neglect to upgrade your hypervisor platform that you are running your critical virtual machines and containers on. Performing a dist upgrade ensures getting the latest security and other updates for your Proxmox VE solution.

There are a couple of ways you upgrade your Proxmox VE installation, using the Proxmox web interface, or using the apt get update proxmox ve and apt get upgrade commands from the command line, either at the console or from an SSH connection.

Proxmox VE no subscription upgrade challenges

One of the challenges when starting off with Proxmox VE you may run into is Proxmox VE asks for a valid subscription to upgrade the platform. If you have a PVE no subscription installation, how do you perform a run disk upgrade on the hypervisor for non-enterprise use?

The good news is even if you have a non-licensed version, non-PVE enterprise installation that is not a paid version, you can still retrieve software upgrades on your non-enterprise version to update Proxmox.

Like all other Linux distributions, upgrades and updates pull from a repository. Proxmox VE by default is geared towards production use, and the update and upgrade repositories are pointed to the enterprise repository locations accordingly.

Default Proxmox VE upgrade settings

The default Proxmox VE upgrade settings point to enterprise repositories. So, when you run software upgrades using the run dist upgrade command you may see the error that you are running PVE no subscription.

No valid subscription configuration
No valid subscription configuration

This is because, by default, Proxmox VE points to the enterprise repo to pull down package lists. So, when you download and install Proxmox VE, it is set up for PVE enterprise and the PVE no subscription configuration is something you can introduce. Let’s work on the PVE no subscription repository subscription repository.

Update package database error
Update package database error

Proxmox Update No Subscription Repository Configuration

What steps are needed to pivot from the enterprise repository to a no subscription configuration with Proxmox VE? The enterprise repository is defined in the etc apt sources.list.d configuration file. The PVE no subscription repository configuration is defined in the repository files.

Proxmox 8 and higher

The files changed a little with Proxmox 8 and higher. Note the following changes you need to make:

#/etc/apt/sources.list.d/pve-enterprise.list

From: deb https://enterprise.proxmox.com/debian/pve bookworm enterprise
To: deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

#/etc/apt/sources.list.d/ceph.list
From: deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
To: deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription

Before Proxmox 8

The steps for setting up a PVE no subscription configuration is configured using the etc apt sources.list.d file found at:

/etc/apt/sources.list

Add the following line in the /etc/apt/sources.list file:

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Adding the pve no subscription line in the configuration file
Adding the pve no subscription line in the configuration file

Now, we just need to comment out a line in another file located here:

/etc/apt/sources.list.d/pve-enterprise.list

Editing the pve enterprise.list file
Editing the pve enterprise.list file

After editing and saving both of the above files, we need to run an apt-get update proxmox VE command at the command line.

Running an apt get update
Running an apt get update

After updating the repository with the non enterprise repo, we can perform a non pve enterprise repository upgrade using the command:

apt dist-upgrade

As you can see below, I have an upgrade that is available for the Proxmox VE server ready to install after configuring the upgrade to bypass the subscription requirement.

Running an apt dist upgrade command from the command line
Running an apt dist upgrade command from the command line

Proxmox VE upgrade FAQs

What is Proxmox VE?

Proxmox VE is an open-source server management platform for enterprise virtualization. It provides integration with the KVM hypervisor and Linux Containers (LXC), software-defined storage and networking functionality, on a single platform. You can use the web-based user interface to manage virtual machines, LXC containers, Proxmox clusters, or integrate disaster recovery tools.

Why am I getting a Proxmox subscription error about updates?

By default, Proxmox VE is pointed to the enterprise repositories which requires a subscription to perform updates. However, this is a minor configuration change to bypass the enterprise repo and point to the non enterprise repo for pulling down updates.

How do I configure Proxmox for the non enterprise repository?

There are essentially two files that you need to edit, the /etc/apt/sources.list file and the /etc/apt/sources.list.d/pve-enterprise.list file. After editing the files with the configuration listed above, you run an apt-get update and then the command apt dist-upgrade.

Is Proxmox free?

Yes, Proxmox is free to download and install in your environment. Additionally, as shown, you can change from the enterprise version of the update proxmox repository to the non enterprise version.

Wrapping Up

Proxmox VE is a great platform for the home lab or for enterprise use and provides many great capabilities to run virtual machines and containerized workloads in your environment. By editing just a few minor configuration files, you can easily bypass the requirement for the subscription when updating Proxmox VE installations with the latest upgrades. It allows keeping Proxmox installations up to date with the latest security patches and other upgrades from Proxmox.

10 Comments

  1. i can update my proxmox 7
    error massage is Temporary failure resolving ‘download.proxmox.com’

  2. A simpler and faster way to do all this is use the proxmox GUI.

    In the web-GUI navigate to your PVE node and go to Updates, Repositories.

    Select the “enterprise” repo at the bottom and disable it.

    Click “Add”, ignore the warning and add the “No-Subscription” repo, done!

  3. The UI was will just fix the superficial problem you have with reporting and of course hook up the right repo.

    If you want to do the upgrade, you need the `dist-upgrade` command to be run on the command line.

  4. Greetings! I did all this on my proxmox 6.2-4 server and when I run the apt-get update it gives me a bunch or errors:
    the following signatures could’t be verified becasue the public key is not available: NO_PUBKEY DD4BA3917E23BF59
    Reading Package Lists…Done
    N: Repository ‘http://ftp.us.debian.org/debian bullseye InRelease’ changed its ‘Version’ value from ‘11.4’ to ‘11.7’
    E: Repository ‘http://ftp.us.debian.org/debian bullseye InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’
    N: This must bne accepted explicityl before updates for this repository can be applied. See apt-secure(8) manpage for details.

    and a few more that I can’t copy and paste so I’m hoping I’ve typed enough of it to give an idea what I did wrong…

    Also, i tried running the apt dist-upgrade anyway, and it tells me
    E: You don’t have enough free space in /var/cache/apt/archives/.

    After that if I try to ‘refresh’ the updates form the GUI I get:

    starting apt-get update
    Ign:1 http://security.debian.org bullseye/updates InRelease
    Get:2 http://ftp.us.debian.org/debian bullseye InRelease [116 kB]
    Get:3 http://ftp.us.debian.org/debian bullseye-updates InRelease [44.1 kB]
    Err:4 http://security.debian.org bullseye/updates Release
    404 Not Found [IP: 151.101.210.132 80]
    Get:5 http://download.proxmox.com/debian/pve bullseye InRelease [2768 B]
    Err:5 http://download.proxmox.com/debian/pve bullseye InRelease
    The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DD4BA3917E23BF59
    Reading package lists…
    E: The repository ‘http://security.debian.org bullseye/updates Release’ does not have a Release file.
    E: Repository ‘http://ftp.us.debian.org/debian bullseye InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’
    E: Repository ‘http://ftp.us.debian.org/debian bullseye-updates InRelease’ changed its ‘Suite’ value from ‘stable-updates’ to ‘oldstable-updates’
    W: GPG error: http://download.proxmox.com/debian/pve bullseye InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DD4BA3917E23BF59
    E: The repository ‘http://download.proxmox.com/debian/pve bullseye InRelease’ is not signed.
    TASK ERROR: command ‘apt-get update’ failed: exit code 100
    (clearly that one did let me copy and paste)

    If I hit the ‘Upgrade’ button anyway, it ends with the same
    E: You don’t have enough free space in /var/cache/apt/archives/.

    As you’ve probably picked up by now, I know nearly nothing about linux (though more than I did yesterday) so i don’t know what that directory is or what to do about it or the other errors.

    If you have any recommendations or what to do I’d sure love to hear it.

    1. Mick,

      Thanks for the comments! The SPAM settings are fairly aggressive due to all the SPAMmers in the comments. However, your comments should appear now. I also had an error in my test environment related to disk space and I had to clear out some space on the root partition /. However, I was running my Proxmox host in a virtual machine in vSphere to test everything. You will probably need to clear out space it sounds like as well. You may have some rogue logs that are taking up quite a bit of space. Also, this may be causing some of the other errors up the chain. You can run the following to list out the largest files on your root partition:

      du -a / | sort -n -r | head -n 20

      Brandon

  5. I don’t know if I’m getting moderated or if the post I just spent 20 minutes posting is just gone, so I’m typing this comment to check…

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.