Powered-off vMotion (relocate) of a virtual machine across datastores fails in vCenter. "Virtual Machine is configured to use a device that prevents the operation"
search cancel

Powered-off vMotion (relocate) of a virtual machine across datastores fails in vCenter. "Virtual Machine is configured to use a device that prevents the operation"

book

Article ID: 388070

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

 

Getting below error in 'compatibility issues'

"Virtual Machine is configured to use a device that prevents the operation"

 

In vpxd.log, we see below events :

yyyy-mm-ddThh:mm:ss.727Z error vpxd[26487] [Originator@6876 sub=VmProv opID=<Op-id>h5:75338586-78-01] Local-VC Datastore Migrate failed at vpx.vmprov.CopyVmFiles for poweredOff VM 'VMNAME' (vm-60912, ds:///vmfs/volumes/5a390f7d-10b8bc09-xxx-xxxxxxxxxxxx/VMNAME/VMNAME.vmx) on host-95277 (#.#.#.#) in pool resgroup-5203 with ds ds:///vmfs/volumes/5a390f7d-10b8bc09-21f2-74e6e2b8ddae/ to host-95277 (#.#.#.#) in pool resgroup-5203 with ds ds:///vmfs/volumes/664af0d3-d36c3f39-fc54-1070fdc63de0/ with migId 708016050351309789 with fault vim.fault.FileFault:

yyyy-mm-ddThh:mm:ss.733Z info vpxd[26487] [Originator@6876 sub=VmProv opID=<Op-id>h5:75338586-78-01] Undo action vpx.vmprov.CopyVmFiles

yyyy-mm-ddThh:mm:ss.733Z info vpxd[26487] [Originator@6876 sub=VmProv opID=<Op-id>h5:75338586-78-01] Done undo action vpx.vmprov.CopyVmFiles with output:

 

In hostd.log, we see below events :

yyyy-mm-ddThh:mm:ss.707Z error hostd[2786313] [Originator@6876 sub=NfcManager opID=<Op-id>h5:75338586-78-01-bb80 user=vpxuser:DOMAIN\username] File transfer [/vmfs/volumes/5a390f7d-10b8bc09-xxx-xxxxxxxxxxxx/VMNAME/VMNAME_2.vmdk -> /vmfs/volumes/664af0d3-d36c3f39-fc54-1070fdc63de0/VMNAME/VMNAME_2.vmdk] failed: XXX DiskLib error should follow -- NfcFile_Clone: Failed.

yyyy-mm-ddThh:mm:ss.707Z error hostd[2786313] [Originator@6876 sub=NfcManager opID=<Op-id>h5:75338586-78-01-bb80 user=vpxuser:DOMAIN\username] Error encountered while processing copy spec for file [ds:///vmfs/volumes/5a390f7d-10b8bc09-xxx-xxxxxxxxxxxx/VMNAME/VMNAME_2.vmdk -> ds:///vmfs/volumes/664af0d3-d36c3f39-fc54-1070fdc63de0/VMNAME/VMNAME_2.vmdk]:
--> N3Vim5Fault9FileFault9ExceptionE(Fault cause: vim.fault.FileFault

yyyy-mm-ddThh:mm:ss.708Z error vpxd[26487] [Originator@6876 sub=Datastore opID=<Op-id>h5:75338586-78-01] [VpxdDatastore::UrlToDSPath] Received a non-url [/vmfs/volumes/5a390f7d-10b8bc09-xxx-xxxxxxxxxxxx/VMNAME_2/VMNAME_2.vmdk], instead of a url

yyyy-mm-ddThh:mm:ss.709Z error vpxd[26487] [Originator@6876 sub=VmProv opID=<Op-id>h5:75338586-78-01] Get exception while executing action vpx.vmprov.CopyVmFiles: N3Vim5Fault9FileFault9ExceptionE(Fault cause: vim.fault.FileFault

Environment

  • VMware vCenter Server Appliance 7.0.x

Cause

This is because the disk VMNAME_2.vmdk present in the vm directory however it is not listed in vmx file.

 

Resolution

In order to perform the migration with the disk VMNAME_2.vmdk Add an Existing Hard Disk to a Virtual Machine

Reference Document: vSphere Virtual Machine Administration