OpenNebula is a cloud computing platform that can help you manage distributed data center infrastructure. The OpenNebula platform can manage the virtual infrastructure of the data center to simplify the construction of private, public and hybrid infrastructure-as-a-service solutions. One of the key steps before configuring a virtual machine on OpenNebula is to define a VM template, which depends on the OS image.
In this article, we will guide OpenNebula users to perform the steps to import CentOS 8 and CentOS 7 Qcow2 OS images into the OpenNebula image data store. Before performing this operation, please confirm that the image data storage is available and usable. In the figure, the image type data storage area is named “default“.
Step 1: Get CentOS 8 | CentOS 7 Qcow2 image URL
You can create your own custom Qcow2 image, or you can use the Cloud image publicly provided by the CentOS team.
For CentOS 8 Qcow2 cloud image, please visit CentOS 8 Qcow2 image Download the link and copy the URL path of the latest available version.
# Latest of this article update https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2
For CentOS 7 Qcow2 image, please visit CentOS 7 cloud image Download link:
Step 2: Upload the CentOS Qcow2 image to the OpenNebula data storage area
After obtaining the URL of the downloaded image or the locally built qcow2 image, log in to the OpenNebula Sunstone console.
Then go to “Store“>”image” section.
Click”+“, then select “create“.
Fill in the required values required to create the image.
This is my CentOS 8 image value padding:
- Picture name – CentOS8
- illustrate- CentOS 8 Qcow2 image
- Image type- Operating system image
- Data storage area for storing images – Default (image type data storage)
- Image location-URL or upload from local disk-copied from CentOS 8 Qcow2 image
- Optional advanced option-BUS driver (Vitio) And image mapping driver (qcow2)
You can add more settings that suit you, and then click “createPress the “” button when finished.
The same steps can be used to add the CentOS 7 Qcow2 image:
Please note that when images are added to the data storage area, they will be locked.
When ready, the status will change to “READY”.
We have successfully uploaded the CentOS 8 and CentOS 7 qcow2 images to the OpenNebula data store. In our next article, we will introduce the creation of a VM template and actual virtual machine configuration on the OpenNebula platform.
More articles about OpenNebula:
Install OpenNebula KVM node on Debian
How to configure NFS file system as OpenNebula data storage
Create and use bridged network in OpenNebula VM