38,907
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 58: | Line 58: | ||
==Creating an Image from a Volume== | ==Creating an Image from a Volume== | ||
Creating an image from a volume allows you to download the image. Do this if you want to save it as a backup, or to spin up a VM somewhere other than the CC Cloud, e.g. with [https://www.virtualbox.org/ VirtualBox]. | Creating an image from a volume allows you to download the image. Do this if you want to save it as a backup, or to spin up a VM somewhere other than the CC Cloud, e.g. with [https://www.virtualbox.org/ VirtualBox]. To create an image of a volume it must first be detached from a VM. If it is a root volume, it can only be detached from a VM if the VM is terminated/deleted. | ||
===Using the Dashboard=== | |||
# Click on the ''Volumes'' left hand menu. | |||
# Under the volume you wish to create an image of click on the drop down ''Actions'' menu and select ''Upload to Image''. | |||
# Choose a name for your new image. | |||
# Choose a ''Disk Format''. QCOW2 is recommended for using within the OpenStack cloud as it is relatively compact compared to Raw image format and works well with OpenStack. If you wish to use the image with Virtualbox the vmdk or vdi image formats might be better suited. | |||
# Finally click ''Upload''. | |||
===Using the Command Line Clients=== | |||
The [[OpenStack Command Line Clients|command line client]] can do this: | |||
{{Command|openstack image create --disk-format <format> --volume <volume_name> <image_name>}} | {{Command|openstack image create --disk-format <format> --volume <volume_name> <image_name>}} | ||
where | where |