Centos6 quick installation of opennebula3.8.14.2.0

Source: Internet
Author: User
Tags yum repolist
Method 1 centos version 6.4, has provided a packaged opennebula in the centos library, the current version is 3.8.11. Install CentOS-testingrepository # cdetcyum. repos. d # curl-Odev.centos.orgcentos6opennebulaopennebula-testing.repo # yumrepolist2. install ope

Method 1 centos version 6.4. A packaged opennebula has been provided in the centos library. The current version is 3.8.1. install CentOS-testing repository # cd/etc/yum. repos. d # curl-O http://dev.centos.org/centos/6/opennebula/opennebula-testing.repo # yum repolist 2. install ope

Method 1

Centos version 6.4 has provided a packaged opennebula in the centos library. The current version is 3.8.1.

1. Install CentOS-testing repository
# cd /etc/yum.repos.d# curl -O http://dev.centos.org/centos/6/opennebula/opennebula-testing.repo
# yum repolist
2. Install the opennebula package

Front-End server Installation: opennebula-server opennebula-sunstone

Node installation: opennebula-node-kvm

I used a machine as both a front-end server and a working node.

yum install opennebula-server opennebula-sunstone opennebula-node-kvm
3. Set the network

$ Brctl show

Bridge name bridge id STPenabled interfaces

Br0 8000.000000000000 no eth0

Reference: http://opennebula.org/documentation:rel4.2:plan#networking

Bridge setting reference: http://wiki.dzsc.com/info/8659.html http://hi.baidu.com/renchunyun/item/cc0dbb1d8799e9797b5f25c6

If the centos 6.4 bridge fails to be set, the following error is returned:
Original Nic eth0: Connection activation failed: Master connection not found or invalid
Bridge Nic br0: Conncetion activation failed: Failed to determine connection's virtual interface name

The reason is that NetworkManager takes over the network. solution:

chkconfig NetworkManager offchkconfig –levels 35 network on/etc/init.d/NetworkManager stop/etc/init.d/network restart

Reference: http://amutu.com/blog/2013/03/centos_bridge_devic/

4. Configure NFS

If you only use one machine as the front-end host and node, you can skip this step.


5. Configure ssh password-free Login

su - oneadmin ssh-keygen –t dsa   cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

Chmod600 ~ /. Ssh/authorized_keys

Add the following content~ /. Ssh/config

    Host *        StrictHostKeyChecking no        UserKnownHostsFile /dev/null

Copy~ /. SshTo all work nodes: (this part is omitted if only one machine is used)

    scp -r ~/.ssh node1:    scp -r ~/.ssh node2:...

Use oneadmin to test whether ssh localhost is successful

I have created a user and set it to log on to localhost. The reason is that selinux is on, because the home of oneadmin is under/var/lib/one and not under/home/, selinux is blocked and selinux is disabled. This official document is not clear, and I have been checking the cause for two days.

6. Start the service
    $ service opennebula start    $service opennebula-sunstone start    $service opennebula-occi start
7. log on to the system

Http: // 10.1.81.20.: 9869/
Cat/var/lib/one/. one/one_auth check the login name and password


Add host

 $ onehost create localhost -i im_kvm -v vmm_kvm -n dummy


If it fails, view the log/var/log/one/oned. log.


If you log on to this address from another IP address, you need to modify sunstone remote login, modify etc/one/sunstone-server.conf

: Host: 0.0.0.0

You can.

Method 2

You can download the rpm package from the official website to install the new version.

1. Install the epel Source

# yum install wget# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm# rpm -ivh epel-release-6-8.noarch.rpm# yum update

2. Download and install

Download Page: http://downloads.opennebula.org/


Download 4.2.0 CentOS 6 tarball


tar xvf CentOS-6-opennebula-4.2.0-1.tar.gz cd opennebula-4.2.0-1/  yum localinstall opennebula-common-4.2.0-1.x86_64.rpm   yum localinstall opennebula-ruby-4.2.0-1.x86_64.rpm   yum localinstall opennebula-4.2.0-1.x86_64.rpm   yum localinstall opennebula-sunstone-4.2.0-1.x86_64.rpm   yum localinstall opennebula-server-4.2.0-1.x86_64.rpm 
Install kvm and opennebula-node-kvm on the computing node:
yum install qemu-kvm qemu-kvm-tools libvirtyum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm 
Enable the service:
/etc/init.d/libvirtd start  206  service opennebula start  207  chkconfig opennebula on  208  service opennebula-sunstone start  209  chkconfig opennebula-sunstone on
Open the browser and access the http: // 10.1.81.20.: 9869 logon interface. What is the login user name and password? The username and password have been randomly generated during installation. oneadmin is the username, followed by the password
# cat /var/lib/one/.one/one_auth
Page effect:


For more information, see method 1.


Reference: http://www.aikaiyuan.com/4891.html

Http://www.vpsee.com/2013/05/install-opennebula-4-0-on-centos-6-4/

Http://blog.chinaunix.net/uid-20940095-id-3561376.html

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.