EX220
EX220
EX220
+++++++++++++++++++++++++++++++++
Prepare Setup: |
#rht-vmctl reset all |
#lab config-rhevm setup |
#lab finish-rhevm setup |
+++++++++++++++++++++++++++++++++
Exam CloudForms
* Create a custum category for user called brad, Provide the following
category information:
Name:sports
display name:spoorts
Single value:unchecked
* Create some tags in sports, the tags list as following:
baseball
football
runing
* Assign the tags sports to user brad.
* Assign the Provisioning Scope/All smarttag to the
host1.podX.example.com host and the dataX datastore in the cloud
infrastructure.
######################################################################
configuration Information
Before you begin,you should review some general configuration information
outlined in the following link:
Revisit Done:Additional configuration information.
EX220 Requirements
Perform all of the following steps.When you receive your results.these
items will be reported as a single score identif these requirements in
order to earn certification.
1.Deploy CloudForms
Download the CloudForms applicance template at
http://classroom.example.com/materials/cfme-rhevm-5.ova to ther following
requirements.
The CloudForms applicance template should be named
cloudForms3.1_Template
The virtual applicance is named cfme
The virtual applicance has an additional 4 GiB disk
The applicance uses spice for console access
The applicance memory size is 4096 MiB
The applicance has 2 virtual CPUs
The applicance virtual system has a MAC address of 52:54:00:00:XX:0C
#####################################################################
# Prepare Setup:do the line 48-86 |
#rht-vmctl reset all |
#lab config-rhevm setup |
#lab finish-rhevm setup |
#####################################################################
2.Add a provider
Add the RHEVM instance hosting your CloudFroms VM as an infrastructure
provider named RHEV.Configure capacity and application reporting af....
#####################################################################
#if install rhevm-reports,the cfme must be connect to rhevm of database,The
on rhevm create database,the database name is:cloudforms_history
#vim /var/lib/pgsql/data/pg_hba.conf
#Change before:
host all all 127.0.0.1/32 ident
host all all ::1/128 ident
#Changes:
host all all 0.0.0.0/0 md5
host all all ::1/128 trust
#####################################################################
#####################################################################
#On cfme web
Configure=>Setting=>Configuration=>
Basic Information:
Company Name:EX200
Appliance Name:EX220 EVM
NTP Servers:
Servers:classroom.example.com
Outgoing SMTP E-mail Server:
Host:localhost
Port:25
Domain:pod0.example.com
Authentication:none
From E-mail Address:root@cfme.pod0.example.com
Server Control:
Server Roles:#check all except "Database Synchronization"
Configure=>Setting=>CFME Region:Region0[0]=>C & U Collectiong
Clusters:
Collect for All clusters:check
Datastores:
Collect for All Datastores:check
Infrastructure=>Virtual Machines=>cfme=>Configuration=>Edig Management
Engine Relationship
Select Server:EX220 EVM(0000000000001)
Infrastructure=>Hosts=>host1.pod0.example.com=>Configuration=>Edit Selected
Host=>
Credentials:
Default:
User ID:root
Password:redhat
Password:redhat
#click Validate:success
#####################################################################
#####################################################################
Configure=>Access control=>Roles=>Configuration=>Add a new Role
Role Information:
Name:EvmRole-user-list_only
VM & Template Access Restriction:Only User or Group Owned
Product Features(Editing)
#check what exam want
Configure=>Access control=>Groups=>Configuration=>Add a new Group
Group Information:
Description:EvmGroup-user-list_only
Role:EvmRole-user-list_only
#####################################################################
#####################################################################
Configure=>Access control=>Users=>Configuration=>Add a new User
#the two users like exam
#####################################################################
#####################################################################
Configure=>Settings=>CFME Region:Region 0[0]=>EX220 Categories=>+#click add
Name:development_group
#Like the exam......
Configure=>Settings=>CFME Region:Region 0[0]=>EX220
Tags=>Category:development_group
#add tags like the exam....
...=>clusterX,datastore dataX and hypervisor host1.podX.example.com=>like
this:
Infrastructure=>host1.pod0.example.com=>Edig Tags
select a customer tag to assign:development_group,enginerring
#####################################################################
#####################################################################
#on rhevm server:
wget http://classroom.example.com/materials/small-rhel6.ova
engine-image-uploader -e export0 upload small-rhel6.ova
#on rhevm web:
Storage=>export0=>Template Import=>small-rhel6.4-1=>import
#on cfme web:
Infrastructure=>Virtual Machines=>All VMs & Templates=>Lifecycle=>Provision
VMs
=>small-rhel6.4-1(check)=>
Request:
E-Mail:root@rhevm.podX.example.com
First Name:FengJie
Last Name:Zhou
Purpose:
Tags:development_group:engineering
Catalog:
Name:small-rhel6.4-1
Provision Type:Native Clone
VM Name:small-1
Environment:
Host=>Name:host1.pod0.example.com
Datastore=>Name:data0
Hardware:
Memory(MB):1024
Network:
vlan:rhevm
#####################################################################
#####################################################################
#on rhevm server:
wget http://classroom.example.com/materials/rhel-server-6.5-x86_64-
custom.iso
engine-iso-uploader -i iso0 upload rhel-server-6.5-x86_64-custom.iso
#on cfme web:
Infrastructure=>PXE=>ISO Datastores=>Configuration=>Add a New ISO Datastore
Cloud/Infrastructure Provider:RHEV
Infrastructure=>PXE=>ISO Datastores=>RHEV=>Configuration=>Refresh
Relationships
#refresh always,until the iso image appear
Infrastructure=>PXE=>System Image Types=>Configuration=>Add a new System
Image Type=>
Name:RHEL6.5
Type:Vm
Infrastructure=>PXE=>ISO Datastores=>RHEV=>ISO Images=>rhel-server-6.5-
x86_64-custom.iso=>configuration=>Edit this ISO Image=>
Type:RHEL6.5
Infrastructure=>PXE=>Customization Templates=>Configuration=>Add a New
customization Template
Name:RHEL6.5_template Server
Image Type:RHEL6.5
Type:Kickstart
Script:#copy the content of
http://classroom.example.com/materials/rhel6.5-cust-template.ks
#####################################################################
#####################################################################
Infrastructure=>VMs & Templates=>Lifecycle=>Provision VMs
#click small-rhel6.4-1=>
Request:
E-Mail:root@rhevm.pod0.example.com
First Name:FengJie
Last Name:Zhou
Purpose:
Tag:development_group:engineering
Catalog:
Name:small-rhel6.4-1
Provision Type:ISO
Image:rhel-server-6.5-x86_64-custom.iso
VM Name:iso-1
Environment:
Host:host1.pod0.example.com
Datastore:data0
Network:
vlan:rhevm
Customize:
Credentials=>Root Password:ablerate
IP Address Information=>Address Mode:Static
IP Address Information=>Host Name:iso.pod0.example.com
IP Address Information=>IP Address:172.25.0.100
IP Address Information=>Subnet Mask:255.255.255.0
IP Address Information=>Gateway:172.25.0.254
#####################################################################
Control=>Policies=>Control Policies=>Vm Control
Policies=>Configuration=>Add a New Vm Control Policy
Description:VM suspend at tag assign
Control=>Policies Profiles=>Configuration=>Add a New Policy Profile
Description:VM suspend at tag assign
Available Policies:#check the policy we build
Control=>Policies Profiles=>#check the policy profile we
build=>Configuration=>Edig this Policy's Event assignments
Company Tag:#check the "Tag Request"
Control=>Policies=>Vm control Policies=>VM suspend at tag assign=>Tag
Request=>Configuration=>Edit Actions for this Policy Event
#check the "Suspend Virtual Machine"
Infrastructure=>VMs & Templates=>iso-1=>Policy=>Manage Policies
#Check the police we build
#####################################################################
11.Create a report
Create a new report called "Checking Boot Time" according to the following
requirements:
Menu Name:Checking Boot Time
Title:Checking Boot Time
Base the report on: VMs and Instances
Fields:
Name
Boot Time
Host Names
EVM Unique ID(Guid)
Save a text copy of the report in /root/rhev_VM_report.txt on rhevm.This
report should has ....
#####################################################################
Cloud Intelligence=>Reports=>configuration=>Add a new Report
Menu Name:Checking Boot Time
Title:Checking Boot Time
Base the report on:Checking Boot Time
Fields:
Name
Boot time
Host Names
EVM Unique ID(Guid)
Cloud Intelligence=>Reports=>EX220(All EVM Groups)=>Checking Boot
Time=>Queue
Save Reports=>#check the report=>#Download the txt file,and the
move to the /root/rhev_VM_report.txt
#####################################################################
12.Configure alerts
configure your CloudForms appliance that it send an alert when a virtual
system is powered off per the following specifications:
The alert is called "VM Power Off"
The alert checks for VM Power Off event on virtual machines
The alert belongs to a policy profile named "VM Power Off"
The alert sends an email message to alert@rhgls.podX.example.com.
Mail sent to this address can be viewed at http:/.../2/domain2.txt
The policy should be assigned to iso-1 at a minimum but you may
assign it to other virtual systems as well.
#####################################################################
Contorl=>Alerts=>Configuration=>Add a New Alert
Info:
Description:VM Power Off
Based On:VM and Instance
Driving Event:VM Operation:VM Power Off
E-mail:
Send an E-mail:checked
To(Click to remove):alert@rhgls.podX.example.com
Contorl=>Alert Profiles=>VM and instance Alert Profiles=>configuration=>Add
a New Vm and Instance Alert Profile
Descriptiong:VM Power off
Alert Selection:#check the "VM Power off"
Control=>Alert Profiles=>VM and Instance Alert Profiles=>VM Power Off(the
profile name of we build)=>Configuration=>Edit assignments for this Alert
Profile
Based On:VM and Instance
Assign To:Tagged VMs and Instances
Tag Category:development_group
Selections:
Tags:engineering
#####################################################################