Add, Edit, or Remove Disks

Using the VM [name] page, Cockpit administrators can manage virtual disks associated with a VM instance. Available disk management actions include: adding a new disk instance, editing properties associated with an attached disk instance, and removing a disk instance.

What Do You Need?

Steps

Using the Cockpit web console, follow these steps to manage virtual disks associated with a VM instance.

  1. In the Cockpit navigation pane, click Virtual machines.

    The Virtual machines page appears.

  2. In the Virtual machines page, click the name of the virtual machine of interest.

    The Virtual machines [VM name] page appears.

  3. In Virtual machines [VM name] page, navigate to the Disk section and perform any of the following actions:

    Add disk (new, existing, custom) Perform these steps:
    1. Click Add disk.
    2. In the dialog, select a source option and then configure the required properties:

      Source options:

      • Create. Select to add new virtual disk.
      • Existing. Select to attach existing virtual disk.
      • Custom. Select to add disk image or CD/DVD disk.

      Configuration properties:

      • Pool. In the list box, select the storage pool from which the virtual disk is to be attached.
      • Volume. In the list box, select a storage volume for the virtual disk to be attached
      • Persistence. This option is available only when the VM is running.

        To make the virtual disk persistent, select the Always attach check box. Otherwise clear the check box to make the virtual disk transient.

      • Cache. In the list box, select the applicable cache mode for the virtual network interface.
      • Bus. In the list box, select the applicable bus type for the virtual network adapter.
    3. Click Add to attach the disk to the VM instance.
    Edit an attached disk

    Perform these steps:

    1. Click Edit.
    2. In the dialog, change the applicable properties.
    3. Click Save to save the changes.
    Remove an attached disk

    Perform these steps:

    • Click Remove.
    • In the confirmation dialog, click Remove to detach the disk from the VM instance.