Hi All-
I created a task to run at startup using windows task scheduler to start up a VM.
Both the host and guest are Win7 64 bit
task is as follows:
trigger - at startup
Action start a program c:\lee\startVM.cmd
settings allow to be run on demand, if fail restart every 1 minute, stop if running longer than 3 days
History says it ran
Script
cd C:\Program Files\Oracle\VirtualBox
ping red.com -n 100 > c:\startVM.txt
VBoxHeadless --startvm RolandBackup
REM use task scheduler to run at startup
I know the script ran because it creates c:\startVM.txt and has all the pings in it but
the VM simply does not start.
If I run that script manually it starts. WTH?
VM won't start or shutdown with host startup/reboot
-
ccampbell15
- Posts: 10
- Joined: 18. Dec 2012, 11:41
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VM won't start or shutdown with host startup/reboot
Try to change the above to:ccampbell15 wrote:VBoxHeadless --startvm RolandBackup
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless" --startvm RolandBackup
If that doesn't work try:
"C:\Program Files\Oracle\VirtualBox\VBoxManage" startvm RolandBackup --type headless
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.
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.
-
ccampbell15
- Posts: 10
- Joined: 18. Dec 2012, 11:41
Re: VM won't start or shutdown with host startup/reboot
I found this http://vboxvmservice.sourceforge.net/ which runs the VM as a service. Does the trick. Tried the various iterations of vboxmanage and vboxheadless and it it just wouldn't work.
Thanks
Lee
Thanks
Lee
VM won't start or shutdown with host startup/reboot
I'm running 2k8 R2 with Vbox 4.3.15. I have several linked clones and have been trying to get them to start upon the physical server boot or reboot. The error i receive is the below.
All the vms are able to be started via a shortcut. However pasting that shortcut, which is the snapshot, into a task in task manger then trying the boot up won't work. Any try this before on linked clones.
Log Name: Microsoft-Windows-TaskScheduler/Operational
Source: Microsoft-Windows-TaskScheduler
Date: 9/9/2014 11:34:31 AM
Event ID: 203
Task Category: Action failed to start
Level: Error
Keywords:
User: WIN-CRJJA2ED5G1\Administrator
Computer: WIN-CRJJA2ED5G1
Description:
Task Scheduler failed to launch action "C:\Program" in instance "{edf7d407-495e-48b5-a32c-54c4a68c73cf}" of task "\VirtualBox\desktop2\desktop2Bootup". Additional Data: Error Value: 2147942402.
All the vms are able to be started via a shortcut. However pasting that shortcut, which is the snapshot, into a task in task manger then trying the boot up won't work. Any try this before on linked clones.
Log Name: Microsoft-Windows-TaskScheduler/Operational
Source: Microsoft-Windows-TaskScheduler
Date: 9/9/2014 11:34:31 AM
Event ID: 203
Task Category: Action failed to start
Level: Error
Keywords:
User: WIN-CRJJA2ED5G1\Administrator
Computer: WIN-CRJJA2ED5G1
Description:
Task Scheduler failed to launch action "C:\Program" in instance "{edf7d407-495e-48b5-a32c-54c4a68c73cf}" of task "\VirtualBox\desktop2\desktop2Bootup". Additional Data: Error Value: 2147942402.
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: VM won't start or shutdown with host startup/reboot
jnieves13, I reckon you're going to want to start your question in a new thread, as it isn't the same as the OP's problem.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: VM won't start or shutdown with host startup/reboot
Looks like somebody forgot to put quotes around a path.jnieves13 wrote: Description:
Task Scheduler failed to launch action "C:\Program" in instance "{edf7d407-495e-48b5-a32c-54c4a68c73cf}" of task "\VirtualBox\desktop2\desktop2Bootup". Additional Data: Error Value: 2147942402.
Re: VM won't start or shutdown with host startup/reboot
Thx Scootgus1.......I'll go ahead and open a new thread with the updates from today's testing.scottgus1 wrote:jnieves13, I reckon you're going to want to start your question in a new thread, as it isn't the same as the OP's problem.