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 etcyum.repos.d# curl -Ohttpdev.centos.orgcentos6opennebulaopennebula-testing.repo
# yum repolist
2. Install the opennebula package
Front-End Server Installation: opennebula-serverand opennebula-Sunstone
Node installation: opennebula-node-KVM
I used a machine as both a front-end server and a working node.
yun install opennebula-serverand 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
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 systemHttp: // 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 and install a 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 user name, followed by a string of passwords
# 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