In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to build OpenNebula under Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
OpenNebula provides a rich feature set that enterprises can use to create a fully functional cloud. Features include: multi-tenancy and highly secure operations, on-demand preparation and monitoring of computing, storage and network resources, high availability, distributed resource optimization for better workload performance, centralized management across multiple availability zones and interfaces, and high scalability for public clouds such as Amazon Web services.
Master console deployment:
Here we directly use the hosts file to do DNS parsing.
[root@opennebula ~] # vim / etc/hosts [root@opennebula ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.1.5 master192.168.1.16 node1192.168.1.19 store
Replace the hosts file on all hosts:
[root@opennebula ~] # scp / etc/hosts root@node1:/etc/hosts [root@opennebula ~] # scp / etc/hosts root@store:/etc/hosts
Turn off the relevant security policy on each host:
[root@opennebula ~] # systemctl stop firewalld [root@opennebula ~] # iptables-F [root@opennebula ~] # setenforce 0
Add official Yum source: (each host needs to be added)
[root@opennebula yum.repos.d] # vim opennebula.repo [root@opennebula yum.repos.d] # cat opennebula.repo [opennebula] name=opennebulabaseurl= https://downloads.opennebula.org/repo/5.6/CentOS/7/x86_64enabled=1gpgkey=https://downloads.opennebula.org/repo/repo.keygpgcheck=1
Install the EPEL source:
[root@opennebula ~] # yum-y install epel-release
Install OpenNebula master dependencies:
[root@opennebula ~] # yum-y install opennebula-server opennebula-sunstone opennebula-ruby opennebula-gate opennebula-flow
Install OpenNebula master additional dependencies and main programs:
[root@opennebula ~] # / usr/share/one/install_gems
According to my system choice, I am centos, so choose 1 to change the default oneadmin password (this account password is used to log in to the control panel of OpenNebula):
[root@opennebula ~] # echo "oneadmin:910zxq" > / var/lib/one/.one/one_auth
Start opennebula:
[root@opennebula ~] # systemctl start opennebula [root@opennebula ~] # systemctl start opennebula-sunstone
Browser opens http://192.168.1.5:9869/
Access to your server IP+ port 9869 can not add a cluster yet, you need to configure the SSH public key and the controlled side.
Deployment of the controlled side:
Install the kvm package group that supports opennebula:
[root@node1 ~] # yum-y install opennebula-node-kvm [root@store ~] # yum-y install opennebula-node-kvm
Start libvirtd when you are finished:
[root@node1 ~] # systemctl start libvirtd [root@store ~] # systemctl start libvirtd
After starting up, you will find that there will be one more bridge card in the system! Configure SSH public key password-free login: (password will be required for the first connection! )
When the opennebula package group is installed on the control side and the controlled side, all hosts have created a user by default: oneadmin
First of all, there should be the same user on each host! Switch to the corresponding user (same user)
Su oneadmin
Generate public key
Ssh-keygen-t rsa
Write the public key to the authorization key file
Cat / var/lib/one/.ssh/id_rsa.pub > > / var/lib/one/.ssh/authorized_keys
Set the corresponding permissions, the permissions can not be too large! It's too easy to report a mistake!
Chmod 644 / var/lib/one/.ssh/authorized_keys chmod 755 / var/lib/one/.ssh/
Use scp to copy the authorization key file to the corresponding host
Scp / var/lib/one/.ssh/* root@node1:/var/lib/one/.ssh/
Under oneadmin users, using ssh node1 or store does not require password authentication.
Create a cluster:
Create a host in the cluster: host created successfully: create a virtual network: others can not be written: download virtual machine template: modify virtual machine template: opennebula hardware configuration is very flexible, hardware configuration can be changed at will, not limited by physical host configuration. I do not save the dot here, just do the experiment and run ~ the bus and cache are changed to: Virtio/WriteBack. This will greatly increase the hard disk IO speed of the virtual machine. Other settings default ~ create a virtual machine:
These are all the contents of the article "how to build OpenNebula under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.