How to Install Proxmox VE

January 27, 2022

Introduction

Proxmox VE is an open-source server platform for enterprise virtualization. As a Debian-based Linux distribution, Proxmox uses a modified Ubuntu kernel to run multiple virtual machines and containers on a single server. You can deploy and manage virtualized environments through a web console or a command line, ensuring simple and fast accessibility.

Read on to find out how to install and configure Proxmox.

How to install and configure Proxmox VE.

Prerequisites

  • A physical or dedicated server.
  • 64bit CPU.
  • At least 1GB of RAM (and additional RAM needed for guests).
  • A USB stick with at least 1GB.

Install Proxmox Virtual Environment

Follow the steps listed below to install Proxmox VE on a physical or dedicated server.

Alternatively, boot up a phoenixNAP Bare Metal Cloud server with Proxmox installed and configured out of the box.

Bare Metal Cloud offers automated deployment with Proxmox servers typically deployed in 8 minutes (no additional costs)! See how easy it is to deploy a Bare Metal Cloud server.

Step 1: Download Proxmox ISO Image

The first step is to download the Proxmox VE ISO image.

1. Navigate to the official Proxmox Downloads page and select Proxmox Virtual Environment.

Proxmox download page.

2. This takes you to the Proxmox Virtual Environment Archive that stores ISO images and official documentation. Select ISO Images to continue.

Open Proxmox ISO images achieve.

3. At the time of writing, the latest version of the Proxmox VE ISO Installer is 7.1. If a newer version is available, it is listed at the top. Click Download and save the file.

Download the latest Proxmox VE ISO installer.

Step 2: Prepare Installation Medium

Copy the Proxmox ISO image on a CD/DVD or a USB flash drive. Although both options are possible, it is assumed that most systems won't have an optical drive.

Plug in the USB drive and copy the ISO image to the USB stick using the command line or a USB formatting utility (such as Etcher or Rufus).

Note: Make sure your USB has at least 1 GB of storage. Also, back up and remove any data on the device as the process will erase any previously stored data.

If you are working on Linux, the fastest way is to create a bootable USB is to run the command:

dd bs=1M conv=fdatasync if=./proxmox-ve_*.iso of=/device/name

If needed, modify the file name and path in if=./proxmox-ve_*.iso and make sure to provide the correct USB device name in of=/device/name.

To find the name of your USB stick, run the following command before and after plugging in the device:

lsblk

Compare the output. The additional entry in the second output is the name of the device.

Step 3: Launch the Proxmox Installer

1. Move to the server (machine) where you want to install Proxmox and plug in the USB device.

2. While the server is booting up, access the boot menu by pressing the required keyboard key(s). Most commonly, they are either Esc, F2, F10, F11, or F12.

3. Select the installation medium with the Proxmox ISO image and boot from it.

4. Next, the Proxmox VE menu appears. Select Install Proxmox VE to start the standard installation.

Proxmox installer menu.

5. Read and accept the EULA to continue.

Proxmox EULA.

6. Choose the target hard disk where you want to install Proxmox. Click Options to specify additional parameters, such as the filesystem. By default, it is set to ext4.

Select Proxmox target hard disk.

7. Then, set the location, time zone, and keyboard layout. The installer autodetects most of these configurations.

Configure location and timezone for Proxmox.

8. Create a strong password for your admin credentials, retype the password to confirm, and type in an email address for system administrator notifications.

Set administration password for Proxmox.

9. The final step in installing Proxmox is setting up the network configuration. Select the management interface, a hostname for the server, an available IP address, the default gateway, and a DNS server. During the installation process, use either an IPv4 or IPv6 address. To use both, modify the configuration after installing.

Management network configuration.

10. The installer summarizes the selected options. After confirming everything is in order, press Install.

11. After the installation is complete, remove the USB drive and reboot the system.

Step 4: Run Proxmox

1. Once the installation is completed and the system rebooted itself, the Proxmox GRUB menu loads. Select Proxmox Virtual Environment GNU/Linux and press Enter.

2. Next, the Proxmox VE welcome message appears. It includes an IP address which loads Proxmox. Navigate to that IP address in a web browser of your choice.

Proxmox welcome output.

3. After navigating to the required IP address, you will most likely see a warning message that the page is unsafe because Proxmox VE uses self-signed SSL certificates. Select to proceed to the Proxmox web management interface.

Accept proxmox certificate and proceed.

4. To access the interface, log in as root and provide the password set when installing Proxmox.

5. A dialogue box pops up saying there is no valid subscription for the server. Proxmox offers an add-on service you can subscribe to, which is optional. To ignore the message, click OK.

Step 5: Create a VM

Now that you logged in to the Proxmox web console, create a virtual machine.

1. Before going through the steps to create a virtual machine, make sure you have ISO images for installation mediums. Move to the resource tree on the left side of your GUI.

Select the server you are running and click on local (pve1). Select ISO Images from the menu and choose between uploading an image or downloading it from a URL.

Add ISO images to Proxmox VE.

2. Once you have added an ISO image, move on to spinning up a virtual machine. Click the Create VM button located on the right side of the header in the GUI.

Start creating a VM on Proxmox.

3. Provide general information about the VM:

  • Start by selecting the Node. If you are starting and have no nodes yet, Proxmox automatically selects node 1 (pve1).
  • Provide a VM ID. Each resource has to have a unique ID.
  • Finally, create a name for the VM. Use an easily identifiable name..
General options for setting up a virtual machine.

3. Next, switch to the OS tab and select the ISO image you want for your VM. Define the Type of the OS and kernel Version. Click Next to continue.

Select OS for Proxmox virtual machine.

4. Modify system options (such as the Graphic card and SCSI controller) or leave the default settings.

System options for proxmox.

5. Then, configure any Hard Disk options you want the VM to have. Generally, you can leave all the default settings. However, if the physical server is using an SSD, enable the Discard option.

Hard disk options for Proxmox VM.

6. The number of Cores the physical server has determines how many cores you can provide to the VM. The number of cores allocated also depends on the predicted workload.

Set CPU options for Proxmox virtual machine.

7. Next, choose how much Memory (MiB) you want to assign to the VM.

Configure memory for virtual machine.

8. Move on to the Network tab. It is recommended to separate the management interface and the VM network. For now, leave the default setting.

Configure network options for VM.

9. After clicking Next, Proxmox loads the Confirm tab that summarizes the selected VM options. To start the VM immediately, check the box under the listed information or start the VM manually later. Click Finish to create the VM.

VM summary.

10. See the newly created VM in the resource tree on the left side of the screen. Click on the VM to see its specifications and options.

Proxmox virtual machine.

Note: Learn how to delete a VM in Proxmox. The guide includes both the command line and GUI methods for deleting VM, VM disks, and VM snapshots.

Configure Proxmox Virtual Environment

After creating a virtual machine, move on to configuring the environment.

Start the VM at Boot

If the Start at boot option is set to No, the VM does not automatically start after rebooting the server. This means you need to log in to the Proxmox interface and start the VM manually.

To change the default setting, highlight the option and click the Edit button above.

Change start at boot option.

Check the box and click OK.

Enable VM to start at boot.

Increase/Decrease Virtual Disk Size

The simplest way to increase or decrease the virtual disk size of a VM is through the command line interface, which can be done online or offline.

When increasing disk space, modify the partition table and file system inside the VM to update to the new size.

When decreasing a VM's disk space, make sure to back up any data you want to save and reduce the file system and partition inside the VM first.

The main syntax for increasing/decreasing virtual disk size is:

qm resize [virtual_machine_ID] [disk] [size]

For instance, to add 10G to a virtio0 disk on a VM with the ID 100, run:

qm resize 100 virtio0 +10G

Enable NAT Networking Mode

As mentioned above, it's a good idea to change the default bridge networking mode to prevent the Proxmox host and VMs being on the same network. To create a separate network, enable NAT networking mode.

1. To do so, edit the Interfaces file. Open the command line and run:

sudo nano /etc/network/interfaces

The file shows that vmbr0 is the default bridge network for Proxmox, as in the lines below:

auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.10.22.215
         netmask 255.255.255.0
        gateway 10.10.22.1
        bridge_ports eno1
        bridge_stp off
        bridge_fd 0

2. Add the following content to the file:

auto vmbr1
iface vmbr1 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE

3. Save and exit.

4. Finally, bring up the the new interface with:

sudo ifup vmbr1

Next time you create a VM, vmbr0 and vmbr1 will be available for the bridge network option. Select vmbr1 to keep the VM on a separate network from Proxmox.

Conclusion

In this article you learned how to install and configure Proxmox VE. For more information, check out Proxmox official documentation.

If you're interested in exploring automated Proxmox deployments, check out the available Bare Metal Cloud instances and see if there is a configuration that suits your needs and budget.

If you want to find out how Proxmox differs from other type-1 hypervisors, read our article Proxmox vs. ESXi.

Was this article helpful?
YesNo
Sofija Simic
Sofija Simic is an experienced Technical Writer. Alongside her educational background in teaching and writing, she has had a lifelong passion for information technology. She is committed to unscrambling confusing IT concepts and streamlining intricate software installations.
Next you should read
Containers vs Virtual Machines (VMs): What's the Difference?
April 15, 2019

Both virtual machines and containers are used to created isolated virtual environments for developing and...
Read more
What is Server Virtualization? Definition and How it Works
February 24, 2019

A virtualized server allows one piece of hardware to be used as multiple virtual servers. Learn about Server Virtualization...
Read more
Bare Metal Cloud Portal Quick Start Guide
March 23, 2021

Follow the sections in this Bare Metal Cloud Portal guide to learn how to navigate through the portal...
Read more
What is Bare Metal Cloud
May 20, 2020

This article provides answers to everything you wanted to know about Bare Metal Cloud and how it compares to other cloud...
Read more