Attach or detach a data disk from a virtual machine
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.
-
Log in to the vSphere client.
-
Right-click on a virtual machine in the inventory and select Edit Settings.
-
On the Virtual Hardware tab, select Existing hard disk.
-
Select the virtual machine where the disk exists.
-
Select the disk you want to attach and select the OK button.
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.
-
Log in to the vSphere client.
-
Right-click on a virtual machine in the inventory and select Edit Settings.
-
Move your pointer over the disk and select Remove.
The disk is removed from the virtual machine. If other virtual machines share the disk, the disk files aren't deleted.