When you add a hard disk to a virtual machine, you can create a new virtual disk, add an existing virtual disk, or add a mapped SAN LUN.

In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot off an LSI Logic controller and share a data disk with another virtual machine using a Buslogic controller with bus sharing turned on.

Note

You cannot use migration with vMotion to migrate virtual machines that use raw disks for clustering purposes.

1

In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.

2

Click the Hardware tab and click Add.

3

Select Hard Disk and click Next.

4

Select the type of disk to use.

Option

Action

Create a new virtual disk

a

Enter the disk capacity.

b

Select a thin disk format or a thick disk format to allow the disks to support clustering features.

c

Select a location to store the disk. Store with the virtual machine or Specify a datastore.

d

If you selected Specify a datastore, browse for the datastore location, and click Next.

Use an Existing Virtual Disk

Browse for the disk file path and click Next.

Raw Device Mappings

Gives your virtual machine direct access to SAN.

a

Select the LUN that you want to use for the raw disk, and click Next.

b

Select to store the LUN mapping files on the same datastore as the virtual machine files, or select a different a datastore, and click Next.

c

Select the compatibility mode.

Physical allows the guest operating system to access the hardware directly.

Virtual allows the virtual machine to use VMware snapshots and other advanced functions.

d

Click Next.

5

Accept the default or select a different virtual device node.

6

(Optional) Select the virtual disk Independent mode and select an option.

Option

Description

Persistent

The disk operates normally except that changes to the disk are permanent even if the virtual machine is reverted to a snapshot.

Nonpersistent

The disk appears to operate normally, but whenever the virtual machine is powered off or reverted to a snapshot, the contents of the disk return to their original state. All later changes are discarded.

Independent disks are not affected by snapshots.

7

Click Next.

8

Review the information and click Finish.

9

Click OK to save your changes and close the dialog box.