Resolving the issue when you experience the Could not find the file error
The Could not find the file error indicates that you have configured the virtual machine to use a host SCSI device in the passthrough (generic) mode and then have either moved the virtual machine or changed the hardware configuration of the host or manually edited the virtual machine configuration file, so that the SCSI device no longer exists.
To workaround this issue when the virtual machine is powered off, using the vSphere client, delete the SCSI device entry from the virtual machine configuration.
To workaround this issue when the virtual machine is powered off, using the vSphere client, delete the SCSI device entry from the virtual machine configuration.
To delete the SCSI device entry from the virtual machine configuration:
- In the vSphere Client, click Edit virtual machine settings.
- Select the SCSI device to be deleted and click Remove.
- Click OK.
- Add the SCSI device back to the virtual machine, if required.
To add the SCSI device back to the virtual machine:
- Click Edit virtual machine settings > Add > SCSI device.
- Select the SCSI device to be added and click OK.
- Power on the virtual machine.
- Verify that all virtual disks have associated SCSI device numbers associated
To workaround this issue when the virtual machine is in a suspended state, manually edit the .vmx file of the virtual machine and remove the entry corresponding to the SCSI device or modify the entry to point to the correct SCSI device.
To manually edit the .vmx file:
Note: For more information on editing the .vmx file, see Tips for editing a .vmx file (1714 ).
- Locate the virtual machine configuration file (.vmx).
- Open the .vmx file using a text editor.
- Find the entries for the SCSI device. For example:
scsi0:9.present = "TRUE"
scsi0:9.deviceType = "scsi-passthru"
scsi0:9.fileName = "/vmfs/devices/genscsi/mpx.vmhba32:C0:T0:L0"
- To remove the SCSI device, delete these entries from the .vmx file.
Caution: If you remove the SCSI device when the virtual machine is in a suspended state, the virtual machine may experience a kernel panic (BSOD). Use this option only when there is no other way to reconnect the SCSI device.
- To point to the correct SCSI device, modify the fileName entry to point to the correct filename.
- Power on the virtual machine.
Resolving the issue when you experience the Failed to lock the file error
The Failed to lock the file error indicates that some other virtual machine is already using this SCSI device. Sharing of such SCSI devices among virtual machines is not supported.
To workaround this issue when your virtual machine does not need access to this SCSI device:
To workaround this issue when your virtual machine does not need access to this SCSI device:
- Using the vSphere client, edit the virtual machine's settings and remove the SCSI device entry.
- Power on the virtual machine.
To workaround this issue when your virtual machine needs access to this SCSI device, ensure that the other virtual machine that is pointing to the SCSI device is powered off when using your virtual machine.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1039080
No comments:
Post a Comment