Shelving virtual machines

You can unbind a stopped VM from the node it is hosted on and release its reserved resources such as CPU and RAM. A shelved VM remains bootable and retains its configuration, including the IP addresses.

Prerequisites

To shelve a virtual machine

Admin panel

  1. Click the desired virtual machine.
  2. If the VM is stopped, click Shelve on its right pane.
  3. If the VM is running or suspended, click Shut down or Power off on its right pane, and then select Shelve virtual machine in the confirmation window.

Command-line interface

Use the following command:

vinfra service compute server shelve <server>
<server>
Virtual machine ID or name.

For example, to shelve the virtual machine myvm, run:

# vinfra service compute server shelve myvm

To spawn a shelved VM on a node with enough resources to host it

Admin panel

  1. Click a shelved virtual machine.
  2. On the VM right pane, click Unshelve.

Command-line interface

Use the following command:

vinfra service compute server unshelve <server>
<server>
Virtual machine ID or name.

For example, to unshelve the virtual machine myvm, run:

# vinfra service compute server unshelve myvm