To migrate an RDM to a new Virtual machine:
- Shut down the guest virtual machine where the RDM is currently attached.
- Remove the RDM from the virtual machine:
- Click Edit Settings
- Select the RDM hard disk
- Click Remove. Select Delete from disk if it is not already selected
- Click OK.
Note: This destroys the mapping file, but not the LUN content.
- Present LUN to the new virtual machine as an RDM using this procedure:
- On the Select a Disk page of the New Virtual Machine wizard (or the Add Disk page of the Edit Settings wizard), select Raw Device Mapping and click Next.
- From the list of SAN disks or LUNs, select a LUN for your virtual machine to access directly and click Next.
- Select a datastore for the LUN mapping file and click Next.
Note: You can place the RDM file on the same datastore where your virtual machine configuration file resides, or select a different datastore. - Select the appropriate compatibility mode and click Next.
- Accept the default virtual device node.
- Click Next. Your changes are recorded.
- The Ready to Complete page opens. Click Finish.
For a more detailed procedure, see
Add an RDM Disk to a Virtual Machine in the vSphere Client in
Creating a Virtual Machine in the vSphere Client.