ncm-opennebula: add support for OpenNebula

This block is copied and pasted from above. Simplify the flow or move them to a common function.