Configuring virtual machine volumes

You can add new volumes to your virtual machines, attach existing volumes, and detach unneeded volumes from virtual machines.

Limitations

  • You cannot change, detach, or delete the boot volume.
  • You can only attach and detach non-boot volumes.
  • You cannot manage volumes of shelved VMs.

Prerequisites

  • To be able to use volumes attached to VMs, they must be initialized inside the guest OS by standard means.

To attach a volume to a virtual machine

Admin panel

  1. On the Compute > Virtual machines > Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click the pencil icon in the Disks field.
  3. In the Volumes window:

    • Click Attach to attach an existing volume, and then select the volume in the Attach volume window.
    • Click Add to create a new volume, and then specify the volume name, size, and storage policy. The created volume will be automatically added to the VM disks.
  4. Click Done to finish editing VM disks and save your changes.

To detach a volume from a virtual machine

Admin panel

  1. On the Compute > Virtual machines > Virtual machines screen, click the required virtual machine.
  2. On the Overview tab, click the pencil icon in the Disks field.
  3. In the Volumes window:

    • Click Detach to detach a volume from a stopped virtual machine.
    • Click Force detach to detach a volume from a running virtual machine.

      There is a risk of data loss.

  4. Click Done to finish editing VM disks and save your changes.