Page 1 of 1
VM won't start or shutdown with host startup/reboot
Posted: 11. May 2014, 02:37
by ccampbell15
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?
Re: VM won't start or shutdown with host startup/reboot
Posted: 12. May 2014, 18:42
by socratis
ccampbell15 wrote:VBoxHeadless --startvm RolandBackup
Try to change the above to:
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless" --startvm RolandBackup
If that doesn't work try:
"C:\Program Files\Oracle\VirtualBox\VBoxManage" startvm RolandBackup --type headless
Re: VM won't start or shutdown with host startup/reboot
Posted: 12. May 2014, 18:48
by ccampbell15
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
VM won't start or shutdown with host startup/reboot
Posted: 9. Sep 2014, 18:19
by jnieves13
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.
Re: VM won't start or shutdown with host startup/reboot
Posted: 9. Sep 2014, 18:42
by scottgus1
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.
Re: VM won't start or shutdown with host startup/reboot
Posted: 9. Sep 2014, 19:17
by mpack
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.
Looks like somebody forgot to put quotes around a path.
Re: VM won't start or shutdown with host startup/reboot
Posted: 9. Sep 2014, 21:35
by jnieves13
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.
Thx Scootgus1.......I'll go ahead and open a new thread with the updates from today's testing.