Frank的学习之路

RHCA_4.7_Cl220部署

rht-setcourse cl220
rht-vmctl start classroom
rht-setup-cfmepxe pxe 菜单重置
rht-vmctl start rhevm
桥接模式

kiosk环境配置
su -
Asimov 登陆密码
yum install spice-xpi 查看rhev虚拟机运行情况
cd /home/kiosk/Desktop/CL220/
rpm -ivh flash-player-npapi-24.0.0.186-release.x86_64.rpm 安装浏览器插件
host1 160G
ssh root@rhevm.pod0.example.com
lab config-rhevm setup 自动安装配置rhevm的
lab finish-rhevm setup 装完之后执行lab finish-rhevm setup将host1加进来
rhevm.pod0.example.com rhevm访问网址
登陆账号:admin 密码:redhat
internal 选择内网

Adding a provider
ssh root@rhevm.pod0.example.com redhat
yum install rhevm-reports -y cloudforms收集信息
engine-setup iptables/redhat 把report内容添加进去
CloudForms从rhevm获取数据
vim /var/lib/pgsql/data/pg_hba.conf
0.0.0.0/0 md5
::1/0 trust 修改访问

vim postgresql.conf
listen_addresses = '*' 增加监听
cat /etc/issue
service postgresql restart
psql -U postgres -h localhost
create role cloudforms_history LOGIN unencrypted password 'redhat' superuser
valid until 'infinity';
\q 退出sql

P20 练习Deploying a CloudForms Appliance
ssh root@host1.pod0.example.com redhat
showmount -e localhost
cd /storage/export/*
wget http://classroom.example.com/materials/cfme-rhevm-5.ova
tar xvf cfme-rhevm-5.ova
chown 36:36 * -R
或者
ssh root@rhevm.pod0.example.com redhat
engine-image-uploader -h
engine-image-uploader -e export0 upload cfme-rhevm-5.ova

修改名字
Templates
CFME_3.1_Template

CloudForms的初始化配置
Cloudforms需要一个后端的数据库支持
CloudForms初始化时,需要一个独立的磁盘来存储数据
如果是内部数据库,RHEV需要创建一块磁盘,并挂在虚拟机上
P27:Performing CloudForms Initial Configuration

通过console进入CFME虚拟机admin/smartvm P5.2 配置数据库
appliance配置 shift +12 退出

infrastructure --->provider

cfme.pod0.example.com
admin/redhat 登陆
infrastructure---Prividers---Add New infrrastructure Provider
rhev设置
red hat enterprise virtualization
rhevm.pod0.example.com rhevm域名
172.25.0.11 rhevm地址
443

admin@internal rhevm登录信息
redhat/redhat rhevm登录密码

C & U Database
cloudforms_history rhevm的report配置role
redhat/redhat engine-setup配置密码

rhevm导入模板
engine-image-uploader -e export0 upload cfme-rhevm-5.ova

Native Clone方式部署虚拟机
P85 Provisionging via Native Clone
showmount -e localhost
cd /storage/export/*
wget http://classroom.example.com/materials/small-rhel6.ova
tar xvf small-rhel6.ova
chown 36:36 * -R
rhevm.pod0.example.com admin/redhat 在export0导入模板
返回顶部