Pyone: Python bindings for OpenNebula

Why Pyone?

After years running my own private cloud home and at my startup company, I decided to start privazio. Privazio is a data-center class private cloud targeting residential users and small companies with a special focus on privacy. Privazio is currently under development.

OpenNebula is a fantastic cloud management platform that incorporates the one key feature that Privazio requires most: simplicity. OpenNebula has also a pretty reasonable entry-level hardware requirements. OpenNebula is then the ideal foundation for Privazio.

It would be great to take simplicity further by providing an Ansible module to manage OpenNebula. Any other functionality provided by Privazio will also be managed through Ansible making everything fit together nicely.

In order to develop an Ansible module we need a robust Python API for OpenNebula. This is not an easy task considering that OpenNebula is constantly being improved and its interfaces are likely to evolve.

Introducing Pyone

Pyone is a Python API for OpenNebula developed with two key goals in mind: Maintainability and Completeness.

OpenNebula provides a robust XML-RPC API for which XML Schema Definition (XSD) files are distributed.

Pyone uses the Schema Definition files to auto-generate the Python Bydings with PyXB.

On the other hand, OpenNebula’s XML-RPC API is consistent in the way in which calls are made, data is returned and errors are triggered. This allows for Pyone to subclass Python’s xmlrpc.ServerProxy class implementing all OpenNebula peculiarities in one go: authentication, error conditions, special data types, etc.

By auto-generating the bindings and subclassing the proxy object maintainability and completeness should be achieved. In theory future OpenNebula releases would only require updating the XSD files and regenerating the bindings.

Furthermore, making client calls and navigating the results match 100% the provided Open Nebula XML-RPC documentation.

Client code created with Pyone looks like this:

import pyone

one = pyone.OneServer("http://one/RPC2", session="oneadmin:onepass" )
hostpool =
host = hostpool.HOST[0]
id = host.ID

  'NAME': 'abc',
  'MEMORY': '1024',
  'ATT1': 'value1'
}, 1)

What is next?

PyOne will completed and matured while developing an OpenNebula module for Ansible.

If you feel like contributing, please checkout Pyone in Github!


New Image Backup Addon for Cloud qcow2 Images

FeldHost™ Delivers new addon “Image Backup” – Tool for backuping your cloud qcow2 images

FeldHost™ is pleased to introduce a new OpenNebula addon Image Backup, which allows you to backup qcow2 images in your cloud. Script is written in NodeJS and has the following options:

  • Backup all qcow2 images
  • Backup only specific image
  • Dry run for testing purposes
  • Option to backup deployments


  • Live snapshots with FS freeze if guest agent is enabled
  • Automatically backups new images
  • Backups also image snapshots
  • Backups deployment files
  • Easy restore – Creates backup directory tree identical with datastores

How it works?

Read the documentation to get started.

Usage example

Install dependecies, clone git repo and copy sample config:

yum install epel-release
yum install nodejs npm


apt-get install nodejs
git clone ~/one-image-backup
cd ~/one-image-backup 
npm install
cp config.sample.js config.js

Configure by following the manual.

vi config.js

Test and verify using dry run and verbose options.
List of options.

./one-image-backup.js -dvD

Setup cron:

vi /etc/cron.d/one-image-backup

# Run every Saturday on 01:00
00 1 * * Sat user /path/to/one-image-backup/

What Next & Contributions

Image Backup is a new project, and there are some things to improve. Contributors are welcome, we apply the Github Pull Request model for contributions in code and documentation. Stay tuned.

Ede Techday 2017 wrap-up

We are happy to let you know that the slides and talks of the Ede Techday 2017 are available!

We want to thank for their continued support and looking forward to next year’s event! And of course to our community: attendees and speakers.


More info about the event.

The Package Build Repository is Now Public

Alongside the release of OpenNebula 5.4 we have made the repository with package scripts and specs public.

It comes with documentation on how you can create your own packages in case you want to add patches to them or build non stable versions. This is the repository used to generate official packages so feel free to send pull requests in case you find problems.


TechDay Vancouver, 1 September 2017, hosted by Best Buy

This year our friends at BestBuy Canada have organized a TechDay in Vancouver. As usual there will be a 4-hour OpenNebula tutorial and in the evening we will learn about the new release and whatever question you may have. Hurry up and join us!


OpenNebulaConf 2017 EU: Agenda Available



The OpenNebula Project is proud to announce the agenda and line-up of speakers for the sixth OpenNebula Conference to be held in Madrid from the 23 to the 24 of October 2017.

OpenNebulaConf is your chance to get an up-close look at OpenNebula’s latest product updates, hear the project’s vision and strategy, get hands-on tutorials and workshops, and get lots of opportunities to network and share ideas with your peers. You’ll also get to attend all the parties and after-parties to keep the networking and the good times going long after the show floor closes for the day.


The agenda includes four keynote speakers:

Educational Sessions 

This year we will have two pre-conference tutorials:

Community Sessions

We had a big response to the call for presentations. Thanks for submitting a talk proposal!.

Like in previous editions, we will have a single track with 10-minute talks, to keep all the audience focused and interested. We have given our very best to get the perfect balance of topics. We will have talks by StorPoolLINBITNetWays, LRZ…

We will also have a Meet the Experts sessions providing an informal atmosphere where delegates can interact with experts who will give their undivided attention for knowledge, insight and networking; and a session for 5-minute lightning talksIf you would like to talk in these sessions, please contact us!

Besides its amazing talks, there are multiple goodies packed with the OpenNebulaConf registration. You have until September 20th to get your OpenNebulaConf tickets for the deeply discounted price of just €300 (plus taxes) apiece. However, please consider, space is limited, register asap.

We are looking forward to welcoming you personally in Madrid!


Telefonica using OpenNebula in the OnLife Innovation Project about Edge Computing

Centralized clouds are not appropriate for applications that require moving large amounts of distributed data or with interactive users that require low latency and real time processing, like Internet of Things (IoT), video streaming, gaming and many mobile applications. These applications require pushing data and processing away from centralized data centers to the extreme of the network closer to users where possible, this is called edge or fog computing.

Telecommunications companies are in a unique position to solve this problem because central offices (COs) are usually located close to their customers’ premises and thus close to IoT devices. In addition, COs can be transformed into clouds. Similar to the cloudlet concept, in which small-scale cloud datacenters at the edge of the Internet are used to support resource-intensive and interactive mobile applications, this can extend IoT service providers’ computing facilities to the network edge.

There are several initiatives to achieve this goal, mainly built around mobile-edge computing (MEC)—a network architecture concept that enables cloud-computing capabilities and an IT service environment at the edge of the cellular network. Among these, the Central Office Re-architected as a Datacenter (CORD) initiative seems to be better suited for convergent telecoms, as it integrates network function virtualization (NFV) and software-defined networking (SDN).

Telefónica is utilizing open-source OpenNebula and ON.Lab’s ONOS to prototype a new generation of CORD-based Central Offices that are fully IPv6 compliant and allow for the deployment of programmable services rather than the traditional black box solutions provided by proprietary solutions. Telefónica’s OnLife project aims to virtualize the access network and give third-party Internet of Things application developers and content providers cloud-computing capabilities at the network edge.


If you want further details about how Telefonica is using OpenNebula to build its Edge Computing platform you can download the paper “Extending the Cloud to the Network Edge” or attend the Telefonica keynote “Fast Prototyping of a C.O. into a purpose built Data Center for Multi-access Edge Computing” in the upcoming 5th edition of the OpenNebula Conference in Cambridge, MA, 19-20 June.

OpenNebula Conf 2017 US: Agenda Available



The OpenNebula Project is proud to announce the first agenda and line-up of speakers for the fifth OpenNebula Conference to be held in Cambridge, MA from the 19 to the 20 of June 2017. Guided by your feedback from previous edition, we included more educational and community sessions to learn and do networking.


The agenda includes four keynote speakers:

Educational Sessions 

This year we will have two pre-conference tutorials:

We have also increased the number of educational contents with presentations from the OpenNebula team showing and demoing some of the most demanded features and latest integrations.

Community Sessions

We had a big response to the call for presentations. Thanks for submitting a talk proposal!. Although all submissions were of very high quality and merit, because this year we increased the educational contents we only have space for a few community presentations. Jordi Guijarro from CSUC,  Roy Keene from Knight Point and Hayley Swimelar from LINBIT will discuss their experiences and integrations with OpenNebula.

We will also have two Meet the Experts sessions providing an informal atmosphere where delegates can interact with experts who will give their undivided attention for knowledge, insight and networking; and a session for 5-minute lightning talksIf you would like to talk in these sessions, please contact us!

Besides its amazing talks, there are multiple goodies packed with the OpenNebulaConf registration. You are still in time for getting a good price deal for tickets. There is a 20% discount until May 12nd.


We are looking forward to welcoming you personally in Boston!


Hybrid Clouds: Dancing with Virtual Machines

Today, the model of hybrid cloud comes under the eyes of a lot of organizations. The idea of combining resources of public cloud providers with private depending on the terms of execution, the need of more resources, an extra protection of the data, more or less security in services with sensitive information, etc. are some of the capabilities that this model has to answer. The case of CSUC, acting as Opennebula powered cloud provider and at the same time as user of external IaaS and PaaS services, is analyzed sharing its first experiences in the way to archive a real multicloud architecture.


Figure 1- The Hybrid Cloud, acts as a slicing bridge.

The majority of organizations have not been born in the “cloud”, situation that produces a lot of cases where the cloud resources have to interact or to be connected to traditional systems and applications with some criticality and usually are situated in its own dependencies. This kind of architecture is the most usual, where the main keys for its success go through to be aware about things like the integration capabilities or the impact in the organization roles where could exist different interpretation of the same concept.

For a solutions designer the model has to offer flexibility, speed and capacity. In the case of the infrastructure team it’s easy to think that more “different things” have to be managed. The business development staff will ask if it will be more expensive and which is the value that the hybrid model will contribute.

From the IT infrastructure perspective, when a public cloud provider is selected/procured, a good approach to start with in the adoption of hybrid cloud model is to focus in these first three challenges.

  • Networking: to extend your network layers with capable “dedicated” circuits provision with bandwidth control outside and inside public cloud provider(s).
  • Management: to consolidate a truly global infrastructure management platform through a cloud orchestrator and its cloud bursting capabilities.
  • Security: to extend to public cloud provider current security layers (platforms, tools, policies,…) under the current organizations umbrella.

Definitely, the model or architecture to implement will be different depending on each case where the applications/services have a lot to say and have to be listened. The pure reality is that nowadays almost all the organizations work in two different speeds and this is something that the technology departments have to work with. Some very changing environments like web and mobile applications and other more robust systems associated to critical processes with high levels of stability and security. A real cloud hybrid model should support the combination of this two speed ecosystems maintaining its specific dependences and needs.

The CSUC use case: driving to a hybrid cloud architecture

CSUC, in these last two years has worked in these challenges with some actions that are transforming roles, the management models at ICT infrastructure level, the way of services provision, etc.

The first action was to start a procurement process to provision the first IaaS provider with the idea of infrastructure and services optimization in a new model of payment by use. In parallel as RREN, the adoption of a orchestrator role with its own cloud management platform (Opennebula based) to manage distributed resources in a real multicloud environment. The network design, the unified management and security conditioned the strategy.

Regarding the new external cloud provider and after an a intense procurement process, the company Nexica  resulted adjudicator for four years of the provision of IaaS services for Catalan Universities and CSUC.

Nowadays, the catalan institutions who are using this shared service are:

What work has already been done:

  • First IaaS provider procurement process.
  • Service catalog, service-level agreements and governance.
    Architecture redefinition.
  • RREN extended to the provider: Layers 2&3.
  • A new Opennebula cloud bursting driver was developed (VCLOUD compliance)
  • Integration of CSUC opencloud orchestrator.
  • Deployment of first production services.

If you are interested to see more details, please contact with us.  This initiative will be presented in the next TNC17 , the annual Géant congress, at Linz – Austria [31/5/2017] (see the full paper here).

TechDay Prague 2017 Wrap Up

This little post is here only to thank the people from CESNET for organizing the event. I also want to thank the attendees for sharing the day with me.

We’ve changed the format of the TechDay a bit and it turned out to be great:

  • The tutorial now is done in prepared laboratories in the cloud. This helped a lot for people with Windows or 32 bit laptops.
  • Instead of talks after the lunch there was a demonstration of OpenNebula and vCenter and a session of QA where the attendees could ask for specific features or how to accomplish some workflows.