Difference between revisions of "OpenNebula: x86 (CentOS)"

From Define Wiki
Jump to navigation Jump to search
m
Line 28: Line 28:
 
yum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm
 
yum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
== Secure Shell Access (Front-End) ==
 +
You need to create ssh keys for the oneadmin user and configure the host machines so it can connect to them using ssh without need for a password.<br/>
 +
Follow these steps in the front-end:<br/>
 +
Generate oneadmin ssh keys
 +
<syntaxhighlight>
 +
$ ssh-keygen
 +
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
 +
 +
$ chmod 700 ~/.ssh/
 +
$ chmod 600 ~/.ssh/id_rsa.pub
 +
$ chmod 600 ~/.ssh/id_rsa
 +
$ chmod 600 ~/.ssh/authorized_keys
 +
</syntaxhighlight>
 +
Tell ssh client to not ask before adding hosts to known_hosts file. Also it is a good idea to reduced the connection timeout in case of network problems. This is configured into ~/.ssh/config, see man ssh_config for a complete reference.:
 +
<syntaxhighlight>
 +
$ cat ~/.ssh/config
 +
ConnectTimeout 5
 +
Host *
 +
    StrictHostKeyChecking no
 +
</syntaxhighlight>
 +
Finally, Copy the front-end /var/lib/one/.ssh directory to each one of the hosts in the same path

Revision as of 08:56, 19 August 2013

Download

http://downloads.opennebula.org/opennebula-4.2.0.tar.gz

Software component = OpenNebula 4.2.0 CentOS tarball

EPEL

wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -i epel-release-6-8.noarch.rpm

Install

tar zxf CentOS-6-opennebula-4.2.0-1.tar.gz
cd opennebula-4.2.0-1

Front-end

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-server-4.2.0-1.x86_64.rpm

Hosts

yum localinstall opennebula-common-4.2.0-1.x86_64.rpm
yum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm

Secure Shell Access (Front-End)

You need to create ssh keys for the oneadmin user and configure the host machines so it can connect to them using ssh without need for a password.
Follow these steps in the front-end:
Generate oneadmin ssh keys

$ ssh-keygen
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

$ chmod 700 ~/.ssh/
$ chmod 600 ~/.ssh/id_rsa.pub
$ chmod 600 ~/.ssh/id_rsa
$ chmod 600 ~/.ssh/authorized_keys

Tell ssh client to not ask before adding hosts to known_hosts file. Also it is a good idea to reduced the connection timeout in case of network problems. This is configured into ~/.ssh/config, see man ssh_config for a complete reference.:

$ cat ~/.ssh/config
ConnectTimeout 5
Host *
    StrictHostKeyChecking no

Finally, Copy the front-end /var/lib/one/.ssh directory to each one of the hosts in the same path