Share a VM snapshot between several projects

The share a VM snapshot, you will need a VM and IF of the project you want to share the snapshot with.

The first thing we will need to do is to take a snapshot of the VM, how you should go about doing this depends on how the VM was first launched, more specifically what type of server boot source that what used. In MyELITS the storage for your server is either backed by an image or a volume and the process of taking the snapshot and successfully sharing it with another project differs between these two, here we will show you how to do both, starting with the procedure for a VM with it's storage backed by an image.

Snapshot a image backed VM

Go to Infrastructure>Servers>List Servers, then click on Create Snapshot for the server that you want to snapshot.

  • Snapshot Name: an appropriate name for the snapshot.
  • Click Create Snapshot.
  • The snapshot will then be queued. The time it takes to process the snapshot depends on the VM size.

Once the snapshot is in Status: Active. Click on the snapshot name, and copy the ID. Now that you have the image ID, continue to the section Share the image.

Snapshot a volume backed VM

For a VM with it's storage backed by a volume, go to Infrastructure>Servers>Volumes, find the volumes attached to the VM and click Upload to Image.

  • Image Name: an appropriate name for the image.
  • Disk Format: Raw.
  • Force: Yes.
  • Click Upload.
  • The image will then be queued. The time it to process the image depends on the VM size.

Once the image is in Status: Active. Click on the image name and copy the ID.
Now that you have the image ID, continue to the next section to see how to share it with another project.

Share the image

To perform the last step you are going to need the glance command line client.
Open a terminal and share the image with appropriate project, see Where can I find my project ID? using the following commands.

# Share
glance member-create d6f23959-da13-4e6c-a0d5-65a0d1773fa2
# Then check the result
glance member-list --image-id d6f23959-da13-4e6c-a0d5-65a0d1773fa2
 
 
 

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License
Changes were made based on the original Openstack User guide


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.