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

Web.com.ph: $50/month/1GB RAM/24GB SSD space/100GB bandwidth/KVM/Philippines

Web.com.ph is a Philippine merchant. We have prev...

CrownCloud: $5/month/2GB memory/30GB SSD space/2TB traffic/KVM/Los Angeles

CrownCloud, an American hosting provider, has bee...

zone.eu: You can register a .ee domain name for 8.37 euros per year

There are many .ee domain names that can be regis...

LAUNCH VPS: $5.95/month/2GB RAM/20GB SSD space/1TB bandwidth/KVM/Los Angeles

LAUNCH VPS, a US hosting provider, provides kvm v...

Uovz 2GB RAM 100Mbps Bandwidth Hong Kong CN2 KVM VPS Review

Details : Uovz: 40.8 yuan/month/512MB memory/40GB...

Ablenet: $5.8/month/512MB RAM/30GB SSD space/unlimited traffic/200Mbps/KVM/Japan

Ablenet, a long-established Japanese business, ha...

CenTex Hosting: $45/month/E3-1230/16GB RAM/1TB HDD/10TB bandwidth/Los Angeles

CenTex Hosting, an American hosting provider, has...

Netway: 108 yuan/month/1GB memory/50GB space/unlimited traffic/KVM/Thailand

Netway, a Thai merchant, is a formally registered...