You can assign a WWN to a new virtual machine with an RDM disk when you create this virtual machine.

You can create from 1 to 16 WWN pairs, which can be mapped to the first 1 to 16 physical HBAs on the host.

1

Open the New Virtual Machine wizard.

2

Select Custom, and click Next.

3

Follow all steps required to create a custom virtual machine.

4

On the Select a Disk page, select Raw Device Mapping, and click Next.

5

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

6

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.

Note

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.

7

Follow the steps required to create a virtual machine with the RDM.

8

On the Ready to Complete page, select the Edit the virtual machine settings before completion check box and click Continue.

The Virtual Machine Properties dialog box opens.

9

Assign WWNs to the virtual machine.

a

Click the Options tab, and select Fibre Channel NPIV.

b

Select Generate new WWNs.

c

Specify the number of WWNNs and WWPNs.

A minimum of 2 WWPNs are needed to support failover with NPIV. Typically only 1 WWNN is created for each virtual machine.

10

Click Finish.

The host creates WWN assignments for the virtual machine.

Register newly created WWNs in the fabric so that the virtual machine is able to log in to the switch, and assign storage LUNs to the WWNs.