VMWare Server 2.0 - Unknown (Invalid) VM's

[Update: Current preferred method would be to change your system locale, unless you know how to remove the encoding from the .vmdk file itself as well. The second method works to bring a system back up quickly, but you will notice the vmdk shows up as 'invalid' which only becomes an issue if and when you decide to use snapshots.]
This probably occurs on small percentage of users' systems who change their system locale from English to another language, then back. To fix this:
  • Change your system locale to match that listed in the vmx/vmsd file of your VM.
  • Remove the Unknown (Invalid) VM from Inventory.
  • Open the vmx and/or vmsd file(s) with notepad or other text editor and delete the line that contains ".encoding = "[systemlocale]""
  • Then re-add it to Inventory.

The selected virtual machine is not recognized on this system. The cause of this problem may be that the virtual machine's .vmx file is corrupted, or that the virtual machine version is newer than is recognized by the host. You can remove the virtual machine from the inventory if you believe that it is not recoverable.

Click the link below to remove the virtual machine from the inventory.


VMWare Server 2.0 Build 122956

PowerShell Script to enable the "Check and upgrade Tools before each power-on" option.

With this powershell script, you can enable the "Check and upgrade Tools before each power-on" option on all your VM's without having to power them off.
$ErrorActionPreference = "SilentlyContinue"
connect-viserver -server [VCServer or ESX Host] -user [user] -password [password]
get-vm | foreach-object {
$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
$vmConfigSpec.Tools = New-Object VMware.Vim.ToolsConfigInfo
$vmConfigSpec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle"
(Get-View $_.ID).ReconfigVM($vmConfigSpec)
Virtual Center 2.5 Build 104215
ESX Server 3.5 Update 2 (110268)
PowerShell V1 using PowerGUI w/ VI Toolkit 1.0 Update 1 Build 113525

  1. [UPDATE: The script has been updated to continue past any errors generated. So if any VM's have issues it will just continue to the next VM in line to update. You will have to audit systems that were not updated with the script and fix them manually.]
  2. This script does not have error handling, so if a VM is in the midst of another task, the script will fail with following error:
    • Exception calling "ReconfigVM" with "1" argument(s): "Operation failed since another task is in progress."
    • All systems up to the error will have been updated.
  3. To test this script against one or two machines only simply change line 2 to the following:
    • get-vm [VMGuestSystemName] | for-eachobject {

PowerShell and VMWare

A powerful combination that can make your day to day administration easier.

Here are links to the tools to begin using powershell with VMWare:

Download and install Powershell: (If you are using Vista SP1 or newer, it's in your "Turn Windows features on or off" section of Control Panel)


VI Toolkit: (This gives you the various 'cmdlets' to use with Powershell)


PowerGUI: (A free GUI style script editor, works pretty well for being free)


VMWare PowerPack: (Free powerpacks for use w/ Virtual Infrastructure)


Lab Manager PowerPack: (Free lab manager powerpack)


Virtual Center 2.5 Permissions to perform this operation was denied. Possible Bug?

Cloning, building, moving, a machine into a "Virtual Machines and Templates" folder within Virtual Center w/ complete Administrator rights causes permissions error above.
The issue simply boils down to that you are likely using AD groups to delegate permissions within Virtual Center. If so, one group has administrative privileges over the entire tree, while you've assigned another AD group a role w/ less access to a sub-folder in the tree. If your account happens to be a member of both groups, you've effectively denied your administrative rights over that sub-folder.

This may either be a bug or an intentional function. I'm thinking it's a bug.

Virtual Center 2.5.0 Build 104215
Windows 2003 Active Directory Domain

  • To workaround this issue, you can simply remove yourself from that other AD group, or create another account that is only apart of the administrative group of Virtual Center.
  • For a failsafe, create a local account and grant it administrative priviledges over your Data Centers. (Security risk, but at the same time, you'll be saving yourself some headache down the road)

ESX 3.x Server disconnected from Virtual Center but still running

This usually occurs because the mgmt-vmware decides for whatever reason to stop talking back to Virtual Center and will not gracefully restart.

ESX 3.5.0, 110268 (Update 2)
Virtual Center 2.5.0 Build 104215
These steps may help you resolve issues with other versions, but attempt at your own risk.

  1. Log into the Service Console via Putty or another SSH Client and type "service mgmt-vmware restart." If successful in restarting the service, continue to step 2. If not successful see the immediate bullet below:
    • If the restart process hangs, you may need to open another putty session to kill -9 the process. (ex. kill -9 mgmt-vmware)
      • Once killed type "ps aux | grep hostd"
      • If the first line does not contain "vmware-watchdog" then it likely contains "config.xml -u" if so you'll need to kill -9 it based on the PID. The PID would be the highlighted value in the following example:
        • root 14096 3.9 10.9 105008 87348 ? S 14:04 1:49 /usr/lib/vmware/hostd/vmware-hostd /etc/vmware/hostd/config.xml -u
        • In this case you would need to run the following commands:
        • (ex. kill -9 14096)
        • service mgmt-vmware restart
        • The service should restart successfully and you should see the server reconnect successfully to VC. If not, you may need to "Disconnect" then "Connect" the server in the VC console. Otherwise continue on w/ the next steps.
  2. Next try restarting the vpx and authd services by typing "service vmware-vpxa" and "service vmware-vmkauthd restart."
  3. If the server still displays as disconnected, you can try manually installing the VC agent on the ESX server by following these steps:
    • On the VC server, locate the upgrade folder under your VC server program directory. (%ProgramFiles%\VMware\Infrastructure\VirtualCenter Server\upgrade)
    • Open the bundleversion.xml file and look for the bundle ID that corresponds to your ESX version (ie. ESX 3.0.x = 6, ESX 3.5.x = 7)
    • Copy the appropriate vpx-upgrade file for your bundle ID to a temp directory on your ESX server (ie. vpx-upgrade-esx-7-linux-)
    • Install the file by typing the following from the Service Console in the directory that you copied the file to: sh ./
    • Once it completes restart the hostd and vpx services on the ESX host by typing "service vmware-vpxa restart" and "service mgmt-vmware restart"
    • If your server still shows disconnected, then a reboot of the ESX server is usually needed to recover from this, but if you can call VMWare Tech Support.