Step-By-Step Install Guide Enterprise Application Servers with Proxmox VE Cluster

May 27, 2016 | Author: Kefa Rabah | Category: Types, Instruction manuals
Share Embed Donate


Short Description

Introduction: In this Hands-on Lab session, you’ll learn how to install and configure Proxmox VE. Next, you&rsquo...

Description

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Global Open Versity Cloud Computing Hands-on Labs Training Manual

Step-By-Step Install Guide Enterprise Application Servers with Proxmox VE Cluster Kefa Rabah Global Open Versity, Vancouver Canada [email protected] www.globalopenversity.org

Table of Contents

Page No.

STEP-STEP INSTALL GUIDE ENTERPRISE APPLICATION SERVERS WITH PROXMOX VE CLUSTER

3

Introduction

3

Part 1: Installing and Updating Proxmox VE Server Step 1: Getting Started & Hardware Pre-requisites Step 2: Install Proxmox Virtual Environment (VE), Master “server01.govcloudgo.com” Step 3: Proxmox VE Configuration

4 5 5 13

Part 2: Creating a Cluster by Adding a Slave 'ode (server02.govcloudgo.com) Step 1: Adding Appliance Template 1.0 Downloading Appliance Templates 1.1 How to Manage your Downloaded Appliance Templates Step 2: Creating OpenVZ Containers

14 20 20 21 22

Part 3: Installing SugarCRM on Proxmox VE Cluster Step 1: Downloading Appliance Templates Step 2: Creating OpenVZ Containers Step 3: Update and Install SugarCRM

26 27 28 31

Part 4: Install and Configure Moodle LMS on Proxmox VE Cluster Step 1: Creating OpenVZ Containers Step 2: Update and Install Moodle LMS

39 40 43

Part 5: Install and Configure Joomla CMS on Proxmox VE Cluster Step 1: Downloading Appliance Templates Step 2: Creating OpenVZ Containers Step 3: Update and Install Joomla CMS

50 51 52 55

Part 6: Install and Configure eyeOS on Proxmox VE Cluster Step 1: Download and Install eyeOS Step 2: Creating OpenVZ Containers Step 3: Update and Access eyeOS

60 60 61 65

Part 7: Backups of Critical Enterprise Applications Step 1: Implementing FreeNAS Storage Solutions

66 67 1

© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Global Open Versity, HPC Labs

Part 8: Live Migration

71

Part 9: Install and Configure CYA' Secure Web Proxy Server on Proxmox VE Cluster Step 1: Download and Install CYAN Secure Web Step 2: Creating OpenVZ Containers for CYAN Secure Web

72 72 73

Part 10: Install and Configure Proxmox Mail Gateway on Proxmox VE Cluster Step 1: Download and Install Proxmox Mail Gateway Step 2: Creating OpenVZ Containers for Proxmox Mail Gateway

81 81 82

Part 11: Install and Configure WordPress Blog on Proxmox VE Cluster Step 1: Download and Install WordPress Step 2: Creating OpenVZ Containers for WordPress

88 88 89

Part 12: 'eed More Training on Linux: Ubuntu Enterprise Cloud Training:

96 96

Part 13: Hands-on Labs Assignments

97

A GOV Open Access Technical Academic Publications Delivering Cutting-edge Technology at your Fingertips in the 21st Century 2 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Global Open Versity Cloud Computing Hands-on Labs Training Manual

Step-Step Install Guide Enterprise Application Servers with Proxmox VE Cluster By Kefa Rabah, [email protected]

August, 2011

GTS Institute

Introduction In this Hands-on lab, you’re going to learn how to install and configure Proxmox Virtual Environment (VE) server – a professional virtualization platform used to make virtual machines based on KVM and OpenVZ technologies. Proxmox VE is an easy to use open source virtualization platform based on Linux and used for running virtual appliances and virtual machines. It is a product aimed at companies and production environments, since it intends to be an easy deployment and management solution. Proxmox VE is licensed under GPLv2 (Open source). Open source and commercial Virtual Appliances are supported. Proxmox VE supports all hardware supported by the Linux kernel, and the developers have designed their own method of clustering multiple Proxmox VE servers together in order to enable live migration and central management from the web interface. Performance is extremely good, and it also supports virtual machine storage on a variety of network storage types, including NFS, CIFS, and iSCSI. Because the underpinnings of Proxmox VE is based on Debian distro, other Linux-based solutions can be added with little difficulty for a Linux expert, such as glusterfs for clustered virtual machine storage, etc. Proxmox VE also ships with OpenVZ capabilities, allowing one to create Linux virtual containers rather than virtual machines. These have been found to have much less I/O and memory overhead and allow one to run multiple Linux environments very quickly on the native hardware. Proxmox VE Cluster: PVE can be run as a cluster. Clustering brings several advantages. The biggest is the ability to migrate your virtual machines between cluster nodes, live without shared storage. Another benefit is the ability to manage multiple servers from one unified web interface. You are able to create virtual machines from the cluster master node on any of the cluster slave nodes. If your master node fails the slave nodes are still able to function although the cluster is down so migrations will no longer be available, however the virtual machines will still work as normal.

Hands-on Labs In this Hands-on Lab session, you’ll learn how to install and configure Proxmox VE. Next, you’ll learn how to build and deploy virtual machines on Proxmox VE. In this lab you’ll have an opportunity to deploy CentOS-5 VM server which you can use to deploy other applications. You'll also learn how to install and configure enterprise solutions e.g., SugarCRM, Moodle LMS, Joomla CMS, eyeOS Cloud, Secure Web Proxy Server, Proxmox Mail Gateway proxy server, and WordPress blog. You'll also learn how to perform live migration of virtual machine from one cluster node to another. Once you have gained enough expertise working with Proxmox VE cluster, you can then think to use it to build & deploy private cloud using OpenNebula, Eucalyptus Systems etc. or any other applications as desired.

3 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Global Open Versity, HPC Labs

Initial Infrastructure Design Implementation Here is the design implementation for our enterprise application servers installation on Proxmox VE cluster: Table 1: Proxmox VE Cluster Setup

Domain Name Cluster Master Server Cluster Slave Server

Description govcloudgo.com server01.govcloudgo.com Server02.govcloudgo.com

Table 2: Application Server VMs on Proxmox VE Cluster Virtual Machine # 101 102 103 104

Hostname vm01.govcloudgo.com sgcrm.govcloudgo.com eyeos.govcloudgo.com cyansweb.govcloudgo.com

105 106 107

mdl.govcloudgo.com jml.govcloudgo.com pmg.govcloudgo.com

109

wpress.govcloudgo.com

Description Linux CentOS-5 VM SugarCRM on Cluster Node server02 eyeOS Cloud on Cluster Node server01 CYAN Secure Web proxy server on Cluster Node server01 Moodle LMS on Cluster Node server01 Joomla CMS on Cluster Node server01 Proxmox Mail Gateway proxy server on Cluster Node server01 WordPress on Cluster Node server01

You’re now ready to install and configure your application servers as listed above.

Part 1: Installing and Updating Proxmox VE Server Proxmox VE supports three types of virtualization technologies: •

Container virtualization (OpenVZ): it allows that a physical server can run multiple insolated operating system instances as well known as containers. Its main problem is these containers or guests can just be Linux instances. However, the OpenVZ kernel provides better performance (penalty between 1% and 3% compared to a standalone server) in contradistinction to other alternatives.



Full virtualization (KVM): it can run Linux and Windows guests but unlike OpenVZ, Intel VT or AMD-V CPU is needed.



Paravirtualization (KVM): it presents a software interface similar to the underlying hardware in order to try to reduce the execution time of certain operations.

Note: in our lab, we think that OpenVZ is a plus because it has got better performance than KVM and the containers idea is fantastic: the size of these templates is really small and you can get a ready virtual machine in few minutes. 4 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Step 1: Getting Started & Hardware Pre-requisites 1.1 System requirements For production servers, high quality server equipment is needed. Keep in mind, if you run 10 Virtual Servers on one machine and you got a hardware failure, 10 services are lost. Proxmox VE supports clustering, means that multiple Proxmox VE installations can centrally managed via the included cluster functionality. Note: Proxmox VE can also use local storage (DAS) and SAN. Minimum requirements for evaluation: • CPU: 64bit (Intel EMT64 or AMD64), Intel VT/AMD-V capable CPU/Mainboard (for KVM Full Virtualization support) • Minimum 1 GB RAM • Hard drive • One NIC Recommended system requirements: • CPU: 64bit (Intel EMT64 or AMD64), Multi core CPU recommended, Intel VT/AMD-V capable CPU/Mainboard (for KVM Full Virtualization support) • 4 GB is good, more is better • Hardware RAID with batteries protected write cache (BBU) • Fast hard drives, best results with 15k rpm SAS, Raid10 • Two NIC 1.2 Summary of Proxmox VE Installation Proxmox VE installs the complete operating system and management tools in 3 to 5 minutes (depends on the used hardware). "Bare-metal" means that you start from a empty server - there is no need to install a base operation system. Including the following: • Complete operating system (Debian Lenny 64) • Partition the hard drive with LVM2 • Proxmox VE Kernel with OpenVZ and KVM support • Backup/Restore tools • Web based management interface • Proxmox uses LVM - See backup and restore of LVM data. Warning: the complete server is used and all existing data is removed.

Step 2: Install Proxmox Virtual Environment (VE), Master “server01.govcloudgo.com” 1. Hope over to http://www.proxmox.com/downloads/proxmox-ve/17-iso-images website and download the Proxmox VE 1.8 ISO which at the time of writing this lab manual was "Proxmox VE 1.8 ISO Installer" 5 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

2. Once you have downloaded the Proxmox ISO, you have the option of burning it into CD or DVD. 3. Insert the CD/DVD and fire-up your machine which will from CD to display Fig. 1, next hit the Enter key to start installation.

Fig. 1

4. From Fig. 2, Proxmox Installer screen, wait for the system to complete the current process, it’ll continue after that.

Fig. 2

6 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

5. From Fig. 3, Proxmox License Agreement screen, read and accept the license and then hit Enter key to continue.

Fig. 3

6. From Fig. 4, Proxmox Installer screen, choose the desired option use, and then hit Next key to continue.

Fig. 4

7 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

7. From Fig. 5, Proxmox Installer screen, choose time location and keyboard language, and then hit Next key to continue.

Fig. 5

8. From Fig. 6, Administration Password and E-Mail Address screen, enter the desired Admin password and email, and then hit Next key to continue.

Fig. 6

8 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

9. From Fig. 7, Network Configuration screen, enter all the required options, and then hit Next key to continue. Hostname: ″server01.govcloudgo.com″, with IP address: ″192.168.83.132″

Fig. 7

10. From Fig. 8, Virtualization Platform screen, wait for the systems to create partitions and other processes.

Fig. 8

9 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

11. From Fig. 9, Web Based Administration screen, wait for the systems to complete the processes.

Fig. 8

12. From Fig. 9, Proxmox VE Cluster screen, wait for the systems to complete the processes.

Fig. 9

10 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

13. From Fig. 10, Installation Successful screen, click on the Reboot button .to restart the system.

Fig. 10

14. From Fig. 11, Bootup screen, wait for the system to restart,

Fig. 11

11 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Global Open Versity, HPC Labs

15. From Fig. 12, Terminal Login screen, login with the appropriate username and password as entered during the installation.

Fig. 12

16. You should now be logged in as shown in Fig. 13.

Fig. 13

17. When done with the installation process, and have rebooted the machine, you can update the system, run. server01:~# aptitude update ; aptitude dist-upgrade 18. You’re done with this section.

12 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Step 3: Proxmox VE Configuration 1. Fire-up your browser and point it to: https://192.168.83.132/ as shown in Fig. 14. Note the warning “The Connection is Untrsusted”. Click on the link “I Understand the Risk” and follow the instruction to accept and confirm the Server Certificate!

Fig. 14

2. You should now be presented with the login screen shown in Fig, 15. Login with appropriate username and password as entered earlier and click on the Login button.

Fig. 15

13 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

3. You should now be logged in to your Proxmox Virtual Environment as shown in Fig. 16. You’re now ready to begin configuration of Proxmox VE server.

Fig. 16

Part 2: Creating a Cluster by Adding a Slave Node (server02.govcloudgo.com) In this section you’ll learn how you can create a cluster or computing cloud by adding one or multiple slave (node) servers to the Proxmox master (server01.govcloudgo.com). Such a cloud infrastructure allows you to create and manage virtual machines on remote hosts from the Proxmox control panel, and you can also perform live migration of virtual machines from one host to another. 1. I’ll now show you how to add a second host, ″server02.govcloudgo.com″, and create a cluster. To do this, just repeat the steps to install Proxmox just as you did on ″server01″. However, when you come to the Network Configuration section, fill in ″server02.govcloudgo.com″, and make sure you use a different IP (e.g., 192.168.83.133), as shown in Fig. 17.

14 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Fig. 17

2. After the installation is completed, and the system has successfully rebooted, you should be brought terminal console as shown in Fig. 18.

Fig. 18

3. Now, open the terminal console (you may also use PutTTY) on both server01 and server02, and perform the next procedures. 15 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

4. On server01, issue the following command: pveca -c

Fig. 19

Note: when done, you should see: ″cluster Master successfully created″.

5. Next, check the status of the cluster, run command: pveca -l

Fig. 20

6. Let’s check the connectivity between the hosts. To do this, from server02, test that you can ping server01, issue the command ping command:

Fig. 21

16 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

which show excellent connectivity!

7. We're now set to continue, again from server02, run the command: pveca -a -h 192.168.83.132

Fig. 22

Note: when prompted, answer ″yes″, and then enter password of the master server, server01. When done you should see: ″cluster node successfully created″. 8. That's it, we're done creating a cluster. You can verify this from server02, by running pveca -l

Fig. 23

9. Finally, head back to the Proxmox VE control panel for server01 by pointing your browser to: https://192.168.83.132/, and go to the Cluster section, and you should observe both the servers listed, as shown in Fig. 24.

17 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

Global Open Versity, HPC Labs

Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.4

Fig. 24

19. Follow the link below to access and download the full document The full document has moved to Docstoc.com. You may download it from here: •

Step-By-Step Install Guide Enterprise Application Servers with Proxmox VE Cluster v1.5



http://www.docstoc.com/docs/93049072/Step-By-Step-Install-Guide-Enterprise-ApplicationServers-with-Proxmox-VE-Cluster

OR

Other Related Articles & Hands-on Lab Manuals: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Step-By-Step Install Guide eyeOS Cloud Computing Operating System Building and Running Private Cloud With Eucalyptus Systems v1.0 Build & Deploy a Private Cloud using OpenNebula Cloud Computing v1.2 Build your Own Private Cloud using Ubuntu 10.04 Eucalyptus Enterprise Cloud Computing Platform Step-By-Step Install Guide Linux CentOS-5 VM on Citrix XenServer v1.0 Step-By-Step Build & Deploy Citrix XenServer and XenCenter v1.2 Step-By-Step Install Guide Windows Server 2008 R2 Virtualization With Hyper-V v1.0 Install Guide OpenLDAP for Enterprise Identity Management and SSO Build Private Clouds with Ubuntu 10.10 LTS Enterprise Cloud Platform Using Webmin and Bind9 to Setup DNS Server on Linux

Fellow us on Twitter: Global Open Versity and

Kefa Rabah

----------------------------------------------Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several fields of Science & Technology, Information Security Compliance and Project Management, and Renewable Energy Systems. He is also the founder of Global Open Versity, a place to enhance your educating and career goals using the latest innovations and technologies. 18 © April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org

Install Guide Enterprise Application Servers with Proxmox VE Cluster

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF