Monday, September 28, 2009

VMware vSphere Client on Windows 7

VMware vSphere client doesn't work if you have a Windows 7 pc.

When you try to connct to an Esx server or a Virtual Center server, you'll give these errors:

  • Error parsing the server "nome del server" "clients.xml" file.
  • The type initializer for 'VirtualInfrastructure.Utils.HttpWebRequestProxy' threw an exception.

But with this workaround, the program will works fine:

  1. Edit the VpxClient.exe.config file:
    <?xml version="1.0" encoding="utf-8"?>

    <configuration>

    <system.net>

    <connectionManagement>

    <clear/>

    <add address="*" maxconnection="8" />

    </connectionManagement>

    </system.net>

    <appSettings>

    <add key = "protocolports" value = "https:443"/>

    </appSettings>

    <runtime>

    <developmentMode developerInstallation="true"/>

    </runtime>

    </configuration>
  2. Create in C:\Program Files\Vmware\Infrastructure\Virtual Infrastructure Client\Launcher folder (or in the folder qhere you have installed the software) a subfolder called Lib. In this subfolder copy the system.dll .Net file from a non Windows 7 box (see above)
  3. Crete a new system variable named DEVPATH with value C:\Program Files\Vmware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib


Now the program works fine

PS: A copy of the configuration and of the system.dll file are downloadable here.