If you have recently dove into the Proxmox VE world, your mind is probably blowing chunks. Proxmox gives you the unmatched ability to run hypervisor-like Virtual Machines, as well as containers, side by side with High Availability. It’s an amazing virtualization platform and if you haven’t tried it out yet I highly recommend you do so. After installing Proxmox 4.2 on one of my lab servers, I found the need to update it and I wasn’t about to pay for an Enterprise Subscription for my home lab.
How to update Proxmox when “You do not have a valid subscription for this server, please visit www.proxmox.com to get a list of available options” and keep you Proxmox server updated!”
There are a few steps involved and they go something like this:
- Disable the enterprise repository that is configured by default
- Add the no-subscription repository
- Update apt so it knows what can be updated
- Use apt to upgrade any packages
- Upgrade the entire distribution, using apt, of course
First, lets disable the enterprise repository. You can’t run apt-get update by default without a subscription, you will get an error. So, lets comment out that repo so it isn’t checked. Go ahead and putty / ssh / console into your Proxmox server, and run the following command:
sed -i.bak 's|deb https://enterprise.proxmox.com/debian jessie pve-enterprise|\# deb https://enterprise.proxmox.com/debian jessie pve-enterprise|' /etc/apt/sources.list.d/pve-enterprise.list
Now, we need to add the no-subscription repo to /etc/apt/sources.list.d/pve-no-sub.list
# echo "deb http://download.proxmox.com/debian jessie pve-no-subscription" > /etc/apt/sources.list.d/pve-no-sub.list
If you want to know more about the repo we just added, head on over to https://pve.proxmox.com/wiki/Package_repositories
Now, it’s just a matter of running apt-get update and apt-get upgrade, list like you would on any Debian based Linux distribution. So, first run an update.
# apt-get update
After that finishes, you <strong>shouldn’t get any errors</strong> such as unable to download. Now we will run <strong>apt-get upgrade</strong> to upgrade all packages.
# apt-get upgrade
Select “Y” and hit enter, then it will start download and installing all package updates available.
Once the upgrade is complete, go ahead and reboot your Proxmox VE server.
# shutdown -r now
All done! Your Proxmox server is now up-to-date and in the future, you can just run apt-get update & apt-get upgrade to make sure all of your packages are current. If you have any questions, feel free to ask in the comments below. Thanks and have a great day!