I have Virtualbox installed on a machine that I want to run headless.
If I ssh into that machine I’m able to run
VBoxHeadless –startvm “WindowsXP” &
and everything runs great.
I want to run the guest headless.
I put the above command into
/etc/rc.local
but it doesn’t spark up, after I restart.
I’ve written a bash script that starts the guest too and tried putting a reference to the bash script into rc.local but it does’t work.
What am I doing wrong? Doesn’t rc.local run commands after all the init.d scripts have run?
Thanks in advance!
You have to run VBoxHeadless as the same user that you used to create the setup. Have you done that?
You can use the su command for this