We generally use the onehost, onevm, and onevnet command line tools to manage the OpenNebula cloud computing platform. However, a project team developed the OpenNebula Management Console Management tool based on PHP and MySQL, the installation and configuration are not very complex, which is similar to configuring a common CMS system. Last week, we installed and configured a minimum OpenNebula cloud computing platform on two servers. We will test OpenNebula in the production environment for a while, and strive to replace our own scripts with OpenNebula, and gradually use this platform to centrally manage our Xen servers. VPSee tried this Web-based OpenNebula management tool over the weekend. The interface is simple, clear, and easy to use. This console management tool (onemc) can only be installed on Front-End servers. If you do not know much about OpenNebula, you can install and configure OpenNebula on CentOS.
Install necessary software packages
Onemc is based on PHP and MySQL and requires the installation of some necessary software packages:
# yum install php php-mysql mysql-server php-curl php-xmlrpc httpd \php-pear php-devel php-adodb
Download onemc
Download and decompress the onemc-1.0.0.tar.gz directly placed in the default directory of apache (too lazy to change httpd. conf ):
# cd /var/www/html# wget http://dev.opennebula.org/attachments/download/128/onemc-1.0.0.tar.gz# tar zxvf onemc-1.0.0.tar.gz# cd onemc
Configure Database
# mysql -uroot -pEnter password:mysql> create database onemc;mysql> create user 'oneadmin'@'localhost' identified by 'oneadmin';mysql> grant all privileges on onemc.* to 'oneadmin'@'localhost';mysql> \q# mysql -u oneadmin -p onemc < /var/www/html/onemc/include/mysql.sql
Configure onemc
# vi /var/www/html/onemc/include/config.php...// vmm: kvm or xen$vmm = "xen";...// ADODB settings$adodb_type = "mysql";$adodb_server = "localhost";$adodb_user = "oneadmin";$adodb_pass = "oneadmin";$adodb_name = "onemc";...
Login
If the http_proxy environment variable is set, disable it first, and then restart one and httpd:
# unset http_proxy# one stop; one start# /etc/init.d/httpd restart
Open http: // 172.16.39.110/onemc/index. the php page will display the logon information (172.16.39.110 is the IP address of the OpenNebula front-end). the user name and password are the password set in one_auth when OpenNebula is installed and configured (cat "oneadmin: password "> one_auth ).
Http://www.vpsee.com/2011/03/install-opennebula-management-console-on-centos/
Edit recommendations]