Skip to main content
ONTAP tools for VMware vSphere 10

Attach or detach a data disk from a virtual machine

Contributors netapp-jani

Follow these steps to attach or detach data disks from virtual machines in vSphere and manage their storage resources.

Attach a data disk to a virtual machine

Attach a data disk to a virtual machine to add more storage.

Steps
  1. Log in to the vSphere client.

  2. Right-click on 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 the OK button.

Result

The hard disk appears in the Virtual Hardware devices list.

Detach a data disk from the virtual machine

Detach a data disk from a virtual machine when you don't need it anymore. The disk is not deleted; it stays on the ONTAP storage system.

Steps
  1. Log in to the vSphere client.

  2. Right-click on 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.