Install OpenNebula Web-Based Management Console

Source: Internet
Author: User

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.