How to create a Disk image in OpenNebula?

  • CloudSim is a framework which contains libraries and does not have to be installed. We need to unpack the downloaded package on any directory, add it to the Java classpath and it is ready to be used.

i) Login as the oneadmin user in Terminal.

Type the following command.
<one start>

Screenshot from 2017-10-12 15:12:44

(ii) Start the OpenNebula SunStone.

Type the following command.

<service opennebula-sunstone start>

Screenshot from 2017-10-12 15:12:55

Go to http://localhost:9869 .

Login into OpenNebula Sunstone.

Screenshot from 2017-10-12 14:44:51

Username-oneadmin.

Password-xxxxxxxxx and click on “Login” button.

OpenNebula Dashboard screen will be displayed.

Screenshot from 2017-10-12 14:45:04
  • In OpenNebula Dashboard, click the “Images” under the “Storage” Tab which is appeared in the Left side menu.
Screenshot from file
  • Click the “+” button to add a new image.
Screenshot from 2017-10-12 15:13:31
  • Set the Disk image parameters as per the following specifications: . 

    Name = "image name"
    Type = Generic storage datablockTick
    "This image is persistent"
    Set Image Location to “Empty disk image”
    Size = "your required space in MB"
    Advanced Options
    BUS = Virtio
    Image Mapping driver=qcow2

  • Click “Create” button.
Screenshot from 2017-10-12 15:13:42
  • Now Disk image is created in OpenNebula..