Windows service program running under vmware

john5490 used Ask the Experts™
I wrote a windows service program that reads a text file from a shared drive, parses the text file into fields that get inserted in a SQL server table. Its a standard service program utilizing a worker thread to do processing and normal exception handling is done.  It runs on a Windows 2003 server. The program works fine until the vmware server is rebooted.
The service program keeps the vmserver from booting properly. The shared drive is no longer accessible. The RDP services do not work. When RDPing into the machine you get a continous "Initialing User Profile". The only way to boot the machine is to physicall start the server in safe mode then disable the service.  The Application event log shows the service started before VMTOOLS and the Restart.Service  is active. This causes a fileio error on the drive that is not active which somehow stops the boot process. If the scheduler starts the service after the vmware session is active everything works however I cannot make the service automatic because of this issue.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If I understand what you're asking, you want to make your service start AFTER the VMware tools service?

If you follow the following Microsoft article, you can edit the registry to force your service to have a dependency of VMware tools. This will force it to start after VMware tools is loaded.

Basically, you go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\YourServiceNameHere , and add a key called DependOnService with the VMware Tools service name in it. I think the VMware tools service name is VMware Tools Service


This may work. I have tried creating a DependOnService keys for this service using keys  like RPCss(Remote procedure calls)  but Im unsure as to the specific service that I need the dependency set to. Im trying to find out what specific service is responsible for mounting the file system on this VM machine and set a depencency on that service. Unlike normal machine the file system the service is accessing is not the boot drive and it become available sometime after the boot process is underway.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial