Product SiteDocumentation Site

2.26. Uploading an Existing Volume to a Virtual Machine

Existing data can be made accessible to a virtual machine. This is called uploading a volume to the VM. For example, this is useful to upload data from a local file system and attach it to a VM. Root administrators, domain administrators, and end users can all upload existing volumes to VMs.
The upload is performed using HTTP. The uploaded volume is placed in the zone's secondary storage
You cannot upload a volume if the preconfigured volume limit has already been reached. The default limit for the cloud is set in the global configuration parameter max.account.volumes, but administrators can also set per-domain limits that are different from the global default. See Setting Usage Limits
To upload a volume:
  1. (Optional) Create an MD5 hash (checksum) of the disk image file that you are going to upload. After uploading the data disk, CloudStack will use this value to verify that no data corruption has occurred.
  2. Log in to the CloudStack UI as an administrator or user
  3. In the left navigation bar, click Storage.
  4. Click Upload Volume.
  5. Provide the following:
    • Name and Description. Any desired name and a brief description that can be shown in the UI.
    • Availability Zone. Choose the zone where you want to store the volume. VMs running on hosts in this zone can attach the volume.
    • Format. Choose one of the following to indicate the disk image format of the volume.
      Hypervisor
      Disk Image Format
      XenServer
      VHD
      VMware
      OVA
      KVM
      QCOW2
      OVM
      RAW
    • URL. The secure HTTP or HTTPS URL that CloudStack can use to access your disk. The type of file at the URL must match the value chosen in Format. For example, if Format is VHD, the URL might look like the following:
      http://yourFileServerIP/userdata/myDataDisk.vhd
    • MD5 checksum. (Optional) Use the hash that you created in step 1.
  6. Wait until the status of the volume shows that the upload is complete. Click Instances - Volumes, find the name you specified in step 5, and make sure the status is Uploaded.