cc_staff
1,486
edits
(Adjusted grouping of sections) |
(Marked this version for translation) |
||
Line 91: | Line 91: | ||
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. | 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. | ||
=Working with images= | =Working with images= <!--T:42--> | ||
==Creating an Image from a VM== | ==Creating an Image from a VM== | ||
Using the [[OpenStack Command Line Clients]] issue the command | Using the [[OpenStack Command Line Clients]] issue the command | ||
{{Command| openstack server image create <server-name>}} | {{Command| openstack server image create <server-name>}} | ||
where <code><server-name></code> should be replaced with the name of your server. This action will only include the VM's root drive (e.g. /dev/vda) in the image. Ephemeral drives and non-boot attached volumes will not be included in the image so additional measures should be taken to preserve this data. In addition, if the VM is writing to disk while the image is being created the file system may be captured in an inconsistent state. We recommend the VM be shut off (not deleted) before an image is created from it. | where <code><server-name></code> should be replaced with the name of your server. This action will only include the VM's root drive (e.g. /dev/vda) in the image. Ephemeral drives and non-boot attached volumes will not be included in the image so additional measures should be taken to preserve this data. In addition, if the VM is writing to disk while the image is being created the file system may be captured in an inconsistent state. We recommend the VM be shut off (not deleted) before an image is created from it. | ||
==Sharing an image with another project== | ==Sharing an image with another project== <!--T:54--> | ||
Sharing an image with another project is a two step process. | Sharing an image with another project is a two step process. | ||
<!--T:55--> | |||
# A member of the project owning the image must share it with a second project. | # A member of the project owning the image must share it with a second project. | ||
# A member of the second project must accept the newly shared image. | # A member of the second project must accept the newly shared image. | ||
<!--T:56--> | |||
To share an image a member in the project owning the image uses the [[OpenStack Command Line Clients|OpenStack]] command below. | To share an image a member in the project owning the image uses the [[OpenStack Command Line Clients|OpenStack]] command below. | ||
<source lang="console"> | <source lang="console"> | ||
Line 115: | Line 117: | ||
<code><IMAGE_ID></code> is the ID of image to be shared, and <code><MEMBER_ID></code> is the ID of project to share with. | <code><IMAGE_ID></code> is the ID of image to be shared, and <code><MEMBER_ID></code> is the ID of project to share with. | ||
<!--T:57--> | |||
To accept the shared image a member in the second project uses the [[OpenStack_Command_Line_Clients#Separate_Command-line_interfaces|OpenStack]] command below. | To accept the shared image a member in the second project uses the [[OpenStack_Command_Line_Clients#Separate_Command-line_interfaces|OpenStack]] command below. | ||
<source lang="console"> | <source lang="console"> |