Get-VMHostFirmware Internal Error - Can't Backup Hypervisor Configuration

If you're getting an internal error while trying to run the Get-VMHostFirmware command with vSphere PowerCli, chances are the problem comes from a corrupt scratch directory on the hypervisor.

The Get-VMHostFirmware command is one of my favorites if I'm doing any maintenance on the hosts. It saved me hours of configuration multiple times... Very handy! But recently, I needed to run the command on one of my hosts and I was getting an internal error! Nothing more... Even after a reboot and trying all the other methods of configuration backup mentioned here, still no luck!

How to back up ESXi host configuration
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2042141

After hours of research, finally I came across with a blog that mentioned the scratch folder on the host. In the post, the user was suggesting to backup the scratch to another location and recreate it. I took a different approach and just changed the scratch config location from the "Advanced Settings" of the host.

in vSphere Client, select the host and go to "Configuration" tab, than go to "Advanced Settings" and locate the "ScratchConfig" section and enter the new vmfs volume in the ScratchConfig.ConfiguredScratchLocation setting.

You need to reboot the host for this setting to take effect. You should be able to use the Get-VMHostFirmware command now.

Comments

Popular posts from this blog

System.Messaging.MessageQueueException (0x80004005): A workgroup installation computer does not support the operation (Public Queue create issue)

Veeam Backup Error : Failed to prepare guest for hot backup. Error: VSSControl

warning: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead - Chef Development Kit Update