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?
Autostart XP VM on XP PC?
-
squishyalt
- Posts: 4
- Joined: 22. Oct 2009, 14:06
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP Pro
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Autostart XP VM on XP PC?
Either drop the startvm or change the Virtualbox.exe to VBoxManageC:\Program Files\Sun\VirtualBox\Virtualbox.exe" startvm Generic_XP
-
squishyalt
- Posts: 4
- Joined: 22. Oct 2009, 14:06
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP Pro
Re: Autostart XP VM on XP PC?
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
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
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: Autostart XP VM on XP PC?
"C:\Program Files\Sun\VirtualBox\Virtualbox.exe" --startvm Generic_XP
(note "--" in front of startvm.)

"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.
(note "--" in front of startvm.)
"Either x or y" != "x and y"...squishyalt wrote:Nope. They didn't work.
"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.
-
squishyalt
- Posts: 4
- Joined: 22. Oct 2009, 14:06
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP Pro
Re: Autostart XP VM on XP PC?
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?
"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?
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: Autostart XP VM on XP PC?
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.)
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.)
-
squishyalt
- Posts: 4
- Joined: 22. Oct 2009, 14:06
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP Pro
Re: Autostart XP VM on XP PC?
For some reason, I did not include the "--" in the original test. Doing so makes this command work just fine.MarkCranness wrote:I would use VirtualBox.exe --startvm in preference to VBoxManage startvm myself.
Got it! Thanks for all of your help.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.)
May you meet people just like you when you need them most.