Page 1 of 1
Autostart XP VM on XP PC?
Posted: 22. Oct 2009, 14:13
by squishyalt
Autostart? I've searched everywhere for how to autostart a virtualbox VM on XP to no avail.
I have an XP Home PC and I want to autostart an XP Pro virtualbox vm when the user logs in to the XP Home PC.
This seems like a simple thing to do, but damned if I can find it.
I tried using...
"C:\Program Files\Sun\VirtualBox\Virtualbox.exe" startvm Generic_XP
...but that just starts the virtualbox client and not the Generic_XP vm.
Any ideas?
Re: Autostart XP VM on XP PC?
Posted: 22. Oct 2009, 16:19
by Perryg
C:\Program Files\Sun\VirtualBox\Virtualbox.exe" startvm Generic_XP
Either drop the startvm or change the Virtualbox.exe to VBoxManage
Re: Autostart XP VM on XP PC?
Posted: 23. Oct 2009, 01:41
by squishyalt
Nope. They didn't work.
So far I have tried....
"C:\Program Files\Sun\VirtualBox\Virtualbox.exe" startvm Generic_XP
--- just starts virtualbox xlient
"C:\Program Files\Sun\VirtualBox\Virtualbox.exe" Generic_XP
--- just starts virtualbox client
"C:\Program Files\Sun\VirtualBox\VBoxManage.exe" Generic_XP
--- starts a command window and looks like it tries to launch something but closes too quickly to tell what is going on - does not open client or vm
Re: Autostart XP VM on XP PC?
Posted: 23. Oct 2009, 01:52
by MarkCranness
"C:\Program Files\Sun\VirtualBox\Virtualbox.exe" --startvm Generic_XP
(note "--" in front of startvm.)
squishyalt wrote:Nope. They didn't work.
"Either x or y" != "x and y"...

"C:\Program Files\Sun\VirtualBox\VBoxManage.exe" startvm Generic_XP
... works, but temporarily pops up a command window, and internally calls Virtualbox.exe --startvm anyway.
Re: Autostart XP VM on XP PC?
Posted: 23. Oct 2009, 02:23
by squishyalt
This works....
"C:\Program Files\Sun\VirtualBox\VBoxManage.exe" startvm Generic_XP
Thanks so much for your help!
Just one last question...is there a switch to force the launching vm to go fullscreen?
Re: Autostart XP VM on XP PC?
Posted: 23. Oct 2009, 07:09
by MarkCranness
I would use VirtualBox.exe --startvm in preference to VBoxManage startvm myself.
The VM should restart in the same state (fullscreen or not) as it was last closed:
Start the VM, turn Fullscreen off, turn 'Auto-resize Guest Display' on (Host+G, on the Machine menu, make sure it has a box and tick displayed), turn fullscreen back on (Host+F) and when you next start it should be fullscreen.
(I've also checked: Run: 'Maximized' on the shortcut that starts the VM.)
Re: Autostart XP VM on XP PC?
Posted: 23. Oct 2009, 08:27
by squishyalt
MarkCranness wrote:I would use VirtualBox.exe --startvm in preference to VBoxManage startvm myself.
For some reason, I did not include the "--" in the original test. Doing so makes this command work just fine.
MarkCranness wrote:The VM should restart in the same state (fullscreen or not) as it was last closed:
Start the VM, turn Fullscreen off, turn 'Auto-resize Guest Display' on (Host+G, on the Machine menu, make sure it has a box and tick displayed), turn fullscreen back on (Host+F) and when you next start it should be fullscreen.
(I've also checked: Run: 'Maximized' on the shortcut that starts the VM.)
Got it! Thanks for all of your help.
May you meet people just like you when you need them most.