Home > Computing > Problems running VMWare Server on Windows 7

Problems running VMWare Server on Windows 7

I run VMWare server on my Windows 7 Pro 64-bit media center, as it’s a power-efficient way of running a second or third machine on a PC which is always switched on anyway.

However, after revisiting it after a long hiatus, I found that it wasn’t working. I tried uninstalling, rebooting, reinstalling, rebooting – but to no avail. I also tried deleting all registry entries, but it still failed. It would present me with the web login screen, but any attempt to log in gave me an error that included:

Web Service at “http://localhost:8222/sdk” is not responding

Looking at the services, I could see that VMWare Host Agent was not running, as well as VMWare Registration Service; the others (NAT, DHCP, Authorisation) were running fine. Trying to start VMWare Host Agent gave the web page error:

The VMware Host Agent service terminated with service-specific error -1

It referred me to the system logs on the host computer. I checked, and found nothing specific, other than it failed to run. (Apologies for the lack of screenshots and specifics; ‘unfortunately’, I have it working now, as you’re about to find out).

So – the question was why the service failed to run. Well, some more digging on the error revealed this thread, showing that sometimes the XML files in Windows 7 installations can become corrupted – specifically C:\ProgramData\VMware\VMware Server\hostd\datastores.xml on my machine. In my case, it contained around 200 whitespace characters – certainly no XML. Handily, there’s a datastores.xml.default file in the same directory, which I copied and used to replace the faulty datastores.xml file.

Once this was done, I could start the service with no trouble, and then the web server also magically sprung into life! Problem solved!

Advertisements
Categories: Computing
  1. Robie
    December 4, 2010 at 10:29 pm

    Thanks for posting the damo! I had the exact same problem and this fixed it…

  2. Thomas Schukraft
    January 23, 2012 at 8:06 pm

    Thank you, thank you, thank you.

    Had exactly the same problem after I had to turn off my machine after a bluescreen.

  3. vijay
    February 26, 2012 at 5:33 pm

    Thank You Very Much. I had installed the Vmware in D:\…,and was looking for .xml files in D:\..\hostd..which is not correct. Even though I installed vmware in D:\, there are vmware files in C:\ProgramData\VMware\VMware Server.

    I corrected as per your suggestion and working fine.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: