Red Hat Cloud Foundations, Edition One: Implementation Cookbook
Total Page:16
File Type:pdf, Size:1020Kb
I<;?8K :CFL;=FLE;8K@FEJ# <;@K@FE FE<1 @DGC<D<EK8K@FE :FFB9FFB RED.CloudCookbookCover-US.indd 1 6/10/10 5:34:23 PM RED.CloudCookbookCover-US.indd 2 6/10/10 5:34:23 PM Red Hat Cloud Foundations, Edition One: Implementation Cookbook This paper provides an overview of a reference archi- • Step 4: Run Red Hat Enterprise Linux applications tecture prepared by Red Hat that fully documents how in the cloud. to build your own private cloud. The publicly available, • Step 5: Run JBoss Enterprise Middleware in-depth reference architecture captures the experi- applications in the cloud. ence and knowledge of Red Hat engineers who went • Step 6: Run Red Hat Enterprise MRG Grid through the complete process of building a cloud. The applications in the cloud. reference architecture includes not only step–by–step In order to help you implement a private cloud, the instructions, but also scripts, configuration specifics, following Red Hat courses and services are avail- and port settings for cloud building. In short, it shows able to complement the Red Hat Cloud Reference you how to implement a cloud starting from bare metal Architecture: servers and ending with a complete, operating proof– • Red Hat Cloud Training Courses of–concept. This document covers the highlights of Red Hat Cloud Foundations Reference Architecture, • Red Hat Cloud Consulting Services Edition One: Private IaaS (Infrastructure as a Service) Future editions of the Red Hat Cloud Reference Archi- Clouds. The full reference architecture document is at: tecture will develop the following concepts further: https://inquiries.redhat.com/go/redhat/cloud-founda- • Red Hat Cloud Foundations Reference tions Architecture: Platform as a Service (PaaS) • Red Hat Cloud Foundations Reference Implementing the foundations for a private cloud are Architecture: Managing applications in the cloud summarized in the following steps: • Red Hat Cloud Foundations Reference • Step 1: Install hardware and configure network. Architecture: Managing mixed private clouds • Step 2: Deploy highly available cloud • Red Hat Cloud Foundations Reference management services. Architecture: Adding public clouds • Step 3: Create cloud hosts and tenants. • Red Hat Cloud Reference Architecture: Creating large-scale clouds Step 4: Run RHEL Applications in the Cloud Step 1: Step 2: Step 3: Step 5: Install Hardware HA Cloud Create Cloud Run JBoss & Network Management Hosts & Guests Applications in Services the Cloud Step 6: Run MRG Grid Applications in the Cloud www.redhat.com/rhel/resource_center/reference_architecture.html Red Hat Cloud Foundations, Edition One: Implementation Cookbook Glossary Cobbler: Installed with Red Hat Network (RHN) Red Hat Enterprise Virtualization (RHEV): Refers Satellite, Cobbler is an installation server that collects collectively to the hypervisor and management the various methods of performing unattended components of Red Hat Enterprise Virtualization. system installations, whether they are server or workstation systems. Red Hat Enterprise Virtualization-H (RHEV-H): Red Hat’s “embedded hypervisor,” which uses a Deltacloud: An application programming interface tailored copy of Red Hat Enterprise Linux to provide that abstracts the differences between various public a fully-compatible application environment in a small and private clouds, thereby allowing workloads to be footprint. transportable. Red Hat Enterprise Virtualization-M (RHEV-M): KVM: Kernel-based Virtual Machine is a module of Red Hat Enterprise Virtualization-Management the Linux kernel that allows Linux to act as a Type 1 manages virtualized environments, including (native) hypervisor. advanced features such as live migration. Red Hat Enterprise MRG: A next-generation IT Red Hat Network (RHN) Satellite: RHN Satellite infrastructure incorporating Messaging, Realtime, provides management, provisioning, and monitoring and Grid functionality — including support for a full that lets many servers be managed as one. Satellite spectrum of distributed tasks. serves as a software repository for an enterprise and delivers software updates and patches in a Red Hat Enterprise Linux (RHEL): Red Hat Enterprise coordinated manner. Linux is the leading commercial Linux, which provides compatibility across private and public clouds. Tenant VM: A guest virtual machine used for a user workload. www.redhat.com/solutions/cloud Red Hat Cloud Foundations, Edition One: Implementation Cookbook OVERVIEW The foundation for a private cloud described here The above cloud management services are used to illustrates a phased approach to technology adoption configure a farm of Red Hat Enterprise Virtualization starting with server consolidation using virtualization, host systems and configure tenant VMs on the then adding services that help automate the deploy- Red Hat Enterprise Virtualization hosts. Different use ment of additional software. By itself, virtualization cases for deploying the following tenant VMs offers many benefits to IT, including improved server are described: utilization and the ability to move workloads around • Red Hat Enterprise Linux tenant VMs more easily. Expanding beyond virtualization helps an • Windows tenant VMs IT organization better manage the scale and complex- ity of their infrastructure. Cloud management services are used to deploy applications in the VMs. Specifically documented is This reference architecture also demonstrates how the installation of the following types of application a cloud doesn’t need to be built all at once but, rather, in tenant VMs: can build off a new or existing virtualization deploy- • Red Hat Enterprise Linux applications ment. A proof–of–concept, such as this, is often • JBoss Enterprise Middleware applications applied first in a highly dynamic environment such • Red Hat Enterprise MRG Grid applications. as development and test, but it’s a general purpose approach that can be applied to just about any use. This implementation cookbook summarizes key steps, identifies major components, and provides illustra- Red Hat’s approach to cloud computing does not tive examples of deeper-level information, while the lock an enterprise into one vendor’s cloud stack, but companion reference architecture document contains instead offers a rich set of products for building a greater detail, including scripts and specific configura- cloud. These can be used alone or in conjunction with tion settings. components from third-party vendors to create the cloud that best meets the customer’s unique needs. This reference architecture starts with the deployment of cloud infrastructure management services on a pair of servers configured as a cluster using Red Hat Cluster Suite (RHCS) for high availability. The infrastructure management services include: • Red Hat Network (RHN) Satellite • Red Hat Enterprise Virtualization Manager • DNS and DHCP services • RHCS management (using Conga) Most of these services are installed in virtual machines (VMs). www.redhat.com/rhel/resource_center/reference_architecture.html Red Hat Cloud Foundations, Edition One: Implementation Cookbook Step 1: InStall Hardware The hardware foundation of this private cloud includes: initially used to support the satellite server virtual • A pair of server blades, connected to shared fibre machine (VM) that is in turn used to provision both channel disks and configured as a cluster for management cluster members. high availability, used to deploy cloud infrastruc- • A farm of server blades, connected to shared fibre ture management services. One of the servers is channel storage, used to host the tenant VMs. MGMT-1 MGMT-2 MRG Mgr JON Cloud Satellite, RHEV-M NFS for ISO RHEL Cobbler Libraries RHEL VM Infrastructure VM Windows Mgmt Services GFS2 for RHEL VM Cluster VM Defn. VM Clustered Services Red Hat Cluster Suite RHEL / KVM RHEL / KVM x86 Blade Server x86 Blade Server Shared FC Storage RHEL-HOST-1 RHEV-HOST-1 JBoss App Grid App JBoss App Grid App Hypervisor App JBoss EAP… MRG Grid App JBoss EAP… MRG Grid Hosts for Cloud RHEL Win RHEL Win RHEL RHEL Win RHEL Win RHEL Tenant VMs VM VM VM VM VM VM VM VM VM VM RHEL / KVM RHEV-H x86 Blade Server x86 Blade Server Shared Storage www.redhat.com/solutions/cloud Red Hat Cloud Foundations, Edition One: Implementation Cookbook Step 2: Deploy highly available clouD management ServiceS Cloud management services are used to set up the Install Python-based Expect scripts for communicating cloud hosts, the VMs within those hosts, and the ap- with vendor-specific components (Integrated Lights plications in those VMs. To ensure the availability of Out, On-board Administrator, Storage Array, and Virtual these services, two Red Hat Enterprise Linux server Connection Manager) on the server used to manage blades are clustered (active/passive) using Red Hat the installation. Cluster Suite. Each of the cluster nodes is configured to run Red Hat Enterprise Linux with the bundled KVM Download the released Red Hat Enterprise Linux 5.5 hypervisor. For most management services, a VM is DVD and duplicate the media. Modify the duplicate tree created using the KVM hypervisor and configured as with a custom kickstart file configured to: an Red Hat Cluster Suite service. The management • install and configure the system services, such as Red Hat Network (RHN) Satellite, are • copy the media to the installed system and then installed in VMs. The Satellite VM provides the configure its NFS export configuration management of the Red Hat Enterprise • set the time and prepare the Network Time Linux system and is the network maintainer