...
Checking there is enough free space usable on their tenant;
Shutting down the VM;
Clicking on the Bootable Volume, then on Extend Volume inside the right menu, writing there the desired new volume size;
Rebooting the VM and check that the volume has the correct size, using the command
df -h
.
Download a VM
To download a VM, it is necessary to create a snapshot of it on the Openstack Dashboard, and then save locally the snapshot using the Command-line interface.
Shutdown the VM
Detach any secondary volume attached on the VM (remember the volume
/dev/vda
is the bootable volume from which the VM is loaded).Create the VM snapshot
If the VM is loaded from an image (there is no bootable volume
/dev/vda
):Click on create snapshot, and select format qcow2.
The snapshot should appear in the image list with size different from zero.
If the VM is loaded form a bootable volume (volume attached as
/dev/vda
):Select the bootable volume,
Create a snapshot of the volume,
Create a volume from this snapshot.
From the new created volume, click on upload to image and then choose as disk format qcow2 . (this operation is slower than the other)
The snapshot should appear in the image list with size different from zero.
Now from the CLI:
Setup the environment
Search the snapshot image created earlier, and get the Image ID
Code Block language bash openstack image list
Save the image on local hardware
Code Block language bash openstack image save --file <img_file_name> <image_snapshot_ID>
Check the downloaded image info to be sure the process has been executed correctly
Code Block language bash qemu-img info <img_file_name>
...