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