Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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