Import CentOS 8 | CentOS 7 Qcow2 Images on OpenNebula

Posted on 116 views

OpenNebula is a cloud computing platform that helps you with the management of distributed data center infrastructures. The OpenNebula platform is able to manage data center’s virtual infrastructure to ease building of private, public and hybrid Infrastructure as a Service solutions. One of the key steps before provisioning Virtual Machines on OpenNebula is definition of VM Templates, which depends on OS images.

In this article we will guide OpenNebula users through the steps of importing CentOS 8 and CentOS 7 Qcow2 OS images to OpenNebula image datastore. Before you perform this operation confirm the image datastore is available and ready for use. In the diagram the Image type datastore is named “default“.

configure-nfs-datastores-opennebula-02

Step 1: Get CentOS 8 | CentOS 7 Qcow2 image URLs

You can create custom Qcow2 image by yourself or use publicly available Cloud images from CentOS team.

For CentOS 8 Qcow2 cloud image, visit the CentOS 8 Qcow2 images downloads link and copy the URL path of the latest available release.

# Latest of this article update
wget https://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20220125.1.x86_64.qcow2

For CentOS 7 Qcow2 images, visit CentOS 7 Cloud images download link:

https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2

Step 2: Upload CentOS Qcow2 image to OpenNebula Datastore

Once you have the URL for downloading the image, or locally built qcow2 image, login to OpenNebula Sunstone console.

install-opennebula-frontend-debian-10-01-1024x569

Then go to “Storage” > “Images” section.

upload-centos-opennebula-images-01-1024x380

Click on “+” and choose “Create“.

upload-centos-opennebula-images-02-1024x520

Fill the required values required to create the image.

Here is my CentOS 8 image values populated:

  • Image Name – CentOS8
  • Images Description – CentOS 8 Qcow2 image
  • Image Type – Operating System Image
  • Datastore where image is stored – default (Image Type datastore)
  • Image location – URL or Upload from local disk – Copied from CentOS 8 Qcow2 images
  • Optional Advanced Options – BUS driver (Virtio) and image mapping driver (qcow2)

upload-centos-opennebula-images-03-1024x639

You can add more settings that suit you and hit the “Create” button when done.

upload-centos-opennebula-images-04-1024x366

The same procedure can be used to add CentOS 7 Qcow2 image:

upload-centos-opennebula-images-05-1024x673

Note that the images will be in locked stated as they’re being added to datastore.

upload-centos-opennebula-images-06-1024x376

Once ready the Status will change to “READY“.

upload-centos-opennebula-images-07-1024x322

We’ve successfully uploaded CentOS 8 and CentOS 7 qcow2 images to OpenNebula datastore. In our next article we will cover creation of VM Templates and actual Virtual Machines provisioning on OpenNebula platform.

More articles on OpenNebula:

coffee

Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.