You can assign a WWN to a new virtual machine with an RDM disk when you create this virtual machine, or to an existing virtual machine you can temporarily power off.


From the vSphere Client, click Inventory in the navigation bar, and expand the inventory as needed.


In the inventory list, select the managed host to which you want to add a new virtual machine.


Select File > New > Virtual Machine.

The New Virtual Machine wizard appears.


Select Custom, and click Next.


Type a virtual machine name, and click Next.


Select a folder or the root of a datacenter, and click Next.


If the resource pool option is available, expand the tree until you locate the resource pool in which you want to run the virtual machine, highlight it, and click Next.


Select a datastore in which to store the virtual machine files, and click Next.


Under Guest operating system, select the operating system family (Microsoft Windows, Linux, Novell NetWare, Solaris, or Other).


Select the version from the pull-down menu, and click Next.


Select the number of virtual processors in the virtual machine from the pull-down list, and click Next.


Configure the virtual machine’s memory size by selecting the number of megabytes, and click Next.


Configure network connections, and click Next.


Choose the type of SCSI adapter you want to use with the virtual machine.


Select Raw Device Mapping, and click Next.


From a list of SAN disks or LUNs, select a raw LUN you want your virtual machine to access directly.


Select a datastore for the RDM mapping file.

You can place the RDM file on the same datastore where your virtual machine files reside, or select a different datastore.


If you want to use VMotion for a virtual machine with enabled NPIV, make sure that the RDM file is located on the same datastore where the virtual machine configuration file resides. You cannot perform Storage VMotion, or VMotion between datastores, when NPIV is enabled.


Select a compatibility mode, either physical or virtual.

Depending on your choice, subsequent screens offer different options.

Physical compatibility mode allows the guest operating system to access the hardware directly. Physical compatibility is useful if you are using SAN-aware applications in the virtual machine. However, powered on virtual machines that use RDMs configured for physical compatibility cannot be migrated if the migration involves copying the disk. Such virtual machines cannot be cloned or cloned to a template either.

Virtual compatibility allows the RDM to behave as if it were a virtual disk, so you can use such features as snapshotting, cloning, and so on.


On the Specify Advanced Options page, you can change the virtual device node and click Next.


Assign WWNs to the virtual machine.


On the Ready to Complete New Virtual Machine page, select the Edit the virtual machine settings before completion check box and click Next.