1,221
edits
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 90: | Line 90: | ||
{{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 | ||
* <format> is the disk format (two possible values are qcow2 and vmdk), | * <format> is the disk format (two possible values are [https://en.wikipedia.org/wiki/Qcow qcow2] and [https://en.wikipedia.org/wiki/VMDK vmdk]), | ||
* <volume_name> can be found from the OpenStack dashboard by clicking on the volume name, and | * <volume_name> can be found from the OpenStack dashboard by clicking on the volume name, and | ||
* <image_name> is a name you choose for the image. | * <image_name> is a name you choose for the image. | ||
You can then | You can then [[OpenStack#Downloading an image |download the image]] as described below. It is best to detach the volume from the VM before you create an image from the volume. If the volume is a boot volume you will likely need to delete your VM to detach it, however, make sure you have not checked "Delete Volume on Instance Delete" when creating the VM. | ||
=Creating an Image From a VM= | =Creating an Image From a VM= |
edits