How to Start & Stop VMware server/Workstation manually

If you're new here, you may want to subscribe to Windows Reference RSS feed Thanks for visiting!

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.

  • Share/Bookmark

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically each day to your feed reader.

Trackbacks & Pingbacks

No trackbacks/pingbacks yet.

Comments

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.

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.

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”

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

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”

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

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?

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.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required)