VirtualBox VM to run at Windows start up (using Win Service)
Posted: 28. Sep 2009, 19:55
Hello All,
I was able to configure a service in Windows that runs a batch file at system startup. The main reason is so we can trust that if the host server goes down for whatever reason, at startup it will boot all VM's without any Human interaction.
The services works well, but not the batch file. Im using VirtualBox's function called startvm but for some reason it's not working properly when starting the service. If I run the batch file, it will start the VM normally without any problem. But if I start the service (previously configure to run the same batch file) it shows that there's a problem with the name of the VM and says that there's no VM registered under that name. Same happens if I use the UUID, or even if I list the VMs using list vms command, it won't show anything. I'm not sure what's the difference between running the batch file only and running it using a service.
I sill don't know why VirtualBox devs have not come up with a solution for this. VMWare has a functionality to start VM's at system startup.
Any ideas will be truely appreciated.
Thanks!
I was able to configure a service in Windows that runs a batch file at system startup. The main reason is so we can trust that if the host server goes down for whatever reason, at startup it will boot all VM's without any Human interaction.
The services works well, but not the batch file. Im using VirtualBox's function called startvm but for some reason it's not working properly when starting the service. If I run the batch file, it will start the VM normally without any problem. But if I start the service (previously configure to run the same batch file) it shows that there's a problem with the name of the VM and says that there's no VM registered under that name. Same happens if I use the UUID, or even if I list the VMs using list vms command, it won't show anything. I'm not sure what's the difference between running the batch file only and running it using a service.
I sill don't know why VirtualBox devs have not come up with a solution for this. VMWare has a functionality to start VM's at system startup.
Any ideas will be truely appreciated.
Thanks!