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 Debian system


Although installation of Proxmox on a native bare metal node is recommended, at times, it may be necessary to install Proxmox on an existing Debian node. In this recipe, we will see how to install the Proxmox VE on Debian. Note that Proxmox can only be installed on 64-bit hardware and a 64-bit operating system.

Getting ready

Install Debian from instructions from the official Debian site at http://www.debian.org. Prior to installing Proxmox on the Debian node, ensure that the hostname can be resolved. Check the hostname using the following command:

#nano /etc/hosts

It should have these entries:

127.0.0.1 localhost.localdomain localhost
172.16.0.71 pmx1.domain.com pmx1 pvelocalhost

If the entries are missing, type in the proper IP address associated with the hostname of the node. The pvelocalhost entry must be present at the end of the line.

How to do it...

Use the following steps to install Proxmox on a Debian system:

  1. Add the Proxmox VE repository in the source list as follows:

    #nano /etc/apt/sources.list
    deb http://ftp.ca.debian.org/debian wheezy main contrib
    
    #PVE repository for installation
    deb http://download.proxmox.com/debian wheezy pve
    
    #PVE security updates
    deb http://security.debian.org/ wheezy/updates main contrib
    

    Tip

    Due to a bug in the Debian OS, apt-get may display an error of not finding /binary-i386 with a Unable to find expected entry 'pve/binary-i386/packages' error message. The error may occur even though it is a 64-bit Debian installed operating system. In such cases, change the PVE repository entry to the following:

    deb [arch=amd64] http://download.proxmox.com/debian wheezy pve
    
  2. Add the Proxmox VE repository key using the following command:

    #wget –O-http://download.proxmox.com/debian/key.asc | apt-key add –
    
  3. Update the repository using the following command:

    #apt-get update
    
  4. Update the operating system using the following command:

    #apt-get dist-upgrade
    
  5. Install the Proxmox VE Kernel:

    #apt-get install pve-firmware pve-kernel-2.6.32-37-pve
    
  6. Install Kernel headers:

    #apt-get install pve-header-2.6.32-37-pve
    
  7. Be sure to select the Proxmox VE Kernel on the boot loader grub2.

  8. Reboot the node to activate the new Proxmox VE Kernel.

  9. Verify the running kernel to ensure that the proper Proxmox VE Kernel is loaded:

    #uname –a
    
  10. Check the grub2 config using following command:

    #update-grub
    
  11. Install the Proxmox VE packages:

    #apt-get install Proxmox-ve-2.6.32 ntp ssh lvm2 postfix ksm- control-daemon vzprocps open-iscsi bootlogd
    
  12. During installation, accept suggestions to remove Exim and set up Postfix. Exim can be installed later if required.

  13. Reboot the node after the Proxmox VE installation is done.

There's more…

Follow steps 1 to 13 to set up a second node. A minimum of two nodes are required to form a Proxmox cluster. We will take a good look at the Proxmox GUI in Chapter 2, Getting to know the Proxmox GUI.