Autostart multiple VMs

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jschmied84
Posts: 3
Joined: 11. Jan 2014, 11:52

Autostart multiple VMs

Post by jschmied84 »

I would like to autostart multple VMs on boot.

So far I use a .bat File which I execute via the windows task scheduler. The structure of this file is:
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe startvm "vm1" "vm2" "vm3"

The problem now is. Only "vm1" starts. "vm2" and "vm3 do not start.

Does anyone know how to solve this issue?

Best,
Jürgen
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Autostart multiple VMs

Post by socratis »

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe startvm "vm1"
VBoxManage.exe startvm "vm2"
VBoxManage.exe startvm "vm3"
Maybe?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
jschmied84
Posts: 3
Joined: 11. Jan 2014, 11:52

Re: Autostart multiple VMs

Post by jschmied84 »

This I tried already. Did not work.

When I run VBoxManage.exe startvm "vm1" "vm2" "vm3" manually in cmd.exe it works, but not when I run it with a .bat file and the task scheduler.
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 multiple VMs

Post by Perryg »

jschmied84
Posts: 3
Joined: 11. Jan 2014, 11:52

Re: Autostart multiple VMs

Post by jschmied84 »

Thanks, that helped.
Post Reply