Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Initially i was using window server 2008 and vmware worktation 7. There i had .bat file and i put at startup folder to start Vms at startup.

I have chnaged my OS to ubuntu . how can i auto start VM in there

share|improve this question

vmrun is the correct option. I use the following to start a VMware Workstation VM in the background.

vmrun start "$vmimg"  nogui

where $vmimg is the full path to the vmx file of the VM. The key option that you want is the nogui option so that the VMware Workstation gui doesn't come up.

share|improve this answer

You should be able to use the vmrun command to start up VMs in the background from the command line, and use it in /etc/rc.local when your system boots. (You will need to use sudo -e /etc/rc.local to edit that file.)

Unfortunately, I'm not familiar enough with the details of Workstation to give you a specific example.

share|improve this answer

Your Answer


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