Page 1 of 1

Autostart ?

Posted: 11. Nov 2008, 15:07
by eludom2
Is there an approved/standard way to autostart a vm under windows ?

I've created one line .bat file that starts the VM I want using VBoxHeadless.
Works fine if I run it by hand.
If I set it up as a scheduled task to run at start, it exits with an error code.
If I put in the registry HKEY_LOCAL_MACHINE\software\microsoft\current_version\run it
starts up fine when I log in, but not when other users log in.
I also tried the VBoxVMService program from sourceforge...seems to start
but then is not running.

This can't be that uncommon a thing to do ? What am I missing ?

Thanks,
---George Jones

Posted: 11. Nov 2008, 18:09
by TerryE
There is a stick at the top of this forum on a utility which automates this.

The reason that your approach doesn't work is that the .VirtualBox folder, VMs etc is pathed from %USERPROFILE% which varies by user. If other users want to share your VBox context then you need to set your file access and use the VBOX_USER_HOME environment variable as discussed in the UG.