Red Hat Cloud FoundationsDeploying Private IaaS CloudsScott Collier, RHCAPrincipal Software EngineerVersion 2.0April 2011
www.redhat.com 10Figure 2.3: Hybrid Cloud
1. Click “Systems” in the top navigation pane2. On the left navigation pane click “Kickstart”3. In the “Kickstart Actions” pane click “Create a New Ki
Deploy MRG Server using RHEV Target System: rhevm-vm1. Click on the “Virtual Machines” tab on upper navigation menu2. Click on the “New Server” button
1. Open a browser on the MRG localhost and go to http:// 127.0.0.1 :45672/login.html or from a remote machine and log in.2. Confirm functionali
1. Click “Systems” in the top navigation pane2. On the left navigation pane click “Kickstart”3. In the “Kickstart Actions” pane click “Create a New Ki
Deploy MRG Execution Nodes using RHEV Target System: rhevm-vm1. Click on the “Virtual Machines” tab on upper navigation menu2. Click on the “New Serve
1. Once these nodes are deployed, name them mrgexec{1-3} and make sure the IP addresses are static and the hosts are set up in DNS and that name resol
Launch jobs on the MRG Execution nodesTarget System: mrgmgr1. Create the “admin” user and log in with the “admin” user account, generate a ssh public
6. Submit the perfect number job to multiple hosts$ condor_submit perfect_number.sub Submitting job(s).Logging submit event(s).1 job(s) submitted to c
8. Check the job queue via CLI$ condor_q -- Submitter: mrgmgr.rhcf.lab : <10.16.139.32:9675> : mrgmgr.rhcf.lab ID OWNER SUBMITTED RU
9. While it is outside the scope of this paper to be a troubleshooting guide, if the job is submitted and it does not run, check what the problem is w
A community cloud is an infrastructure that is shared by several organizations and supports a specific community that has shared concerns (e.g., missi
11 Appendix A 11.1 Configuration FilesDNS Zone Files:rhcf.local.db - $TTL 1H @ SOA dndsdhcp-vm root.rhcf-sat-vm.rhcf.local. ( 3 www.re
3H 1H
# Use this to enble / disable dynamic dns updates globally. #ddns-update-style none; # If this DHCP server is the official DHCP server for the local #
# product "S/390.*" # } #} ## Use user friendly names, instead of using WWIDs as names. defaults { user_friendly
# path_selector "round-robin 0" # failback manual # rr_weight
createrepo_flags: "-c cache -s sha" default_kickstart: /var/lib/cobbler/kickstarts/default.ks default_name_servers: [] default_ownership:
redhat_management_server: "sat-vm.cloud.rhcf.lab" redhat_management_key: "" redhat_management_permissive: 0 register_new_installs:
# deploy the test app cd $JBOSS_DIR/jbossas/server/default/deploy wget http://rhcf-sat-vm.cloud.lab.eng.bos.redhat.com/pub/kits/jboss-seam-booking-ds.
after=`expr $line + 1` sed -e "${after}d" -e "${before}d" agent-configuration.xml > agent-configuration.xml2 mv agent-configura
# This does not implicitly enable Sigar native system # debug mode. You must explicitly enable #
3 Red Hat and Cloud Computing 3.1 A Phased Approach to Cloud ComputingWhile virtualization is an important underlying technology with regards to clou
# is not defined this script will pass in a # default value. If this is set, it #
# #RHQ_AGENT_CMDLINE_OPTS="--daemon --nonative --cleanconfig" RHQ_AGENT_CMDLINE_OPTS="--daemon --cleanconfig" # RHQ_AGENT_IN_BA
# Also note that if your agent install directory # has spaces in its name, you might have to
#script default values: HOSTNAME=`hostname` IP=`ifconfig eth0 | grep 'inet addr' | sed 's/.*inet addr://' | sed 's/ .*//&apos
for i in $SVC_SCRIPT; do for dir in `grep RHQ_SERVER_HOME= $i | sed 's/[-a-zA-Z0-9_]*=//'`; do
;; --licenseurl=*) JON_LICENSE_URL="`echo $i | sed 's/[-a-zA-Z0-9]*=//'`" ;;
echo " - Specified JON local user does not exist; hence, it will be created." RECREATE_USER=1 fi # get jon and pop it into a
# IPv4 local connections: host all all 127.0.0.1/32 trust host all all 10.0.0.1/8 md5 # IP
# install JON license echo " * Downloading JON license..." wget $JON_LICENSE_URL -O /home/$JON_USER/$JON_ROOT/jbossas/server/default/deploy/
fi # Loop through the satellite_channels.list file and construct list of channels for satellite-sync SAT_CHANNELS="" for channel in $(cat s
Figure 3.2: Phased Deployment illustrates a phased approach to technology adoption starting with server consolidation using virtualization, then autom
$my_temp = select-template -SearchText $tempName if ($my_temp -eq $null) { Write-host "No matching templates found!" exit } elseif ($my_
$my_vm.DisplayType = 'VNC' $uv = update-vm -vmobject $my_vm $sv = start-vm -VmObject $my_vm } else { $my_vm = add-vm -name
echo echo "Remember to \"service iptables save\"" echo mrgMgr-config.sh# register system with satellite rpm -ivh http://RHCF-sat-v
COMMIT EOF #tie down nfs ports cat <<EOF>>/etc/sysconfig/nfs RQUOTAD_PORT=875 LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STAT
# Fields in comments reflect the default values [common] # database: dbname=cumin user=cumin host=localhost # brokers: localhost:5672 log-level: debug
IN_LOWPORT = 9600 # Plugin configuration MASTER.PLUGINS = $(LIB)/plugins/MgmtMasterPlugin-plugin.so QMF_BROKER_HOST = mrgmgr.rhcf.labMRG Manager Conf
# Give access to relayed communication # ALLOW_WRITE = $(ALLOW_WRITE), $(PRIVATE_HOST) CONDOR_HOST = $(FULL_HOSTNAME) COLLECTOR_NAME = RHCF Grid # COL
i http://csrc.nist.gov/groups/SNS/cloud-computing/ii http://csrc.nist.gov/groups/SNS/cloud-computing/cloud-def-v15.dociii http://www.redhat.com/rhel/s
and cost-effective cloud computing. Red Hat's cloud vision is unlike that of any other ITvendor. Red Hat recognizes that IT infrastructure is com
4 Red Hat Cloud Foundations Components 4.1 Red Hat Enterprise Linux 5Red Hat Enterprise Linux is the world's leading open source application pla
ease of use• Unified logging and debugging simplifies administrative work • Virtualized KVM guests can be run as managed services, which enables fail-
• Microsoft® Windows® Guests (32-bit & 64-bit): Microsoft Windows 2003 server, Microsoft Windows 2008 server, Microsoft Windows XP, SVVP, and WHQL
and deploy rich web applications, enterprise applications and SOA servicesEnterprise Platforms:• JBoss Enterprise Application Platform: Everything nee
integrates JBoss Application Server, with JBoss Hibernate, JBoss Seam, and other leadingopen source Java technologies from JBoss.org into a complete,
1801 Varsity Drive™Raleigh NC 27606-2072 USAPhone: +1 919 754 3700Phone: 888 733 4281Fax: +1 919 754 3701PO Box 13588Research Triangle Park NC 27709 U
4.5.3 Red Hat Enterprise MRG GridMRGvi Grid provides high throughput and high performance computing. Additionally, it enablesenterprises to move to a
5 RHCF Proof of Concept Configuration Customers often have different requirements and standards when it comes to what can be deployed. This proof of
By utilizing industry standard hardware for storage, servers and networking along with open source software that is fully supported and tested for com
5.1 Operating SystemsThe operating systems that drive the Red Hat Cloud Foundations stack are detailed in Table1: Operating Systems. The software sta
5.1.1 Applications and ToolsThe applications and tools that drive the Red Hat Cloud Foundations stack are shown in Table 2: Applications. The host th
5.2 HardwareThis case study used IBM servers and HP Fibre channel attached storage. Please review the following tables for details. 5.2.1 ServersThe
5.2.2 Storage Table 4: Storage Hardware Displays the storage hardware used in this environment. Please refer to the storage vendors documentation f
6 Deploying Red Hat Cloud Foundations – Infrastructure Services 6.1 OverviewFigure 6.1: Overview shows the steps required to deploy the Red Hat Cloud
6.2 This section moves into the details of what needs to happen to deploy this infrastructure. At a high level, the steps that need to be accomplish
6.3 Download SoftwareStart by downloading the appropriate software from http://rhn.redhat.com to prepare the environment for a Red Hat Cloud Foundati
Table of Contents 1 Executive Summary ...
f) On the “Software Downloads” screen, select “JBoss ON for SOA-P”• Download the “SOA Plugin Pack for JBoss ON 2.4.1” 6.3.1 Download ScriptsFind a te
Once the environment is set up, proceed with the deployment. 6.4 Deploy mgmt1 and ConfigureThe mgmt1 server is the catalyst for the rest of the enviro
NETMASK=255.255.248.0 TYPE=Bridge 8. Disable netfilter on bridges by adding the following to /etc/sysctl.conf# Disable netfilter on bridges. net.bridg
| |- 2:0:2:3 sdh 8:112 active ready running | |- 1:0:3:3 sdi 8:128 active ready running | `- 2:0:3:3 sdj 8:144 active ready running `-+- policy='
IP Port Number Protocol Component 5404, 5405 UDP corosync / cman (Cluster Manager)11111 TCP ricci (part of Conga remote agent)21064 TCP dlm (distribut
6.4.1 Set up the Logical Volumes for the Virtual MachinesFor this section, a SAN LUN with at least 500GB of free space will need to be presented to m
1. Change “Memory (RAM)” to “8192” MB2. Change “CPUs” to “8”3. Click “Forward”4. On “Step 4 of 5”1. Select “Select managed or other existing storage”
Channel Name Purposerhel-x86_64-server-6Red Hat Enterprise Linux (v. 6 for 64-bit AMD64 / Intel64 Server)Operating Systemrhn-tools-rhel-x86_64-server-
and place all custom rules in this chain. Please refer to the Red Hat Security Guide1 for more information on using iptables IP Port Number Protocol C
6.6 Create Kickstart Profiles and Activation Keys 6.6.1 Create Activation KeysTarget System: Browser with access to sat-vmCreate a Red Hat Enterprise
6.5.1 Deploy the Satellite Virtual Machine ...
• “RHN Tools for RHEL (v. 6 for 64-bit x86_64”• “RHEL Server Resilient Storage (v. 6 for 64-bit x86_64)”2. Click “Update Key” 6.6.2 Create Kickstart P
7. Click “Finish”Create a Red Hat Enterprise Linux 5 Base Virtual Machine Kickstart Profile1. Click “Systems” in the top navigation pane2. On the left
Create a Red Hat Enterprise Linux 6 Clustering Kickstart Profile and Associate Activation Key1. Click “Systems” in the top navigation pane2. On the le
8. Click “Activation Keys” in the upper navigation menu1. In the “Kickstart Details” screen, select the “RHEVKVMHYPER” key2. Click “Update Activation
1. Use the example dhcp.conf file to get started with a template.# cat /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample > /etc/dhcp/dhcpd.confSee Append
# yum install virtio-win# virt-manager3. Click the “New” button on the top navigation pane.1. On “Step 1”1. Provide a virtual machine name2. Choose “L
www.redhat.com 46
3. On “Step 3”1. Change “Memory (RAM)” to “8092” MB2. Change “CPUs” to “2”3. Click “Forward” as shown in Figure 6.4: virt-manager Memory for RHEVM
4. On “Step 4”1. Select “Select managed or other existing storage” and browse out to the logical volume that was created earlier: lv_rhevm2. Click “Fo
5. On “Step 5”1. Check the “Customize Configuration before install” check-box as shown in Figure 6.6: RHEVM-M Customize
9 Deploy and Scale Applications ...
2. Click “Finish”1. On the “Basic Details” screen, click “Add Hardware” on the left navigation panel www.redhat.com 50Figure 6.6: RHEVM-M Customize
2. Click “Forward” on Adding Virtual Hardware screen as shown in Figure6.7: RHEVM Add Hardware 1. Browse to the virtio-win.vfd drivers1. Click “Forwar
3. Close the “Add Hardware” window 6. Click the “Open” button on the top navigation pane to open a console to the virtual machine and perform the inst
7. On the “Where do you want to install Windows” screen1. Click “Load Driver”8. On the “Load Driver” screen1. Click “Browse”9. On the “Browse for Fold
7. Enable Remote Desktop on the Microsoft Windows virtual machine8. Enable the appropriate ports via the Microsoft Windows Firewall configuration util
6.8.2.3 Install Red Hat Enterprise Virtualization ManagerTarget System: rhevm-vm1. Copy the RHEV Manager software to the rhevm-vm server 1. winscpxi
--distro="rhevh" \--kopts="storage_init=/dev/sda storage_vol=::::: management_server=rhcf-rhevm-vm.cloud.lab.eng.bos.redhat.com netcons
1. PXE boot the RHEV-H server and install.2. Add to DNS / DHCP 6.9.3 Approve RHEV HypervisorTarget System: RHEV-M Virtual Machine1. On the “Hosts” tab
5. Enable Power Management and provide appropriate entries• Power management tests will only work when there are at least two nodes in the cluster. Th
2. Click on the “New” button on the upper navigation menu1. Provide a “Name”2. Provide a “Description”3. Change the type to “FCP”4. Click “OK”3. On th
1 Executive SummaryCloud computing is quickly becoming the platform of choice for users and businesses that want to reduce operating expenses and be
4. On the “New Data Center – Guide Me” Screen1. Click “Configure Storage”2. Provide “Name”3. Select the “Storage Type” of “FCP” 4. In the “Discovered
5. On the “New Data Center – Guide Me” Screen1. Click “Attach Storage”2. Select the “Storage Domain That Was Just Created”3. Click “OK”At this point,
virtual machine. Use virt-manager to deploy Red Hat Enterprise Linux 6 NFS virtual machine via PXE using the rhel6_base_virtual_machine kickstart prof
63 www.redhat.com
www.redhat.com 64
4. Attach the ISO domain to the data center1. Click on the “Data Centers” tab in the upper navigation menu1. Select the data center2. Click the “Stora
5. Click the “Activate” button on the lower navigation menuUpload the RHEV Guest Tools ISO 1. Click on “Start” | “All Programs” | “Red Hat” | “RHEV Ma
5. Close the ISO Uploader 67 www.red
7 Deploy Tenant Virtual Machines 7.1 OverviewThis section provides the details on how to deploy Red Hat Enterprise Linux virtual machines via PXE, IS
menu1. Provide a “Name”2. Provide a “Description”3. Change “Memory Size” to “1024 MB”4. Change the “Operating System” to “Red Hat Enterprise Linux 5.x
2 Cloud Computing StandardsCloud computing is a model for enabling convenient, on-demand network access to a sharedpool of configurable computing res
1. Take the defaults and click “OK”6. Click “Configure Virtual Disks”1. Provide “Size”2. Check “Wipe after delete”3. Click “OK”4. Click “Configure Lat
1. Click on the “Virtual Machines” tab on upper navigation menu2. Click on the “New Server” button on upper navigation menu3. On the “New Server Virtu
2. Open the console to the Microsoft Windows virtual machine3. Browse to the CD-ROM using Microsoft Windows Explorer and launch the RHEV-ToolsSetup ex
2. Right click on the VM and choose “Console” 8 Configure High Availability EnvironmentThis section covers setting up the Red Hat Enterprise Linux Hig
access to the fence devices. Please refer to the installation guidexiii for more information.Target System: rhevm-vm1. Click on the “Virtual Machines”
3. Configure iptables with the ports shown in Table 10: Luci FirewallIP Port Number Protocol Component 8084 TCP / UDP Luci11111 TCP / UDP ricciTable
Install second bare metal serverThe second bare metal server will serve as the second cluster node. This node provides a second host for the virtual
# rhn-bootstrap --activation-keys 1-cluster --allow-config-actions --allow-remote-commands --script bootstrap_cluster_node.sh1. This will produce some
www.redhat.com 78
79 www.redhat.com
maintains and supports the software, the cloud consumer just uses it. 2.1 Cloud Provider – Service ModelsA public cloud provides infrastructure that i
4. Click on “Manage Clusters” and click “Create” and add the nodes and click “Create Cluster” as shown in Figure 8.3: Luci Create Clusterwww.redhat.co
4. Once the cluster is added, click on the cluster name the nodes will be listed as shown in Figure 8.6: Luci Failover Domain
5. Configure fencing for the cluster1. Click on “Fence Devices” on the upper navigation menu, click “Add” as shown in Figure 8.5: Luci Fence Device6.
7. Share SSH keys between the two hosts (perform this on both nodes)1. Target System: mgmt1# ssh-keygen -t rsa# ssh-copy-id -i .ssh/id_rsa.pub mgmt22
5. Provide “Service Name”6. Check the box “Automatically Start this Service”7. Select the “Failover Domain”8. Click “Add a Resource”1. Select “Virtual
9 Deploy and Scale ApplicationsThis section discusses deploying and scaling three types of applications. The first application is a generic Java base
9.1.1 Configure GPG and Sign the javaApp packageTarget System: sat-vm1. Create GPG key for RPM# gpg –gen-key1. Take the defaults2. DSA3. 2048 Bits4.
# gpg --export --armor C15579CF > APP-RPM-GPG-KEY7. Import the key# rpm --import APP-RPM-GPG-KEY8. Check the signature on the rpm again# rpm --chec
--verbose javaApp-2-0.noarch.rpm 9.1.4 Create RHN Activation Key for Custom ChannelOn the RHN Satellite Server Target System: RHN web UI1. On the uppe
12. Click “Update Activation Keys” button13. Click “Scripts” in the upper navigation menu1. Click “Add New Kickstart Script” on the upper navigation m
premise or off-premises. By utilizing a private cloud service model an organization is able to take advantage of the elasticity and cost effectiveness
10.After the virtual machine is installed, log in and verify javaApp is running# pgrep javaApp 9.1.7 Create a Template from the javaApp Virtual Machin
2. Click “Activation Keys” on left navigation menu3. Click “Create New Key” on upper navigation menu4. Provide the following information1. Description
10. Click “Activation Keys” in the upper navigation menu1. Select “jon-server”2. Click “Update Activation Keys”11.Add a new Post script 1. Click “Scri
5. On the “New Virtual Machine – Guide Me” screen, click “Configure Later”6. Boot the “jon-server” virtual ma chine7. On the top navigation bar, click
ACCEPT iptables --append RHCF --protocol udp --destination-port 5432 --jump ACCEPT Remember to "service iptables save" Verify JBoss ON Serve
3. On “Kickstartable Tree” select “ks-rhel-x86_64-server-5-u6”4. On “Virtualization Type” select “KVM Virtualized Guest”5. Click “Next”5. On “Step 2”
8. Click the “Run” button in the top navigation menu and perform the install9. Click the “Console” button in the top navigation menu and monitor the P
Deploy JBoss Server Application AutomaticallyTarget System: rhevm-vm1. Click on the “Virtual Machines” tab on upper navigation menu2. Click on the “Ne
Target System: Browser with access to RHN 1. Click “System” on the upper navigation menu2. Select “Kickstart” on the left navigation menu3. Select the
9.4 Deploy and Scale Applications – MRG ManagerThe goal of this section is to install and configure MRG Grid and successfully run jobs on multiple no
Komentáře k této Příručce