Install OpenNebula in CentOS 6.4

Source: Internet
Author: User

Install OpenNebula in CentOS 6.4

Install OpenNebula in CentOS 6.4

# Install the 163 Source
Http://mirrors.163.com/.help/CentOS6-Base-163.repo
# Install the epel Source
Wget http://dl.Fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Yum localinstall epel -*
# Verify whether the installation is successful:
Yum repolist
# Install numpy (python-devel required)
Address: http://www.scipy.org/scipylib/download.html
# Decompress the package and enter the cd
Python setup. py install
# Download the installation package from the opennebula Official Website
Address: http://opennebula.org/software/
Cd opennebula-4.12.1-1
Yum localinstall opennebula-ruby-4.12.1-1.x86_64.rpm

Error:
Error: Package: opennebula-ruby-4.12.1-1.x86_64 (/opennebula-ruby-4.12.1-1.x86_64)
Requires: rubygem-sqlite3-ruby
Error: Package: opennebula-ruby-4.12.1-1.x86_64 (/opennebula-ruby-4.12.1-1.x86_64)
Requires: rubygem-uuidtools
Error: Package: opennebula-ruby-4.12.1-1.x86_64 (/opennebula-ruby-4.12.1-1.x86_64)
Requires: ruby-mysql
Error: Package: opennebula-ruby-4.12.1-1.x86_64 (/opennebula-ruby-4.12.1-1.x86_64)
Requires: rubygem-sequel
You cocould try using -- skip-broken to work around the problem
You cocould try running: rpm-Va -- nofiles -- nodigest

Solution:
Yum install ruby-devel rubygems
Gem install rack
Gem install sqlite3-ruby
This is still a variety of failures, and later found that the ruby version automatically installed by yum is too low, re-install the ruby version later
Yum remove ruby
Https://www.ruby-lang.org/en/downloadsdownload Ruby
Tar zxvf ruby-2.2.2-tar.gz
Cd ruby-2.2.2
./Configure -- with-openssl-dir =/usr/lib/openssl

Make
Make install

Cd opennebula-4.12.1-1
Yum localinstall opennebula-ruby-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-common-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-sunstone-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-server-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-java-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-gate-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-flow-4.12.1-1.x86_64.rpm
Yum localinstall opennebula-debuginfo-4.12.0-1.x86_64.rpm
Yum localinstall opennebula-node-kvm-4.12.0-1.x86_64.rpm

Vi/etc/sysconfig/selinux
# Modify
SELINUX = disabled
Setenforce 0
Getenforce
# Display Permissive
Systemctl stop iptables
# The systemctl command in centos6.4 does not exist. We use chkconfig instead.
Chkconfig iptables off

Vim/etc/one/oned. conf
# Cancel mysql comments
DEFAULT_DEVICE_PREFIX = "vd"

# Sample configuration for MySQL (mariadb)
DB = [backend = "mysql ",
Server = "localhost ",
Port = 0,
User = "oneadmin ",
Passwd = "oneadmin ",
Db_name = "opennebula"]

/Etc/init. d/mysqld start
# For the following database settings, see
Mysql-u root-p
# In mysql
/* Grant all privileges on opennebula. * TO 'oneadmin' identified by 'oneadmin ';*/
The above is the settings on the official website. If I find any problems, set them as follows:
Grant all privileges on opennebula. * TO 'oneadmin' @ 'localhost' identified by 'oneadmin'
Set global transaction isolation level read committed;
Exit;

Su oneadmin
One start

Error:
# Oned failed to start/usr/bin/one: line 117 14118 Terminated
Rm-I/var/lib/one/. one/sunstone_auth onegate_auth oneflow_auth occi_auth ec2_auth1
One start
Sunstone-server start

Error:
# Cannot load such file -- sinatra
Gem install sinatra
# Cannot load such file -- builder
Gem install builder1
Sunstone-server start

Error:
# Use localhost: 9869 to log on, but cannot use an IP address
Vim/etc/one/sunstone-server.conf
Change: host: 127.0.0.1 to: host: 0.0.0.0

Forget the default password of oneadmin
Opennebula uses sha1 to encrypt the user password. Therefore, we use the sha1 encryptor to encrypt 123456 and obtain the encrypted string. Then, we log on to the database and record the user information in the user_pool table in the opennebula database, in addition, the data in the body field is the password encryption string of the corresponding user.
We use the encrypted string to replace the data in the body field of the username oneadmin column in The user_pool table.
Then modify the/var/lib/one/. one/one_auth file content: oneadmin: 123456
Now, you can log on with the password 123456.

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.