Jan 232008
 

If you are an IT professional or a developer or even a home user who runs VMWare Server or VMWare workstation to run virtual machines for testing or evaluation of operating Systems or applications and only run VMWare temporarily then you wouldn’t want VMWare to eat up your system resources while you are actually not running any Virtual Machines.

VMWare runs the following services starting them automatically at the system startup. These services consume quite a considerable system resources and sometimes slows down system startup:

VMWare Authorization Service

VMWare DHCP Service

VMWare NAT Service

VMWare Registration Service

VMWare Virtual Mount Manager Extended

An easier and simple solution would be to set these services to manual so it doesn’t start at system startup so when the services start only when you start the VMWare server.

To do so,

1. Click Start – RUN and type “services.msc”

2. In the right pane, right-click all of those services, one at a time and click properties.

3. Change startup mode to “Manual” instead of “Automatic”

VMWare Services 
Now create two batch files, one to start all the services when requried and one to stop all VMWare services when you are finished using VMware. This will allow you to start and stop all VMWare services with one click (well 2 clicks !)

VMSTART.BAT

Copy the following lines onto a text file and save it to your desktop as vmstart.bat

net start “VMWare Authorization Service”
net start “VMWare DHCP Service”
net start “VMWare NAT Service”
net start “VMWare Registration Service”
net start “VMWare Virtual Mount Manager Extended”
“C:\Program Files\VMware\VMware Server\vmware.exe

or simply download this file to your PC. VMSTART.BAT

NOTE: Change “Server” in the last line to “Workstation” if you use VMWare workstation.

VMSTOP.BAT

Copy the following lines onto a text file and save it to your desktop as vmstop.bat

net stop “VMWare Registration Service”
net stop “VMWare Authorization Service”
net stop “VMWare DHCP Service”
net stop “VMWare NAT Service”
net stop “VMWare Virtual Mount Manager Extended”

NOTE: Change “Server” in the last line to “Workstation” if you use VMWare workstation.

or simply download this file to your PC. VMSTOP.BAT

This should save you your precious time and your systems precious resources.

Incoming search terms:

  15 Responses to “How to Start & Stop VMware server/Workstation manually”

  1. I love this, that’s for the help. I always hated having the VM services start themselves up and I went and disabled them, but this is really what I wanted and was looking for so I could still use the VM server. Thanks.

  2. Pour faire la même chose sur Ubuntu/Linux :


    sudo update-rc.d vmware-server remove

    pour désactiver le lancement automatique du service, puis dans un fichier script :


    #!/bin/sh
    #
    gksudo /etc/init.d/vmware-server start
    vmware
    gksudo /etc/init.d/vmware-server stop

    Le service est arrêté automatiquement quand on quitte vmware.

  3. thanks a lot for your help. on my version of windows (xp pro), the service names seem to be for your help, so here is the vmstart.bat that works for me:

    net start VMAuthdService
    net start VMnetDHCP
    net start “VMware NAT Service”
    net start vmserverdWin32
    net start vmount2
    “C:\Program Files\VMware\VMware Server\vmware.exe”

  4. I use this one to start, in order keep all services stopped:

    sc config VMnetDHCP start= demand
    net start VMnetDHCP
    sc config “VMware NAT Service” start= demand
    net start “VMware NAT Service”
    sc config vmount2 start= demand
    net start vmount2
    “C:\Program Files\VMware\VMware Workstation\vmware.exe”

    And for the stop:

    net stop VMnetDHCP
    sc config VMnetDHCP start= disabled
    net stop “VMware NAT Service”
    sc config “VMware NAT Service” start= disabled
    net stop vmount2
    sc config vmount2 start= disabled

  5. I used the following batch files to start and stop VMWaure Player.

    VMPlayer.bat
    ————————————————————-
    @echo off
    ECHO Starting VMWare Related Services
    @call c:\progra~1\vmware\vmservices.bat start
    :player
    ECHO Starting VMWare Player
    @c:\progra~1\vmware\vmware~1\vmplayer.exe
    REM – Are you going to quit VM Player?
    c:\progra~1\vmware\CHOICE /N /C:YN /T:N,20 Are you going to quit VM Player?
    IF ERRORLEVEL ==2 GOTO player
    IF ERRORLEVEL ==1 GOTO exit
    :exit
    ECHO Stopping VMWare Related Services
    @call c:\progra~1\vmware\vmservices.bat stop
    ————————————————————
    VMServices.bat
    ————————————————————
    net %1 “VMware Authorization Service”
    net %1 “VMware NAT Service”
    net %1 “VMware Virtual Mount Manager Extended”
    net %1 “VMware DHCP Service”

  6. I put my start and stop in the quicklaunch bar, which I found more convenient, until I accidentally sopped the server with an aberrant click. I also found that vmware-vmx.exe often lingered after everything else shut down, so here is my shut down script:


    @ECHO OFF
    set /p userinp=Are you sure you want to kill all vmware server processes? Press 6 to continue or any other key to quit followed by the Enter key . . .
    set userinp=%userinp:~0,1%
    if "%userinp%"=="6" goto yes
    goto no

    :Yes
    Net Stop "VMWARE VSS Writer"
    NET Stop "VMWARE SERVER WEB ACCESS"
    NET stop "VMWARE NAT Service"
    NET stop "VMware DHCP Service"
    NET STOP "VMware Host Agent"
    NET Stop "VMware Authorization Service"
    taskkill /f /im "vmware-vmx.exe"

    ECHO
    ECHO attempted to kill vmware server processes
    ECHO check terminal output to verify
    GOTO End

    :No
    ECHO Did not attempt to end VMware server processes

    :End
    pause

  7. Thanks! Especially Ted. These are the actual services in my version of VMware server. The solution is simple. I was actually searching for a way to start the virtual machine with a shortcut WITHOUT the console and I also need to know what services need to be started for that. I presume that the web access service is not, the dhcp service and/or nat service only if you need and configured it for the network and the host agent maybe for host-only network? (together with the DHCP service?). VSS I don’t know and the Authorization service is probably always needed. Am I right?

  8. Another remark:

    The FIRST service to start should be the authorization service. The second one the host agent.

    The LAST service to STOP is the uthorization service. Prior to last the host agent.

    If you do not, other services might fail to start or stop.

  9. Now that VMware Server 2.0 is out, how can the above scripts be modified to work with with the new version?

    It does not appear that there is a vmware.exe in the new version, and my attempts at successfully starting VMware Server 2.0 by launching other EXEs have proven futile.

  10. I have the same question as Mikey.

    For VMware Server, there are a number of EXEs, but no “VMware.exe”. There is a VMware-vmx.exe, but when I run it, it cautions me not to, with the admonition:

    “To run the user interface use vmware not vmware-vmx”, however, “VMware” is not found, and I searched my drive and can’t find any such file.

    Confusing, at best (VMware server 2.0.2-203138, VMware-vix 1.6.2-203138).

    Jim

  11. Why they don’t just put a check box:

    [] Start with the OS startup

    Is it so hard to do ? I am new to VMware but still, it shouldn’t be so hard to figure it out for anyone.

  12. [...] on a virtual machine fails with the error: The VMware Authorization Service is not running How to Start & Stop VMware server/Workstation manually | Windows Reference Always Looking To Learn More ???? ?? ??? [...]

  13. Follow up:: In my case, ‘The bug’ was not caused by an absence of internet access, but rather by Comodo firewall free, v.5.5. Once traffic is blocked through the firewall, vmware will not work and will display the msg “authorization …”. To have Vmware PLayer work again, I have to allow traffic back in Comodo firewall, and in addition I must reboot.

  14. Hey, thanks for the tips!

    Another easy-to-handle-approach could be the following:

    net start “VMWare Authorization Service”
    net start “VMWare DHCP Service”
    net start “VMWare NAT Service”
    net start “VMWare Registration Service”
    net start “VMWare Virtual Mount Manager Extended”
    start /wait vmware.exe
    net stop “VMWare Registration Service”
    net stop “VMWare Authorization Service”
    net stop “VMWare DHCP Service”
    net stop “VMWare NAT Service”
    net stop “VMWare Virtual Mount Manager Extended”

    This way, VMware starts with the propper services set up in time, waiting until you close VMware and automaticly clean up the unneeded services. Optionally compile the batch to an exe and make it invisible ;) This little tool here did the trick for me:

    http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html

    P.S.: I use VMware Player, I had to change some services as they did not all match, but the look in services.msc was enough to find out what was needed for my system.

  15. Thanks Loki – that worked fine (after I altered the open & close quotes to simple ” and matched up the services). I am running Mint 10 in a VM under XP, and am amazed how fast the VM loads up. It seems to me the Host browser slowdown is so severe with these services running, that VMWare should incorporate the services start-stop into the program – but i don’t want to appear ungrateful for a free utility that gives me such easy access to Linux, on a PC which is apparently incompatible (graphics) with all Linux flavours i have tried to install conventionally.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>