Skip to main content
ONTAP tools for VMware vSphere 10

Attach or detach a data disk from a virtual machine

Contributors netapp-jani

Attach a data disk to a virtual machine

Attach a data disk to a virtual machine to expand the storage capacity.

Steps
  1. Log in to the vSphere client.

  2. Right-click a virtual machine in the inventory and select Edit Settings.

  3. On the Virtual Hardware tab, select Existing hard disk.

  4. Select the virtual machine where the disk exists.

  5. Select the disk you want to attach and select OK

Result

The hard disk appears in the Virtual Hardware devices list.

Detach a data disk from the virtual machine

You can detach a data disk attached to a virtual machine when it is no longer needed. When you detach the disk from the virtual machine, it is not automatically deleted; it remains on the ONTAP storage system.

Steps
  1. Log in to the vSphere client.

  2. Right-click a virtual machine in the inventory and select Edit Settings.

  3. Move your pointer over the disk and select Remove.

    Note The disk is removed from the virtual machine. If other virtual machines share the disk, the disk files aren't deleted.