下载地址:
https://download.zhoufengjie.cn/document/os/linuxos/www.zhoufengjie.cn-RHCA318-rhevm-el7-2.txt
https://download.zhoufengjie.cn/document/os/linuxos/www.zhoufengjie.cn-RHCA318-rhevm-el7.docx
RHEV3.5考试说明
考试前一定要看Configure Information,这里会提供RHEVM和RHEVH的root密码。
1.一台物理机,注册考试信息后,无需密码直接进入桌面,点击桌面的View Exam查看考题,VM console可以控制该主机上的虚拟机,只有一台虚拟机(即RHEVM),该虚拟机的root密码在考试说明信息中有提供,在该系统上安装rhevm,该系统yum源已经配好,有图形界面。
Install Red Hat Enterprise Virtualization Manager
Install the Red Hat Enterprise Virtualization Manager(RHEV-M) on rhevm.pod0.example.com. This system has been pre-configured to point to the YUM repositories containing the packages you will need.
RHEV-M should be configured as follows:
Use the default port numbers for HTTP and HTTPS.
The host FQDN should be rhevm.pod0.example.com.
Use Ablerate9 for all passwords.
The organization name should be pod0.
The default DataCenterr Storage type should be iSCSI.
Do not configure an NFS export.
RHEV-M should be accessibe from all systems in pod0.example.com
#################################################
sh root@rhevm.podX.example.com
#cd /etc/yum.repos.d/
#wget http://172.25.254.254/materials/rhevm.repo
#yum repolist
#yum update && reboot
#yum -y install rhevm rehvm-dwh rhevm-reports
#engine-setup
>注意,设置Organizaion Name时,默认推荐值和考题给的不一致,需要手动输入考题给的组织名称,为doaminX(X为座位号)
>不需要为ISO域配置NFS共享,每个人的物理机有一个提前做好的NFS共享。
#################################################
2. 添加IPA活动目录无变化,使用engine-manage-domains命令加入域即可 (考题会提供账户和密码)。
*. Bind your RHEV-M system to the domain managed by the IPA server domain example.com.
#################################################
#engine-manage-domains add –domain=example.com –provider=IPA –user=rhevadmin
考题中提供了域的名称(such as:domain4.example.com)、账户和密码,添加完成后一定要重启RHEVM
#service ovirt-engine restart
立刻重新打开RHEVM页面可能会报jboss错误,因为很多东西在后台启动需要时间,稍等片刻就好。
#################################################
3.安装rhevh(有变化:H端是一个独立的物理机,该物理机已经安装了红帽的系统,不是裸机,系统root密码会提供,跟rhevm端密码一致,因此在该主机安装vdsm软件并启动服务即可完成H端的实验,该主机yum源已经配置完成。注意如果启动服务时报错:libvirtd,根据提示运行vdsm-tool –configure –force即可),返回rhevm的web页面在host下面选新主机,输入h端主机名称、ip、root密码即可将h端加入m端。具体操作如下:(使用root账户登录rhevh主机)
Your uninstalled system should PXE boot into a RHEV-H hypervisor install. Install RHEV-H on this system according to the following guidelines:
The administrator password should be Ablerate9.
ssh authentication should be enabled
the hostname should be rhevh.pod0.example.com
Networking should be configured as follows:
No VLAN support
IPv4 address:172.25.X.225
Netmask:255.255.255.0
Gateway:172.25.X.254
DNS:172.25.X.254
NTP:172.25.X.254
Do NOT register your hypervisor with RHN.
You do not need to configure power managerment for your virtual systems or virtual system pools.
#################################################
#thin method on servera:
#fat method on serverb:
#cd /etc/yum.repos.d/
#wget http://classroom.example.com/materials/rhevh.repo
#yum -y install vdsm
#service vdsmd start (实际考试是RHEL6.6的系统,模拟环境是RHEL7,注意启动服务的命令不同)
RHEL6启动服务使用service,RHEL7启动服务使用systemctl
注意:如果提示libvirtd相关操作信息,无法启动服务,则执行如下命令即可:
#vdsm-tool configure –force
#chkconfig vdsmd on
考试对数据中心和集群的名称有要求,可以将默认的default修改名称,也可以创建新的符合要求的数据中心和集群。
登录RHEVM的web管理端页面,将RHEVH加入Host列表:
RHEVH的名称,IP地址,root密码,考题中均会提供。
#################################################
4.创建data域和iso域无变化。
Configure a RHEV-m Data Center named exam0. The data center should contain a cluster capable of supporting 64-bit operating systems named cluster0. The data center should use the following resources:
an iSCSI data domain named data that uses the target exported by rhevm.pod0.example.com.
a NFS ISO domain named iso that uses the NFS export at workstation.pod0.example.com:/exports
Notice: In test exam environment, No NFS server provides that share, need you prepare a NFS share first!
#################################################
iscsi:data domain,name :data
#rhevm change /etc/tgt/targets.conf add ip 172.25.0.225.then : restart tgt
add iscsc from rhevm web
nfs:iso domain,name:iso
#on workstion mation,vi /etc/exports
chown 36.36 /exports/
firewall-cmd –set-default-zone=trusted
firewall-cmd –reload
iptables -F
iptables -X
systemctl disable firewalld
systemctl stop firewalld
mkdir /exports -p
echo “/exports *(rw)” >> /etc/exports
exportfs -r
systemctl enable nfs-server
#add iscsi and nfs domain:
storage=>new=>write name and selecte data/iscsi
storage=>new=>write name and selecte iso/nfs
#################################################
5.上传红帽光盘镜像无变化,使用engine-iso-upload即可。
Configure your data center to support the installation of Red Hat Enterprise Linux and Microsoft Windows 7 using the ISO images found under /net/host.domainX.example.com/var/ftp/pub.
Notice: In test exam environment, you can found the iamges under http://classroom.example.com/materials/rhel-server-7.1-x86_64-boot.iso
#################################################
#wget http://classroom.example.com/materials/rhel-server-7.1-x86_64-boot.iso
#engine-iso-uploader -i iso upload rhel-server-7.1-x86_64-boot.iso
#################################################
6.配置账户,给账户添加权限无变化
The existing IPA server user rhevadmin should be able to login to the RHEV Manager console as a power user and should also have a capability named TEMPMGR which permits access to any aspect of managing virtual machine templates.
The existing IPA user vmadminX should be able to login to the RHEVM user portal for the purpose of starting and logging on to a virtual desktop system
#################################################
Configure=>new role(Roles)=>TEMPMGR
#select templates
Configure=>System Permissions=>add
#select:power user,TEMPMGR and PowerUser
Configure=>System Permissions=>add
#select:User Roles
#################################################
7.创建role角色,无变化
8.修改Mac地址无变化
*. Configure RHEV-M so that the network interfaces for your virtual systems have MAC addresses in the range:
52:54:00:00:00:10-52:54:00:00:00:FF
If configured properly,your virtual systems should receive IP addresses in the range 172.25.X.1-172.25.X.10
#################################################
#engine-config -s MacPoolRanges=52:54:00:00:00:10-52:54:00:00:00:FF
#/etc/init.d/ovirt-engine restart
#################################################
9.创建虚拟机无变化
Create and install a virtual server system named RHELserver that uses the storage in the exam0 data center according to the following requirement:
The system should be installed with Red Hat Enterprise Linux.
The system should have a 5 GiB virtual disk.
The system should be allocated 1024 MiB of memory.
The system should be up and running
The system should be installed using the kickstart file:http://classroom.example.com/materials/small-rhev.cfg. The password for this system will be RedHat62.
To install using kickstart:
Start the VM as you would for a normal installation.
When you see the initial splash screen, make sure Install or upgrade an existing system is hightlighted and press the Tab key.
Modify the line that reads:
vm linuz initrd.img
to read:
vmlinuz initrd.img ks=http://classroom.example.com/materials/small-rhev.cfg
and press the Retrun key.
#################################################
注意一定要给虚拟机添加默认网卡rhevm!考试时有人没有添加网卡,启动虚拟机后发现没有获取IP(连网卡都没有,怎么可能获取IP)
#################################################
10.创建快照(新题目,上课自己讲过,可以再看看视频)
Create a snapshot of RHELserver. The snapshot description must read RHEL Snapshot 1.
#################################################
制作快照,按考题要求输入描述信息即可,操作如下,因为下图中没有虚拟机,所以创建快照是灰色的。
将虚拟机关机,点击Virtual Machines,点击你需要做快照的虚拟机,点击Create Snapshot,在打开的窗口中输入描述信息即可。
#################################################
11.创建虚拟机池无变化。
Your RHEV-M system should provides a pool of Red Hat Enterprise Linux servers based off of the Red Hat Enterprise Linux VM you installed in an earlier step. The pool should configured as follows:
The pool should be named RHPOOL,
The pool should provide up to 3 virtual systems,
The user vmadmin0 should be able to connect to systems in this pool.
#################################################
#create template
rhtemplate
#edit template
touch /.unconfigured
rm -rf /etc/ssh/ssh_host_*
rm -rf /etc/udev/rules.d/70-*
#Remove the HWADDR line and UUID line from /etc/sysconfig/network-scripts/ifcfg-eth*
sed -i ‘/UUID/d’ /etc/sysconfig/network-script/ifcfg-eth0
hostnamectl set-hostname localhost.localdomain
#Optionally, delete all the logs from /var/log and build logs from /root.
rm -rf /var/log/*
rm -rf /root/*
history -c ; history -w
poweroff
#create rhpool
Pool=>new=>general
name:RHPOOL
Number of VMs:3
删除虚拟机的部分唯一信息,ssh的密钥文件、udev规则(实际考试有很多70开始的规则)、网卡配置文件中的MAC地址和UUID、创建/.unconfigured
关机制作模版即可,并根据模版创建考试要求的虚拟机池,池中提供3台虚拟机
#################################################
技巧:因为考试要求第一个虚拟机是要求启动的,因为刚刚做模版,并创建了/.unconfigured文件,所以这是启动系统是需要,做初始化配置的,包括IP、设置root密码等,所以可以使用刚才创建的快照直接还原快照即可!
还原快照的步骤:点击Virtual Machine菜单,选中需要还原快照的虚拟机,在下面详细面板中选择Snapshot,选中一个快照后点击Preview,开启虚拟机,并进入系统查看内容是否已经还原,如果已经还原,点击Snapshot里面的Commit提交即可。
总共11题,不考windows,不考日志收集,不考报表。