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

GreybeardTech: $6/month/1GB RAM/20GB SSD space/1TB bandwidth/KVM/USA

GreybeardTech seems to be a new hosting provider ...

OGOHosting: $6/year/20GB space/5TB traffic/unlimited SSL/New York

OGOHosting, a newly established hosting provider,...

$5.95/month/1GB/80G space/5T traffic dedicated server - FortaTrust

From the description in ⑤, FortaTrust has been pr...

webmin/virtualmin one-click optimization package

1. http://www.webmin.biz/webminanzhuangyushiyong/...

13 Anti-Spam Comment Plugins for WordPress

1. Anti-spam Anti-spam 2. Confident CAPTCHA Confi...

Domain.com $0.99 com domain

Discount code: disrupt99 Official website: http:/...

Reliable online storage at home and abroad

I looked it up and found that it is commonly seen...