centos5.4安装convirt管理虚拟机

2015-11-20 hfreeze linux

利用convirt通过web图形化管理虚拟机也是一种方便的方法,适用于Fedora/RHEL/CentOS

convirt官网:http://www.convirture.com

http://www.convirture.com/wiki/index.php?title=C2_fedora_installation

1、先确认服务器已安装wget,没安装时需安装

#yum install wget socat

2、更新安装所需的源

###5.0的源###

#cd /etc/yum.repos.d
#wget --no-cache http://www.convirture.com/repos/definitions/rhel/5.x/convirt.repo

###6.0的源###

wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo

3、设置代理

export http_proxy="http://company-proxy-server:80"

4、下载安装所需的文件

wget --no-cache http://www.convirture.com/downloads/convirt/2.0.1/convirt-install-2.0.1.tar.gz
wget --no-cache http://www.convirture.com/downloads/convirt/2.0.1/convirt-2.0.1.tar.gz
wget --no-cache http://www.convirture.com/downloads/convirture-tools/2.0.1/convirture-tools-2.0.1.tar.gz

5、解压安装文件

#tar -xzf convirt-install-2.0.1.tar.gz

6、开始安装

#cd convirt-install/install/cms/scripts/
# ./install_dependencies

安装完成后会提示连接数据库的一些信息,根据提示操作即可

数据库密码设置为convirt ,等安装完后再更改

7、添加数据库信息并重启数据库

#vim /etc/my.cnf

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql

##添加以下两行
innodb_buffer_pool_size=1G
innodb_additional_mem_pool_size=20M

#/etc/init.d/mysqld restart

8、安装convirt

设置代理

#export http_proxy="http://company-proxy-server:80"

修改convirt-install-2.0.1的安装信息

#vim convirt-install/install/cms/scripts/install_config

CONVIRT_BASE=~

改成

CONVIRT_BASE=~/cms

##需先在用户目录下新建文件夹cms,用来把convirt-2.0.1解压到该文件夹下

解压convirt-2.0.1

#source convirt-install/install/cms/scripts/install_config
#tar -xzf ./convirt-2.0.1.tar.gz -C $CONVIRT_BASE

安装 TurboGears

#./convirt-install/install/cms/scripts/setup_tg2

设置convirt数据库连接信息

#vim cms/convirt/src/convirt/web/convirt/development.ini

##修改以下信息

sqlalchemy.url=mysql://root:convirt@localhost:3306/convirt?charset=utf8

运行安装

#./convirt-install/install/cms/scripts/setup_convirt

需允许端口通过

#iptables -I INPUT -p tcp --dport 8081 -j ACCEPT

9、启动

#cd ~/convirt 
#./convirt-ctl start

10、打开页面

http://ip:8081

Powered by emlog