Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using VMWare Server 2.0 on Windows Server 2003 R2. Sometimes after restarting the host machine, the VMWare host agent service won't start due to an error.

This is the error messages from Event Viewer:

[Service control manager] Timeout (30000 milliseconds) waiting for the VMware Host Agent service to connect.

[Service control manager] The VMware Host Agent service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

I've set the service to automatically restart after subsequent failure using services.msc (using a 10 min. delay), but it still won't start. Only starting the service manually seems to work.

Has anyone experienced this before? What workarounds or fixes are there?

-- updated --
Here's a small vbs script that i use to check whether a service is running or not, and automatically starts it if it's not running. I use the scheduler to run this script every 15min.

strComputer = "." 
strSvcName = "VMWareHostd" 

set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

set objService = objWMI.Get("Win32_Service.Name='" & strSvcName & "'")

If objService.State= "Stopped" Then
    call SendEmail("servicescheck@pc.local","admin@pc.local","Service X stopped","")
    objService.StartService()
End If


Private function SendEmail(From, Destination, Subject, Textbody)

    sch = "http://schemas.microsoft.com/cdo/configuration/" 

    Set objEmail = CreateObject("CDO.Message")
    Set objCdoConfig = CreateObject("CDO.Configuration")

    With objCdoConfig.Fields 
        .Item(sch & "sendusing") = 2 ' cdoSendUsingPort 
        .Item(sch & "smtpserver") = "127.0.0.1" 
        .update 
    End With 

    with objEmail

        set .Configuration = objCdoConfig

        .From = From
        .To = Destination
        .Subject = Subject
        .Textbody = Textbody

    end with

    call objEmail.Send

end function

--

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

create a scheduled task to run on startup that does sc start vmware-service etc, or schedule a task to run every minute and try and start the task.

VMware server 2.0 sucks. VMware server 1.0 was and is great.

share|improve this answer
    
This is a good answer. I scheduled a task to check if the service is running and start it if it isn't running. –  Bimo Arioseno Aug 4 '10 at 20:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.