Powering on a virtual machine fails with the error: Could not create '/vmfs/volumes///.nvram':
search cancel

Powering on a virtual machine fails with the error: Could not create '/vmfs/volumes///.nvram':

book

Article ID: 334173

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot power on a virtual machine
  • Powering on a virtual machine fails
  • You see the error:

    Could not create '/vmfs/volumes/Datastore_Name/VM_name/VM_Name.nvram': Reason

    where Reason can be any one of these:
     
    • Failed to lock the file
    • Could not find the file
  • Error: [msg.nvram.wback1] Could not create '/vmfs/volumes/5984c900-3ddf7ea3-b3e5-ecf4bbccbeb4/vm/vm.nvram': Failed to lock the file
  • Sample log snippet:
    2017-09-18T20:29:23.607Z| Worker#1| I120: ToolsVersion: Status is supported old because this is status of monolithic version, and vsock_win2k3 and 78 more components are missing from the guest.
    2017-09-18T20:29:23.608Z| Worker#1| I120: ToolsVersionGetStatusWorkerThread: Tools status 2 derived from environment
    2017-09-18T20:29:31.599Z| vmx| W110: NVRAMMGR: No valid NVRAM file found, will create default NVRAM.
    2017-09-18T20:29:35.616Z| vmx| I120: Msg_Post: Error
    2017-09-18T20:29:35.616Z| vmx| I120: [msg.nvram.wback1] Could not create '/vmfs/volumes/5984c900-3ddf7ea3-b3e5-ecf4bbccbeb4/vm/vm.nvram': Failed to lock the file
    2017-09-18T20:29:35.616Z| vmx| I120: ----------------------------------------
    2017-09-18T20:29:35.641Z| vmx| W110: NVRAMMGR: Failed to create default NVRAM file (vm.nvram)
    2017-09-18T20:29:35.641Z| vmx| I120: Module Nvman power on failed.
    2017-09-18T20:29:35.641Z| vmx| I120: VMX_PowerOn: ModuleTable_PowerOn = 0
    2017-09-18T20:29:35.645Z| vmx| I120: VMXVmdb_SetToolsVersionStatus: status value set to 'oldTools', 'supportedOld', install possible
    2017-09-18T20:29:35.645Z| vmx| I120: VMXVmdb_SetToolsVersionStatus: status value set to 'oldTools', 'supportedOld', install possible
    2017-09-18T20:29:35.645Z| vmx| I120: SVMotion_PowerOff: Not running Storage vMotion. Nothing to do
    2017-09-18T20:29:35.645Z| svga| I120: SVGA thread is exiting
    2017-09-18T20:29:35.646Z| vmx| I120: Destroying virtual dev for scsi0:0 vscsi=8235
    2017-09-18T20:29:35.646Z| vmx| I120: VMMon_VSCSIStopVports: No such target on adapter
    2017-09-18T20:29:35.646Z| vmx| I120: Destroying virtual dev for scsi0:1 vscsi=8236
    2017-09-18T20:29:35.646Z| vmx| I120: VMMon_VSCSIStopVports: No such target on adapter
    2017-09-18T20:29:35.646Z| vmx| I120: Destroying virtual dev for scsi0:2 vscsi=8237
    2017-09-18T20:29:35.646Z| vmx| I120: VMMon_VSCSIStopVports: No such target on adapte


Cause

The NVRAM file of a virtual machine stores the state of BIOS settings of the virtual machine. When a virtual machine is powered on, the contents in the NVRAM file are read to emulate the BIOS of the virtual machine. If for any reason the NVRAM file could not be opened, you see this error. There are multiple reason for a failure while opening a NVRAM file.

Resolution

Error 1: Failed to lock the file

This issue occurs if another process/host has already opened the virtual machine's NVRAM file that your process/host
is attempting to open.

To resolve this issue, ensure that the file is available for use by the host/process. For more information, see Investigating virtual machine file locks in ESX/ESXi (10051).

Error 2: Could not find the file


This issue occurs if the NVRAM file mentioned in the virtual machines configuration file(*.vmx) is not available anymore.


To work around this issue:

  1. Edit the virtual machine's configuration file. For more information see, Tips for editing a .vmx file (1714).
  2. Remove this line referring to NVRAM file:

    nvram = "file_name"
    sample line from vmx. : nvram = "vm.nvram"
  3. Power on the virtual machine.

Note: This article is updated regularly with other reasons that may cause this issue. Check this article for updates. If you see a different reason for the failure, open a support request with VMware Support. For more information, see Filing a Support Request in Customer Connect (2006985).


Workaround:
Rather then rebooting the Source Host; we can edit the vmx file of the locked VM & remove the entry: nvram = "file_name"

Additional Information

 

Modified NVRAM Settings Might Prevent Virtual Machine from Powering-On
Powering on a virtual machine fails with the error: NVRAM write failure
打开虚拟机电源失败,并出现以下错误: Could not create '/vmfs/volumes/<Datastore-Name>/<VM-name>/<VM-Name>.nvram': <Reason>
仮想マシンのパワー オンが次のエラーで失敗する:Could not create '/vmfs/volumes///.nvram':