Last update at :2024-04-25,Edit by888u
OpenNebula is a set of open source cloud computing basic management tools that facilitate administrators to uniformly deploy, create, allocate and manage a large number of virtual machines in the data center, such as KVM, XEN, OpenVZ VPS, etc.
Control terminal: 1.1.1.1node terminal: 2.2.2.2
1. Control terminal installation (based on Centos 7 system) 1. Close SElinux and edit /etc/selinux/config
SELINUX=disabledThen, restart
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 EOT3. Install software a.
yum install epel-releaseb、
yum install opennebula-server opennebula-sunstone opennebula-ruby opennebula-gate opennebula-flowThe 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_gemsChoose 1, then press Enter to execute the installation: sqlite3 development librarymysql client development librarycurl development librarylibxml2 and libxslt development librariesruby development librarygcc and g++make
5. Start OpenNebula
a. Centos 7 user oneadmin logs in and changes the oneadmin password
su oneadminChange password (in root mode)
passwd oneadminb. Start opennebula
systemctl start opennebula systemctl start opennebula-sunstoneor
service opennebula start service opennebula-sunstone start6. Check whether opennebula is installed successfully
oneuser showOpenNebula log location /var/log/one
7. Close the firewall systemctl stop firewalld.service #Stop firewallsystemctl disable firewalld.service #Disable firewall from starting firewall-cmd –state #View the default firewall status (notrunning is displayed after closing, running is displayed after opening)
8. Web login 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 EOT2. Install kvm
yum install opennebula-node-kvm service libvirtd restart3. Close SElinux and edit /etc/selinux/config
SELINUX=disabled4. Exchange SSH Keya and change settings to facilitate SSH interaction. Since OpenNebula Front and Nodes communicate through SSH, the front and nodes must be set to SSH. Passwordless login avoids front running scripts or cloning images on nodes. When entering the password, first configure sshd on front and nodes (about lines 47 and 48):
vi /etc/ssh/sshd_config RSAAuthentication yes PubkeyAuthentication yes /etc/init.d/sshd restartb. Create interactive SSH control terminal operation:
ssh-keygen-trsa ssh-copy-id -i ~/.ssh/id_rsa.pub 2.2.2.2Node side operations:
ssh-keygen-trsa ssh-copy-id -i ~/.ssh/id_rsa.pub 1.1.1.1or
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/
Recommended site search: icp registration center, virtual host application, registered domain name free external server, telecom host rental, how to rent a server, free cloud server, free ip, Taiwan server rental, registered domain name,
发表评论