How To Install Proxmox on Ubuntu (The only way…)


Proxmox might not be the most popular solution to create a virtualization server, but it’s a compelling alternative if you aren’t happy with the alternatives. Proxmox is based on Debian, and it’s recommended to create a new server with it, not install it over another distribution. The documentation explains how to install it on Debian, but not on Ubuntu. I created this article to show you how to install it while keeping your Ubuntu system on your server.

Proxmox can’t be installed directly on Ubuntu, it’s only possible to install it directly on the disk or as a package on Debian. The only way to make it work on an Ubuntu server is to run it in a virtual machine.

Yes, I know, hosting a virtual machine to run a system that will host virtual machines. It’s a bit weird, but if you absolutely need to keep your current Ubuntu server and can’t install Proxmox on another one, it’s the only solution I was able to find for you.

I answer your questions - Raspberry...
I answer your questions - Raspberry Pi FAQ

Proxmox Installation: The Recommended Method

Download the Pi Glossary!
If you are lost in all these new words and abbreviations, request my free Raspberry Pi glossary here (PDF format)!

The Proxmox installation guide recommends installing Proxmox on a bare-metal server, not as a package on an existing operating system. They also offer a solution to install it as a Debian package, as Proxmox is based on Debian, but it doesn’t work on other distributions.

That would be your best option. That kind of server is generally critical, as they may host several virtual machines running important applications for your company or network. Having too many layers will eventually lead you to experience various problems, not directly related to Proxmox, but to your operating system or virtual machine solution.

Think twice before you do something you might regret.

I understand that installing it on an existing Ubuntu server might be your only choice, and I will explain how to do this in the next part, but take the time to think about it seriously first. If you just want to give it a try, it’s ok (even if I would not test it on a production server), but if you will use it on production as a virtual machine on your existing Ubuntu server, please take the time to think about other alternatives.

Raspberry Pi Bootcamp
Sale: 10% off today.
Take it to the next level.
I'm here to help you get started on Raspberry Pi.
Learn all the skills you need in the correct order.

For example, a better move is probably to install Proxmox directly on the server, and then create a new Ubuntu virtual machine to host the current services and applications you have on your Ubuntu server. Ideally, using a second server during the migration if you can afford it. Ultimately, you’ll get a much cleaner solution than the one I will explain ahead.

Another option could be to switch from Ubuntu to Debian and install Proxmox as a package on your Debian server. This is a supported installation method, you can find the step-by-step tutorial on the official website. I tried it on Ubuntu, it doesn’t work as there are too many broken dependencies:

Thanks to all my Patrons for supporting me, helping me to keep doing this and producing even more tutorials for everyone! Thank you to everyone supporting me there.

Proxmox Installation On An Existing Ubuntu Server

Get My Cheat Sheet!
Grab your free PDF file with all the commands you need to know on Raspberry Pi!

Here are the required steps to install Proxmox on Ubuntu:

  • Update your system and check the requirements.
  • Install virt-manager to hot your Proxmox virtual machine.
  • Create a new virtual machine with Proxmox.
  • Use the Proxmox web interface.

I will now explain all these steps in detail. I’m doing this on Ubuntu Desktop.

If you are using an Ubuntu server, you’ll need to find a way to do the same without an interface, but it starts to become really weird to install something like cockpit to manage virtual machines and then install Proxmox on it, so I’m guessing you’re on a desktop version of Ubuntu.

Prepare your Ubuntu system

Note: if you are hosting critical applications or files on your server, make sure to create a full backup first. Even if this tutorial shouldn’t break anything on your system, you might as well be careful.

As with most projects, it’s recommended to update your system first.

Start with the following commands in a terminal:
sudo apt update
sudo apt full-upgrade

Master your Raspberry Pi in 30 days
Sale: 10% off today.
Download the eBook.
Uncover the secrets of the Raspberry Pi in a 30 days challenge.
Learn useful Linux skills and practice multiples projects.

If some important apps on your server are updated with this command, make sure everything still works correctly before moving to the next step.

Install virt-manager on Ubuntu

On Ubuntu with Desktop, using virt-manager is the easiest way to create virtual machines. You can install it easily by typing this command in a terminal:
sudo apt install virt-manager

Virt-manager will then be available in your applications list. You need to reboot your system to get everything working correctly, if not, you’ll get this error:
unable to connect to libvirt qemu ///system

If you can’t reboot the server, run virt-manager as root with:
sudo virt-manager
It will fix everything for you.

Download Proxmox

Once everything is ready on your system, you can visit the Proxmox website and download the latest ISO file. Here is the direct link where you’ll find them.

The latest version should be the first one displayed. Click on the “Download” button and wait a few minutes to get the file on your server.

As you can see on my screenshot, the file is about 1 GB, so the download time will depend on your Internet connection speed.

Create a new virtual machine to host Proxmox

You can now open the “Virtual Machine Manager” that we installed in a previous step. You’ll find it in your applications.

Master Python on Raspberry Pi
Sale: 10% off today.
Get the eBook.
Do more with your Raspberry Pi, learn the useful concepts and take the shortcuts.
You miss half of the fun of using a Raspberry Pi if you don’t know anything about Python.

Follow these steps to create a virtual machine running Proxmox:

  • Click on the first icon, “Create a new virtual machine”.
  • Keep the default selection, and continue with a “Local install media”.
  • Browse to select the ISO file you just downloaded, and select Debian 10 in the operating system list.
    It won’t find it automatically.
  • Adjust the memory and CPU settings.
    Proxmox requires 2 GB for the main system. Then add as much memory as your additional virtual machines will need.
    For example, if you’ll create a virtual machine with 8 GB, you need to create your VM with at least 10 GB.
    Same thing for the CPU, 1 is enough for Proxmox, add more depending on your virtual machines requirements.
  • Create a disk image for the virtual machine (the default 20 GB is fine for Proxmox).
    I recommend adding new disks for your VM, instead of keeping everything on the same one.
  • Name the virtual machine to complete the wizard.

You can now start the virtual machine, and continue the installation like you were doing this directly on your disk.
The following boot menu will show up:

Select “Install Proxmox VE” and follow the wizard to complete the installation. It will ask you to create an account, make sure to remember it as you’ll need it to access the web interface.

After a few minutes, a success message appears, giving you the web interface URL.
One last reboot is required, so wait a few seconds before trying to access this URL.

Access the Proxmox web interface

That’s it! You now have Ubuntu running Virtual machine manager. You have a Debian VM on it, running Proxmox, and can do everything from the web interface as if it was a traditional package installed on your Ubuntu server:

If you reboot your server, don’t forget to restart the virtual machine, as it may not start automatically.

Now that Proxmox is installed, you can follow the official documentation to configure it and create new virtual machines. I have a more detailed article here on how to use it, but you can also check this page to read the official documentation.


This tutorial doesn't work anymore? Report the issue here, so that I can update it!

Other tutorials about Ubuntu you might be interested in

0 0 votes
Article Rating

Patrick Fromaget

I'm the lead author and owner of RaspberryTips.com. My goal is to help you with your Raspberry Pi problems using detailed guides and tutorials. In real life, I'm a Linux system administrator with a web developer experience.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Recent Posts

Master your Raspberry Pi - 10% off