convirt集中管理平台搭建.docx
《convirt集中管理平台搭建.docx》由会员分享,可在线阅读,更多相关《convirt集中管理平台搭建.docx(13页珍藏版)》请在冰豆网上搜索。
convirt集中管理平台搭建
kvm虚拟化学习笔记(十九)之convirt集中管理平台搭建
作者:
koumm 发布日期:
2013-10-0809:
14:
26
∙情况说明:
(1)本文采用OEL6.3x64操作系统,需要有KVM安装环境。
(2)convirt2.1.1采用源码方式安装,convirt环境分别两部分,一部分是cms,用于管理kvm/xen虚拟主机上的虚拟机,一部分做为客户端安装到kvm/xen虚拟主机上。
(3)convirt2.1.1是开源的管理xen/kvm虚拟化管理工具,是众多开源工具中的一种。
1.安装convirt环境
(1)安装KVM环境
kvm虚拟化学习笔记
(一)之kvm虚拟化环境安装:
(2)准备convirt安装源
viewsourceprint?
1.#cd/etc/yum.repos.d
2.#wget--no-cache
(3)下载convirt与cms安装包
viewsourceprint?
1.#cd/root/
2.#wget--no-cache
3.#wget--no-cache
(4)安装convirt安装包
viewsourceprint?
1.#tar-xzvfconvirt-install-2.1.1.tar.gz
2.#cdconvirt-install/install/cms/scripts/&&./install_dependencies
viewsourceprint?
01.…
02.初始化MySQL数据库:
InstallingMySQLsystemtables...
03.OK
04.Fillinghelptables...
05.OK
06.Tostartmysqldatboot time youhavetocopy
07.support-files/mysql.servertotherightplace for yoursystem
08.PLEASEREMEMBERTOSETAPASSWORDFORTHEMySQLrootUSER!
09.To do so,starttheserver, then issuethefollowingcommands:
10./usr/bin/mysqladmin-urootpassword'new-password'
11./usr/bin/mysqladmin-uroot-hvmnode1password'new-password'
12.Alternativelyyoucanrun:
13./usr/bin/mysql_secure_installation
14.which willalsogiveyoutheoptionofremovingthe test
15.databasesandanonymoususercreatedbydefault. Thisis
16.stronglyrecommended for productionservers.
17.Seethemanual for more instructions.
18.YoucanstarttheMySQLdaemonwith:
19.cd /usr;/usr/bin/mysqld_safe&
20.Youcan test theMySQLdaemonwithmysql-test-run.pl
21.cd /usr/mysql-test ;perlmysql-test-run.pl
22.Pleasereportanyproblemswiththe/usr/bin/mysqlbugscript!
23.[确定]
24.正在启动mysqld:
[确定]
25.Runningmysql_secure_installation.
26.Currentrootpassword for freshinstallationisblank.Sosimplepressenter.
27.NOTE:
RUNNINGALLPARTSOFTHISSCRIPTISRECOMMENDEDFORALLMySQL
28.SERVERSINPRODUCTIONUSE!
PLEASEREADEACHSTEPCAREFULLY!
29.InordertologintoMySQLtosecureit,we'llneedthecurrent
30.password for therootuser. Ifyou'vejustinstalledMySQL,and
31.youhaven't set therootpasswordyet,thepasswordwillbeblank,
32.soyoushouldjustpressenterhere.
33.Entercurrentpassword for root(enter for none):
34.OK,successfullyusedpassword,movingon...
35.SettingtherootpasswordensuresthatnobodycanlogintotheMySQL
36.rootuserwithouttheproperauthorisation.
37.Setrootpassword?
[Y/n]y
38.Newpassword:
39.Re-enternewpassword:
40.Passwordupdatedsuccessfully!
41.Reloadingprivilegetables..
42....Success!
43.Bydefault,aMySQLinstallationhasananonymoususer,allowinganyone
44.tologintoMySQLwithouthavingtohaveauseraccountcreated for
45.them. Thisisintendedonly for testing,andto make theinstallation
46.goabitsmoother. Youshouldremovethembeforemovingintoa
47.productionenvironment.
48.Removeanonymous users?
[Y/n]y
49....Success!
50.Normally,rootshouldonlybeallowedtoconnectfrom'localhost'. This
51.ensuresthatsomeonecannotguessattherootpasswordfromthenetwork.
52.Disallowrootloginremotely?
[Y/n]y
53....Success!
54.Bydefault,MySQLcomeswithadatabasenamed'test'thatanyonecan
55.access. Thisisalsointendedonly for testing,andshouldberemoved
56.beforemovingintoaproductionenvironment.
57.Remove test databaseandaccesstoit?
[Y/n]y
58.-Dropping test database...
59....Success!
60.-Removingprivilegeson test database...
61....Success!
62.Reloadingtheprivilegetableswillensurethatallchangesmadesofar
63.willtakeeffectimmediately.
64.Reloadprivilegetablesnow?
[Y/n]y
65....Success!
66.Cleaningup...
67.All done!
Ifyou'vecompletedalloftheabovesteps,yourMySQL
68.installationshouldnowbesecure.
69.Thanks for usingMySQL!
70.mysqld(pid 2691)正在运行...
71.MySQLserviceisalreadyrunning.
72.Prerequsite for ConVirtManagementServer(CMS)installed.
说明:
安装过程会安装mysql数据库,并输入mysql数据库root帐号密码。
(5)修改mysql数据库配置文件
(6)解压CMS软件包并安装
viewsourceprint?
1.#cd/root/
2.#cdconvirt-install/install/cms/scripts/&&sourceinstall_config
3.#cd/root&&tar-xzfconvirt-2.1.1.tar.gz-C$CONVIRT_BASE
4.#./setup_tg2
5.#./setup_convirt
如果出现accessdeniedto‘root@localhost’
修改下配置文件中的mysql默认用户名密码为正确的root/passord:
~/convirt/src/convirt/web/convirt/development.ini
sqlalchemy.url=mysql:
//root:
convirt@localhost:
3306/convirt?
charset=utf8
安装过程略…
(7)启动与关闭convirtCMS
启动convirt
关闭convirt
viewsourceprint?
1.#/root/convirt/convirt-ctlstop
(8)打开convirt2.1.1
http:
//192.168.233.170:
8081
输入admin/admin
还需要在kvm虚拟主机上安装convirt-tools工具之后才能添加。
2.在KVM虚拟主机上安装convirt-tools工具
注:
在kvm虚拟主机上安装convirt-tools工具。
viewsourceprint?
1.#wget
2.#tarzxvfconvirture-tools-2.1.1.tar.gz
3.#cdconvirture-tools/install/managed_server/scripts
4.#./convirt-toolinstall_dependencies
5.#./convirt-toolsetup
3.在convirtcms上添加KVM虚拟主机
添加KVM虚拟主机。
本文只是一个convirt管理工具开端,也希望能够用好,需要说明的是之前在安装convirt2.0.1管理RHEL/Centosxen虚拟化的时候真是花了不少时间,发现convirt管理kvm还是问题少一些。