Promox VE

Proxmox VE is an open-source server management platform for your enterprise virtualization. It tightly integrates KVM hypervisor and LXC, software-defined storage, and networking functionality on a single platform. With the integrated web-based user interface you can easily manage VMs and containers, highly available clusters, or the integrated disaster recovery tools with ease.

Install and Setup Proxmox VE

This guide will explain how to install Proxmox VE on a bare metal system. You don't need a fancy server to run Proxmox.

Here, you can see more on Proxmox hardware requirements.

Install Proxmox VE

An album with all of the following screenshots can be found here: https://imgur.com/a/lSg9Lzt

  1. The first step to installing Proxmox is downloading the installation ISO (https://i.imgur.com/76OXSL2) from their website (https://www.proxmox.com/en/downloads), and make a bootable USB stick out of it. For this tutorial, we assume you know how to do this.
  2. Make sure virtualization support is turned on in the BIOS of the server. The Intel version of this is called VT-d or VT-x. The AMD version is called AMD-V. If your server for some reason does not support this, you can unfortunately not make use of the full power of Proxmox. Unfortunately, this is probably the hardest part of the tutorial. Turning virtualization support on will be different on every server/motherboard thus making it very difficult for us to show how this is done. Usually this option is turned on by default, but it is a good idea to check this. You can google “[motherboard name] virtualization bios” to see how to do this for your specific motherboard.
  3. Insert the earlier created bootable USB drive into the server and boot from it. You should see this (https://imgur.com/tHEP7u8) screen.
  4. Now press [Enter] on “Install Proxmox VE”. After a few seconds you should see a screen with the user licence agreement (https://imgur.com/B02f7a3). After reading the User Licence Agreement, press “I agree”.
  5. Now select the physical disk you want to install Proxmox on next to “Target-Harddisk”. We recommend NOT installing Proxmox on a USB device. Unlike some hypervisor operating systems you may have heard of, Proxmox does not run from memory. This means that if you install Proxmox on a USB drive, it will cause a lot of wear, and your USB drive might fail sooner than expected[3]. Press “Next” after selecting the right hard drive. (https://imgur.com/cNC3S9U)
  6. Enter your Country, Time zone and Keyboard Layout accordingly. Press “Next”. (https://imgur.com/UI5lyoN)
  7. Enter a password for your root account with a valid email address. This email address will be used by Proxmox for important notifications. Press “Next”. (https://imgur.com/tmJmwJa)
  8. Enter your preferred network settings. Proxmox should automatically detect these settings, so you can press “next” without changing anything, and it should work fine. (https://imgur.com/vyjH51z). For now, we will not make any changes to these settings.
  9. The next step of the installation will be a summary of your settings. Make sure they are all ok and then press install. ProxMox will now install itself on the selected hard drive (https://imgur.com/0g3BDLr).
  10. The last screen of the installation should say that it was a success. Press “Reboot”. (https://imgur.com/h1TIMXo)
  11. After the system reboots, you will see a blue screen with several startup options. Do not press any button. Proxmox will continue to boot normally after a few seconds. (https://imgur.com/Vy5O8oe)
  12. The next screen should be a console showing the IP address chosen during the installation of Proxmox. To access the Proxmox UI, use a browser on a different computer on the same network to navigate to the IP Address and the specified port as shown on the Proxmox server. Make sure to use “https” as well. (https://imgur.com/G8TzBkf)
  13. Once you access the Proxmox UI on another computer in the same network you will be greeted with a login screen (https://imgur.com/5zFcC0I). Log in with the username “root” and the password you chose during the installation. Congratulations, your Proxmox install is now complete and working.

This guide was sited from the Proxmox forum.

Setup and Install Docker in a Promox LXC Conainer

Containers are a lightweight alternative to fully virtualized machines (VMs). They use the kernel of the host system that they run on, instead of emulating a full operating system (OS). This means that containers can access resources on the host system directly.

The runtime costs for containers is low, usually negligible. However, there are some drawbacks that need be considered:

Proxmox VE uses Linux Containers (LXC) as its underlying container technology. The “Proxmox Container Toolkit” (pct) simplifies the usage and management of LXC, by providing an interface that abstracts complex tasks.

Containers are tightly integrated with Proxmox VE. This means that they are aware of the cluster setup, and they can use the same network and storage resources as virtual machines. You can also use the Proxmox VE firewall, or manage containers using the HA framework.

Our primary goal is to offer an environment that provides the benefits of using a VM, but without the additional overhead. This means that Proxmox Containers can be categorized as “System Containers”, rather than “Application Containers”.

The above was sited from the Proxmox VE website.

Download the Turnkey Core template

To setup and install Docker in a Proxmox LXC Conainer, you will have to download the Turnkey Core template to your storage.

1. Click on your storage then click on the templates button.

image-1600627790061.png

2. Search for the core template and click download.

image-1600627549435.png

3. When it's done you can click the "Create CT" button in the upper right corner.

image-1600627916015.png

4. Set your hostname and password and be sure to UNCHECK "Unprivileged container" or this will not work. Now move on to the Template tab.

image-1600627993814.png

5. Select the storage where you downloaded the Turnkey Core template then choose the template.

image-1600628164202.png

6. In the Storage tab choose where you want the container to use storage. For the disk size I recommend at-least 20gb of space. This depends on what you plan on doing with the container. For example if you plan on downloading a bunch of files, you may want a larger size disk.

image-1600628264965.png

7. On the CPU tab, I usually put 4 cores but this is overkill for a container. This depends on the processor you have in your system.

image-1600628415695.png

8. On the Memory tab I usually allocate 2gb for containers.

image-1600628541219.png

9. On the Network tab I let the DHCP host assign the IP automatically.

image-1600628641571.png

10. On the DNS tab I just use my gateway IP.

image-1600628692672.png

11. Confirm your settings and make sure you DO NOT tick "Start after created". Click finish and let the container create.

image-1600628756760.png

12. Once done, you will see "TASK OK". Click the X in the upper corner and proceed to the next step.

image-1600628834060.png

13. Select the container and then click on Options then double click on Features.

image-1600629985611.png

14. Tick Nesting then click ok.

image-1600629027165.png

15. Now you can start your container and view the console.

image-1600629099543.png

This will start the container and run the install script then assign an IP to your container. Once done you will need to login using root and the password you chose when you created the container in step 4.