Add disk to VM

To add a new disk to a VM, first log in to the OpenNebula UI at https://cloud.togglebox.com
Screenshot of the cloud.togglebox.com URL in a browser

Once logged in, follow the steps below to attach a new disk.

Create disk image

  1. Navigate to Storage -> Images
    Screenshot of the storage tab
  2. You will see a list of all currently available images.
    Screenshot of the list of storage images
    Click + then Create.
    Screenshot create disk image menu
    • Name -- unique name to identify the image.
    • Description -- Optional description.
    • Type -- Generic storage datablock.
    • Datastore -- Same location where the VM you are attaching the image to is located.
    • This image is persistent -- YES.
    • Image location -- You can choose to upload a pre-made image or download via URL. In this example we want an empty image and will select "Empty disk image" and specify a size.
    • Advanced Options -- Do not set any options.
  3. Click Create
    Screenshot of the create disk image button
    The new Image will now show in your image list.
    Screenshot of the disk images list after creation

Attach disk image to VM

  1. Navigate to Instances → VMs → Select the VM → Storage tab
    Screenshot of the storage tab
  2. Click Attach disk
    Screenshot of the attach disk button

    Notice: We highly recommend against Volatile disks as snapshots cannot be made and they cannot be cloned.
  3. Select the image you created and click "Attach"
    Screenshot of the attach disk button inside the attach disk popup
  4. The new disk will be hotplugged into your VM. No reboot is required.
  5. Login to your VM and partition/format the new disk.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 50
Related articles: