How to start virtualbox vm at boot

Add the following line (example) to /etc/rc.d/rc.local:

su – giovanni -c “/usr/bin/vboxmanage startvm redmine –type headless”

where:

giovanni is the user associated with the virtual machine (his home has .VirtualBox directory)
redmine is the name of the virtual machine

Advertisements

Leave a Reply

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

WordPress.com Logo

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