Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

EX220

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 13

QUESTIONS

+++++++++++++++++++++++++++++++++
Prepare Setup: |
#rht-vmctl reset all |
#lab config-rhevm setup |
#lab finish-rhevm setup |
+++++++++++++++++++++++++++++++++

Exam CloudForms

1. Deploy a Cloudforms applicance on rhevm.podX.example.com.


* You can download he appliance image from
http://classroom.example.com/materials/cfme-rhevm-5.ova
* Use redhat for RHEVM admin user password
* Upload the appliance image into the exprot domain(exportX)
* Use the appliance image create a VM template, set the template name as
CFME_3.1

2.Create Cloudforms appliance database


Cloudforms should be configured as follows:
* Use the template CFME_3.1 create a Virtual Machine. One named CFME_VM.
* Create a database disk and attache to the CFME_VM virtual machine.
* Change the virtual machine CFME_VM's Network Interface Mac Address as
52:54:00:00:XX.OC.
* Notice the Mac Address XX is your Computer node number.
* Configure the Cloudforms applicance's database, use the vdb as the
database disk device.
* Use redhat as the database password, database region is your computer
node number(X).
* The Cloudroms appliance URL:http://cfme.podX.example.com
* Default Cloudfroms administrator(admin) with a password of smartvm.

3.Add a Provider to the Cloudforms appliance


* Configure the RHEVM data Warehouse
* Setup the Cloudforms be able to connect to the rhev database manager
from external ports.
* Use PostgreSQL Create a database on RHEVM, use postgres as the
administrator.
* Add a New Infrastructure Provider use the following Base Information:
Type:RedHat Enterprise Virtualization Manager
Nmae:test
IP Address:172.25.X.11
Api Port:443
* Setup the rhevm Credentials so cloudforms can retrieve detailed
information from the rhevm data warehouse.
* They all should have the following email scheme
"username"@domain12.example.com
* Setup the Host Credentials, use redhat as the root's password

4.Configure a Cloudforms appliance


The Cloudforms should be configured as following:
* Setup Cloudforms appliance name as "My EVM"
* Set classroom.example.com as cloudforms NTP server.
* Use Cloudforms roles Define it can allowed to do all.
* Enable clourforms collect for all clusters and datastores.
* Add a New Role called test_1.
* Create a Group users, assign role test_1 to it.
* Create a user use following information��
name:Bradford
User:brad
password:123456
email_address:student@dekstopX.example.com

5.Configure a SmartTags, the smarttags should be configured as following:

* 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.

6.Provisioning a new VM via Native Clone

* You can download a template for a small RHEL6.4 machine from


http://classroom.example.com/materials/small-rhel6.ova
* The new VM should be configured as follows:
Email:student@desktopX.example.com
Provision type:Native Clone
VM name:small_vm
Provision host:host1.podX.example.com
Disk Format:Thin

7.Setting ssh access

* The new vm small_vm should be accessible by ssh from other hosts.


* Log in as root(password redhat).

8.Create Contral Policy:

* Create a new virtual machine control policy called Smartstate.


* Assign Events VM Power On and VM Power On Request to Smartstate Policy.

9.Create a Condition to Smartstate policy.

* Create a condition for Smartstat policy called Less_than_4_hours.


* Condition that is true When a VM and Instance: Last Analysis Time was
performed less than four hours age.

10.Edit actions for Policy Event as follows:


* If All Conditions are true then trigger an action Generate log message.
* If Any Conditions are False then triggerr an action Generate log
message.

11.Ceate a New Policy Profile and apply the policy profile to VM

* Create poliby profile called "Very Smartstate" for Control Policy


Smartstate.
* Enter a description of "Very Smartstate".
* Apply the policy profile to virtual machine small_vm.

12.Create a Dashboard Widget

* Enter description of "list all virtual machines".


* Use "Virutal Machines","Hardware Information for VMs" as filter
condition.
* Use the follows Report Options:
Column1:Name
Column2:RAM
Column3:vCPUs
Column4:Controller Type
* This widget run Hourly,every Hour.
* This widget is visibility to EvmGroup-user.
SOLUTION

Additional configuration information


You have been provided with two physical systems for this exam. One system
is the system which is running the desktop on which you are viewing this
c... not have root access to this system. This system is hosting a virtual
system pre-configured with Red Hat Enterprose Virtualization Manager(RHEVM)
Note that since you do not have root access to the desktop system you will
not be able to preform exam work directly on that system.However you may
u... test services that you may need to configure as part of your work
during the exam.
Your other physical system has been installed with Red Hat Enterprise
Virtualization Hypervisor (RHEVM). This system has already been associated
with y... information about your RHEVM configuration will be found below.
The password for the root account for your exam systems is ablerate. Unless
otherwise specified.this will be the password for any accounts or services
or services ... connect and it should alse be the password you use for any
accounts that you may create.
The IP addresses for your systems are provided by DHCP however should you
deem it appropriate or necessary to reconfigure your systems to use static
IP following settings:
RHEVM:rhevm.podX.example.com.172.25.X.10
RHEVH:host1.podX.example.com.172.25.X.30
The network mask for all systems is 255.255.255.0
Your systems are in the DNS domain domain2.example.com. All systems in the
domain2.example.com DNS domain are in the 172.25.X.0/255.255.255.0 systems
in that subnet are in domain2.example.com. Unless otherwise specified.any
network services you are asked to implement should be accessible to
domain2.example.com
The default firewall configuration has been enabled however some requiemens
for the exam may require you to alter the default configuration.
The YUM repository fo the version of Red Hat Enterprise Linux you are using
for the exam can be accessed at: http:regls.domain2.example.com//rhel
Limited documentation may be found at http://rhgls.domain2.example.com/docs
Note that some items may depend on oter exam items.For example. You may be
asked to implement a specific set of restrictions for a user in one item
but the ... that user may be specified in a different item.

######################################################################

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

Once the cloudForms server is running.It must be possible to ping the


applicance useing the address cfme.pod0.example.com
Note:you will nedd to sure the default administrator password to access
the applicance.If you do not known what this is or do not recall it
Guid.After the CloudForms applicance has started,configure it as follows:
Set the timezones to your local regions.
The internal database uses the disk that you added earlier
The database region is X
Leave the administrator password set to the default value

#####################################################################
# Prepare Setup:do the line 48-86 |
#rht-vmctl reset all |
#lab config-rhevm setup |
#lab finish-rhevm setup |

#Install rhevm on rhevm.podX.example.com,(is install at exam,you can do it


with line 43-46)
engine-setup
#add host of host1.podX.example.com on rhevm web
Host=>New=>
Name:host1.pod0.example.com
Address:host1.pod0.example.com
Password:redhat
##host1.podX.example.com has nfs and stop the iptables,and then config
storage on rhevm web
#[root@host1 ~]# exportfs
#/storage/data <world>
#/storage/iso <world>
#/storage/export <world>
iptables -F
iptables -X
service iptables save
chkconfig iptables off

##configure the storage of :


#dataX host1.podX.example.com:/storage/data
#isoX host1.podX.example.com:/storage/iso
#exportX host1.podX.example.com:/storage/export
#Add Data storage type
Storage=>New Domain=>
Name:data0
Storage Type:Data/NFS
Use Host:host1.pod0.example.com
Export Path:host1.pod0.example.com:/storage/data
#Add ISO storage type
Storage=>New Domain=>
Name:iso0
Storage Type:ISO/NFS
Use Host:host1.pod0.example.com
Export Path:host1.pod0.example.com:/storage/iso
#Add Export storage type
Storage=>New Domain=>
Name:iso0
Storage Type:Export/NFS
Use Host:host1.pod0.example.com
Export Path:host1.pod0.example.com:/storage/export
#In rhevm,Upload template
wget http://classroom.example.com/materials/cfme-rhevm-5.ova
engine-image-uploader -e export0 upload cfme-rhevm-5.ova
#Import template on rhevm web
Storage=>export0=>Template Import=>Import
Templates=>[the template name]=>Edit
General:
Name:cloudForms3.1_Template
#Create Virtual Mathines
Virtual Machines=>New VM
General:
Based on Template:cloudForms3.1_Template
Name:cfme
nic1:ovirtmgmt/rhevm
System:
Memory Size:4096MB
Total virtual CPUs:2
Console:
Protocol:SPICE
Virtual Machines=>cfme(The VM)=>Disks=>Add
Size(GB):4
Virtual Machines=>cfme(The VM)=>Network interfaces=>Edit
Custom MAC address:52:54:00:00:00:0C
Virtual Machines=>cfme(The VM)=>RUN
#configure the cfme on rhevm web spice of cfme vty
#username:admin,passwod:smartvm
#config time zone
5(time zone)=>5(Asi)=>73(shanghai)=>2017-11-12(date)=>11:50:00(time)
#config cfme
8(config database)=>1(Create key)=>1(Internal)=>1(/dev/vdb)=>0(exam
num)=>redhat(the password of exam provide)

#####################################################################

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

echo "listen_addresses = '*'" >> /var/lib/pgsql/data/postgresql.conf


/etc/init.d/postgresql restart
psql -U postgres -h localhost
#CREATE ROLE cloudforms_history LOGIN unencrypted password 'redhat'
superuser valid until 'infinity';

#login cfme web portal,username:admin,password:smartvm


Infrastructure=>Provider=>Configuration=>Add a New Infrastructure Provider
Name:RHEV
Type:Red Hat Enterprise Virtualization
Host Name:rhevm.pod0.example.com
IP Address:172.25.0.11
API Port:443
Credentials:
Default:
User ID:admin@internal
Password:redhat
Verify Password:redhat
#click Validata:sucess
C & U Database:
User ID:cloudforms_history
Password:redhat
Verify Password:redhat
#click Validata:sucess

#####################################################################

3.Configure the CloudForms applicance


Configure your cloudForms applicance as follows:
Set the company named to EX220
The CloudForms applicance is named EX220 EVM
The cloudForms applicance uses NTP time services from
classroom.example.com
The CloudForms applicance uses localhost for Outgoing SMTP Email server
in domain podX.example.com.This smtp server doesn't use authentication.The
cloudForms applicance also uses root@cfme.podX.example.com "From Email
Address".
The CloudForms applicance performs capacity and utilization data
collection on all clusters and datastores
The CloudForms application recognizes that it is running on
cfme.podX.example.com
The Cloudforms applicance should get additional system infomation from
host1.podX.example.com
The CloudForms applicance handles all server roles except for Database
Synchronization

#####################################################################
#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

#####################################################################

4.Create a group with a custom role


Create a role named EvmRole-user-list_only that only allows access to the
allowing features:
Cloud Intelligence->DashBoard->View
Infrastructure->virtual Machines->VM Access Rules-View
Infrastructure->virtual Machines->VM Access Rules-Operate
Additionally,this role should be restricted to virtual machines of
templates that are owned by the user or group that has this role.
Create a group named EvmGroup-user-list_only that is assigned this role.

#####################################################################
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
#####################################################################

5.Create cloudForms users


Create the following CloudForms users:
Name:Fidel Peterson
User ID:fpeterson
Password:ablerate
Email:root@rhevm.podX.example.com
Group:EvmGroup-user-list_only
Name:Avery Folmer
User ID:afolmer
Password:ablerate
Email:root@rhevm.podX.example.com
Group:EvmGroup-user

#####################################################################
Configure=>Access control=>Users=>Configuration=>Add a new User
#the two users like exam
#####################################################################

6.configure smart tags


Your cluster clusterX,datastore dataX and hypervisor
host1.podX.example.com should be assigne..
Configure a new category on your ClodForms applicance that meets the
following requirements:
Name:development_group
Display name:development_group
Description:development_group
Show in console:true
Capture C&U Data by Tag:false
The development_group category should have the following tags:
Name:engineering
Display Name:engineering
Name:information_technology
Display Name:information_technology
Name:release_engineering
Diplay Name:release_engineering
The user account fpeterson should have two development_group tags
assigned to it:
engineering
information_technology
host1.podX.example.com should be assigned the tag
development_group:enginerring

#####################################################################
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
#####################################################################

7.Provision a VM via clone


The file http://classroom.example.com/materials/small-rhel6.ova contains a
template for a Red Hat Entrprise Linux virtual system.Configur.. is
possible to provision virtual systems using this template. Note that you
must also perform any steps necessary on your RHEVM environment the name of
the virtual system template.
Once you have configured the template,use it to provision a virtual system
on your CloudForms server as follows:
Name:small-1
Email address for reuest:root@rhevm.podX.example.com
Name for request:Use your name
Provision Type:Native Clone
Memory:1024
Disk:Thin provisioning
Tag:development_group:engineering
Host:host1.podX.example.com
Datasore:dataX
Network:rhevm
Note:you do not need to configure the root password for this system or
otherwise modify it beyond other than what is specified here.

#####################################################################
#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
#####################################################################

8.Create a customization template


the file http://classroom.example.com/materials/rhel-server-6.5-x86_64-
custom.iso contains a customized boot ISO a customization template that
uses this boot ISO according to the following requirements:
Name: RHEL6.5_template Server
Image Type: RHEL6.5
Type:kickstart
Script:http://classroom.example.com/materials/rhel6.5-cust-template.ks
Note:do not alter or modify this script in any way

#####################################################################
#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
#####################################################################

9.Provision a customized VM via ISO


Use the customization template RHEL6.5_template to create a virtual system
as follows:
Name:iso-1
Email:root@rhevm.podX.example.com
Name for request:Use your name
Tag:development_group:engineering
Disk Format:default
Host:host1.podX.example.com
Datastore:dataX
Network:rhevm
Root Password:ablerate
Static Network:
Host Name:iso.podX.example.com
IP Address:172.25.X.100
Subnet Mask:255.255.255.0
Gateway:172.25.X.254
DNS Server List:172.25.X.254

#####################################################################
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

#train ks is wrong,but exam is ok;


#Edit ip address messag in the vm
#####################################################################

10.Configure a control policy


configure a control that suspends a virtual system when a new tag is
assignd to the virtual system per the following:
The policy is called "VM suspend at tag assign"
The policy belong to a policy profile named "VM suspend at tag
assign"
The policy should apply to "Tag Request" events
The policy is assignd to iso-1
The policy should trigger a "Suspend Virtual Machine" action if the
virtual system is running on a host that is tagged..

#####################################################################
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
#####################################################################

You might also like