Book Image

Proxmox Cookbook

By : Wasim Ahmed, Ravi K Jangid
Book Image

Proxmox Cookbook

By: Wasim Ahmed, Ravi K Jangid

Overview of this book

Proxmox VE's intuitive interface, high availability, and unique central management system puts it on par with the world’s best virtualization platforms. Its simplicity and high quality of service is what makes it the foremost choice for most system administrators. Starting with a step-by-step installation of Proxmox nodes along with an illustrated tour of Proxmox graphical user interface where you will spend most of your time managing a cluster, this book will get you up and running with the mechanisms of Proxmox VE. Various entities such as Cluster, Storage, and Firewall are also covered in an easy to understand format. You will then explore various backup solutions and restore mechanisms, thus learning to keep your applications and servers safe. Next, you will see how to upgrade a Proxmox node with a new release and apply update patches through GUI or CLI. Monitoring resources and virtual machines is required on an enterprise level, to maintain performance and uptime; to achieve this, we learn how to monitor host machine resources and troubleshoot common issues in the setup. Finally, we will walk through some advanced configurations for VM followed by a list of commands used for Proxmox and Ceph cluster through CLI. With this focused and detailed guide you will learn to work your way around with Proxmox VE quickly and add to your skillset.
Table of Contents (18 chapters)
Proxmox Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Proxmox on a bare metal node


The Proxmox installation process is guided by a fully graphical interface through various prompts. In this recipe, we are going to follow through creating our first Proxmox node.

Getting ready

Power up and boot the physical node using the installation disk or the USB media we created in the preceding recipe. The following screenshot is how the screen looks after the boot:

How to do it…

  1. At the main installation window after the booting process press Enter to start the installation.

  2. On the End User License Agreement (EULA) screen click on Agree.

  3. In this step, we have chosen the drive to install the hypervisor on. From Proxmox VE 3.4, a new feature to change the filesystem has been added. After selecting Target Harddisk from the drop-down menu, select Options to open the Filesystem selection dialog box. The following screenshot shows the drive selection screen with the Filesystem dialog box open:

  4. From the Filesystem drop-down menu, select the desired filesystem. Select the desired filesystem size in hdsize. In version 3.3, support for the ext3, ext4, and ZFS filesystems have been added. Add additional information, such as the swapsize, maxroot, minfree, and maxvz values as required or leave them blank to continue with default, then click on Next. The following table shows the functions of these four options. These values are usually alternatives to each other, meaning if values are entered for one of these options, values for other options are automatically calculated:

    Option

    Function

    swapsize

    This defines the size of a swap partition. There are complex formulas to calculate this value. However, it is generally left as the default value.

    maxroot

    This refers to the maximum size the root partition should be.

    minfree

    This refers to the minimum free space to allocate for a pve partition.

    maxvz

    This refers to the maximum space to allocate to locally store VMs. The default path for local VM storage is /var/lib/vz.

    The following screenshot shows the filesystem that is supported after clicking on the drop-down menu:

  5. After selecting the drive for installation, we now have to select localization information, such as Country, Time Zone, and Keyboard Layout based on the desired language. Then, click on Next. The following screenshot displays the localization screen:

  6. Type in and confirm the password for the root login. Then, enter an e-mail address where all the Proxmox cluster notifications will go to. Click on Next.

  7. In this step, we need to enter the hostname and network information, such as IP Address, Gateway, DNS Server, and so on. Enter the necessary information for your environment, then click on Next. The following screenshot shows the network information screen:

  8. At this point, all the necessary information has been collected and the main installation has been started. After the installation is completed, eject the installation disk or the USB media, then click on Reboot.

There's more…

Follow steps 1 to 7 to set up the second node. A minimum of two nodes are required to form a Proxmox cluster. More information on cluster configurations is available in Chapter 3, Cluster and VM Management.