How to run virtual machine as windows services

If you are a user of VM workstation, you can run virtual machine as windows service. So that log out from host machine does not impact on running guest OS. Even if you reboot host, it will automatically restart guest machine. So there will be no manual intervention. How to do that?

Step1 download windows resource tool kit and install in host 

Step2 go to start menu>All Program>windows resource kit tool and open windows resource kit

instsrv.exe TEST “c:\Program
Files (x86)\Windows Resource Kits\Tools\srvany.exe”


For this Article, I will add a “TEST” service.

Step3 start menu>run>regedit.exe>ok


right click on to TEST>New>Key and name it as parameters


right click on parameters>string value and name it as Application


right click application>modify and type

“C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe” –X “D:\WINVM\test.vmx”

Here, D:\winvm\test.vmx is the location and .vmx file of guest machine.


Apply and start the service.

Start menu>All program>VMware>VMware Workstation>Edit>Preferences>Check Keep VMs running after workstation closes.


About Raihan Al-Beruni

My Name is Raihan Al-Beruni. I am working as an Infrastructure Architect in Data Center Technologies in Perth, Western Australia. I have been working on Microsoft technologies for more than 15 years. Other than Microsoft technologies I also work on Citrix validated solution and VMware data center virtualization technologies. I have a Masters degree in E-Commerce. I am certified in Microsoft, VMware, ITIL and EMC. My core focus is on cloud technologies. In my blog I share my knowledge and experience to enrich information technology community as a whole. I hope my contribution through this blog will help someone who wants more information on data center technologies.
Gallery | This entry was posted in Virtualization and tagged . Bookmark the permalink.

Leave a Reply

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

You are commenting using your 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