Thursday, April 11, 2013

How to auto start vmware guest OS when Windows host computer restart

Step 1. Create a new text file and save it as "startVM.bat"

Step 2. Ensure that the path of vmware is added in envrionment variable and enter the following into the "startVM.bat" and save:
vmrun -T ws start "Your_VM_Image.vmx"
Step 3. Open up "Task Scheduler" and select "Create Basic Task" under "Actions" tab.


Step 3.1 Give the task a name and click next.


Step 3.2 Choose "When the computer starts" when asked when you want the task to start.


Step 3.3 Choose "Start a program" when asked what action do you want the task to perform.


Step 3.4 Under "Program/script", browse to the location where you saved the "startVM.bat"


Step 3.5 Check "Open the properties dialog for this task when I click Finish" and click "Finish".



The "startVM.bat" is now scheduled to run when computer start. Now we will tweak the task to start one minute after the computer start so to allow the system to start up all the services before running the vmware. 

Step 4. Go to "Triggers" tab and double click on the trigger in the list.


Step 5. Check "Delay task for:" under "Advanced settings" and choose "1 minute". Press "ok" and you have successfully configure your vmware OS to auto start when your host OS restart.




No comments:

Post a Comment