Centos 7 installation of OpenNebula, create a KVM chicken tutorial

Centos 7 installation of OpenNebula, create a KVM chicken tutorial

OpenNebula is an open source cloud computing basic management tool that allows administrators to uniformly deploy, create, allocate and manage a large number of virtual machines in a data center, such as KVM, XEN, OpenVZ VPS, etc.

Control terminal: 1.1.1.1
Node side: 2.2.2.2

1. Console installation (based on Centos 7 system)
1. Disable SElinux
Edit /etc/selinux/config

 SELINUX=disabled

Then, reboot

2. Add opennebula official source

 cat /etc/yum.repos.d/opennebula.repo [opennebula] name=opennebula baseurl=http://downloads.opennebula.org/repo/5.2/CentOS/7/x86_64 enabled=1 gpgcheck=0 EOT

3. Install the software
a.

 yum install epel-release

b.

 yum install opennebula-server opennebula-sunstone opennebula-ruby opennebula-gate opennebula-flow

The following software is installed:
opennebula: Command Line Interface.
opennebula-server: Main OpenNebula daemon, scheduler, etc.
opennebula-sunstone: Sunstone (the GUI) and the EC2 API.
opennebula-ruby: Ruby Bindings.
opennebula-java: Java Bindings.
opennebula-gate: OneGate server that enables communication between VMs and OpenNebula.
opennebula-flow: OneFlow manages services and elasticity.
opennebula-node-kvm: Meta-package that installs the oneadmin user, libvirt and kvm.
opennebula-common: Common files for OpenNebula packages.
The above software configuration is located in /etc/one and /var/lib/one/remotes

4. Install Ruby Runtime

 /usr/share/one/install_gems

Select 1 and press Enter to install:
sqlite3 development library
mysql client development library
curl development library
libxml2 and libxslt development libraries
ruby development library
gcc and g++
make

5. Start OpenNebula

a. Log in as centos 7 user oneadmin and change the oneadmin password

 su oneadmin

Change password (in root mode)

 passwd oneadmin

b. Start opennebula

 systemctl start opennebula systemctl start opennebula-sunstone

or

 service opennebula start service opennebula-sunstone start

6. Check whether opennebula is installed successfully

 oneuser show

OpenNebula log location: /var/log/one

7. Turn off the firewall
systemctl stop firewalld.service #Stop firewall
systemctl disable firewalld.service #Disable firewall startup
firewall-cmd –state # View the default firewall status (notrunning is displayed when closed, and running is displayed when opened)

8. Log in to your server IP:9869
Username: oneadmin
Password: stored in /var/lib/one/.one/one_auth

2. Node side settings (based on centos 7)
1. Add opennebula official source

 cat /etc/yum.repos.d/opennebula.repo [opennebula] name=opennebula baseurl=http://downloads.opennebula.org/repo/5.2/CentOS/7/x86_64 enabled=1 gpgcheck=0 EOT

2. Install kvm

 yum install opennebula-node-kvm service libvirtd restart

3. Disable SElinux
Edit /etc/selinux/config

 SELINUX=disabled

4. Exchange SSH Key
a. Change the settings to interact with SSH
Because OpenNebula Front and Nodes communicate via SSH, SSH passwordless login should be set between Front and Nodes to avoid entering passwords when Front runs scripts or clones images on nodes. First, configure sshd on Front and Nodes (around lines 47 and 48):

 vi /etc/ssh/sshd_config RSAAuthentication yes PubkeyAuthentication yes /etc/init.d/sshd restart

b. Create interactive SSH
Console operation:

 ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub 2.2.2.2

Node-side operation:

 ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub 1.1.1.1

or

 scp -rp /var/lib/one/.ssh :/var/lib/one/ scp -rp /var/lib/one/.ssh :/var/lib/one/ scp -rp /var/lib/one/.ssh :/var/lib/one/

c. Create a network bridge

Official tutorial : http://docs.opennebula.org/

<<:  NetEngi: $6/month/1GB memory/20GB space/unlimited traffic/KVM/Russia/Ukraine

>>:  Hostwinds: $13.5/month/1GB memory/50GB space/unlimited traffic/KVM/Dallas/Seattle

Recommend

100TB: $5/month/512MB/25GB SSD/2TB bandwidth/KVM/Los Angeles/Free unlimited SSL

100TB, owned by uk2, provides vps, cloud hosting,...

Chicago VPS: $5/month/2GB memory/60GB space/2TB traffic/KVM/Los Angeles/New York

Both ChicagoVPS and HudsonValleyHost were acquire...

Superb: $2/first 2 months/2GB memory/80GB hard drive/2TB data transfer/Seattle

Superb is a long-established console provider wit...

$21/year/1G memory/40G space/750G traffic/OpenVZ VPS —— URPad

URPad has been introduced before. Overall, it is ...

DomainzClub: $5.95/year Comodo SSL certificate

DomainzClub's SSL certificates are relatively...

Ready Server: $69/month/8G memory/1TB hard disk/unlimited traffic/5 IP/Singapore

Ready Server, a Singapore hosting provider, is a ...

Sharktech: $10/month/2GB RAM/30GB SSD space/4TB bandwidth/KVM/Los Angeles/Denver

Sharktech, a long-established American hosting pr...