In this article you will find a step by step guide to the basics of OpenNebula cloud orchestration system on LXD. First, we’ll use the simple MiniONE tool to create a single-node cloud environment in a physical or virtual machine for users who want to try the OpenNebula functionality, then we’ll take a look at a regular work session with the GUI and CLI and finally we’ll give some links to help create a distributed production environment.
Automated Deployment with MiniONE
MiniONE is a tool that configures a physical host or virtual machine as a single-node cloud to quickly deploy a simple but fully functional test scenario.
To evaluate LXD, MiniONE requires a dedicated virtual machine or physical host with a fresh Ubuntu installation on 18.04 or 18.10 with at least 2GB of RAM and 20GB of free disk space, as well as privileged access rights (root). For example, MiniONE makes it easy to build an LXD/OpenNebula environment on an Amazon virtual machine. The recommended minimum size is likely to be t2.medium. Simply give it 25 GB of disk space and access to TCP port 9869 where the WebUI is running.
. After a step with MiniONE, you’ll get instructions for connecting to the web interface like the next one:
#### Report OpenNebula 5.8 was installed Sunstone (the webui) is runninng on: http://192.168.100.101:9869/ Use following to login: user: oneadmin password: o6ARsMAdGe
When MiniONE is done, the first thing we’ll do is login as oneadmin and look at Admin View in Sunstone, where there will be many more options than in other interfaces for normal users. Take a look at all your downloaded cloud resources.
. In Admin View you can do whatever you want with OpenNebula, but you don’t have to give the same features to the end users! Switch to Cloud View and see what the end users will see in OpenNebula.
. The Cloud View interface is much simpler because it is end user oriented. Create a new virtual machine by clicking the + button. Select the only template available and click the Create button. When you click the Create button, you’ll be taken to the monitoring panel where you can see all the virtual machines that are running.
. To open the control panel, you can click on your virtual machine. There you can access it from VNC, save its status, reboot it, etc.:
. Clicking on the console icon will take you to the console as a root user via VNC
. With the oneadmin role, you can customize what your cloud users can see and do.
Get to know CLI
. OpenNebula runs as oneadmin user, and the chief administrator must execute commands on behalf of that user, so the first thing you need to do is switch to oneadmin:
From your oneadmin account you can see the resources loaded:
We have one visualization node:
Created CentOS image
Registered Virtual Machine Template:
The configuration of the template you can see in detail
onetemplate show 0
Access to MarketPlace
. OpenNebula comes pre-installed with MarketPlace, from which you can get many ready-made images (Apps). There is also integration with images, one of the public LXD image servers:
. There are different Linux distributions: Alpine, Centos, Debian, etc. as well as some service images with pre-installed applications like WordPress or GitLab.
. There are also containers from the public LXD image server. You can find, for example, quite fresh Ubuntu.
. And download it to the repository.
Now, if you go to Template -> VMs, you can instantiate it.
Build Production Installation
. If you want to deploy the cloud in production, you can read documentation. Deploying a front-end environment with multiple LXD nodes requires the following steps:
Now you can deploy virtual machines using applications from MarketPlace.
WARNING! All links in the articles may lead to malicious sites or contain viruses. Follow them at your own risk. Those who purposely visit the article know what they are doing. Do not click on everything thoughtlessly.
All information posted has been taken from public sources and is provided for information purposes only and does not constitute an invitation to action. It was created only for educational and entertainment purposes. All information is intended to protect readers from illegal actions. The visitor undertakes all possible losses caused. The author does all actions only on his own equipment and in his own network. Do not repeat anything read in real life. | Also, if you are the rightholder of the material posted on the pages of the portal, please write to us through contact form complaint about the removal of a particular page, as well as read instruction for rightholders of materials. Thank you for understanding.
We are not against any use of materials, but when you specify an active link to our site. Be sure to share records on social networks - let's develop our cozy service together!
This is an open platform for viewing and publishing a variety of information about PCs, operating systems, gadgets such as Android and Apple, and more!
Connect with us
To contact us, you can write to us at the e-mail address specified in the section "contacts".