Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Proxmox Cookbook

You're reading from   Proxmox Cookbook Over 60 hands-on recipes to perform server virtualization and manage virtualized server solutions with Proxmox

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781783980901
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Wasim Ahmed Wasim Ahmed
Author Profile Icon Wasim Ahmed
Wasim Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Installing Proxmox FREE CHAPTER 2. Getting to Know the Proxmox GUI 3. Cluster and VM Management 4. Network Configurations 5. Firewall Configurations 6. Storage Configurations 7. Backup and Restore 8. Updating and Upgrading Proxmox 9. Monitoring Proxmox 10. Advanced Configurations for VMs 11. The CLI Command Reference 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.

You have been reading a chapter from
Proxmox Cookbook
Published in: Aug 2015
Publisher:
ISBN-13: 9781783980901
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime