Openstack Shelving and Unshelving

This is a short article detailing the steps for shelving and un-shelving a VM

 Instructions

Shelving:

openstack server shelve (server name)

No output given for the shelve command

 

Connection will be closed if connected whilst the server gets shelved

openstack server list

 

Status changed to SHELVED_OFFLOADED after a few minutes

 

Shelve status shown on web interface as well

Once shelved there will be an image created in the tab shown above, this image is the equivalent of a snapshot and could be used to launch a new VM with the same configurations as the original VM

 

Unshelving:

openstack server unshelve (server name)

Also no output for this command
Status can be viewed same as if shelving

 

Possible errors:

Unable to unshelve items that are not shelved

Same as for trying to shelve an item that is shelved