Installing and configuring LXD on OpenNebula

Installing and configuring LXD on OpenNebula

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.

Run the MiniONE script on the dedicated system:

wget chmod u+x minione sudo minione --lxd

Let’s get to know the graphical interface

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: 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:

su -oneadmin

From your oneadmin account you can see the resources loaded:

We have one visualization node:

onehost list

Created CentOS image

oneimage list

Registered Virtual Machine Template:

onetemplate list

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.


0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments

Do NOT follow this link or you will be banned from the site!
Would love your thoughts, please comment.x

Spelling error report

The following text will be sent to our editors: