Objective
I want to run this command VBoxManage startvm MyVM --type headless
at the boot system just like a service (postgres, apache) does.
What i've tried
1. I've tried to create a service using sc command
I've found over the internet that could be the solution so i tried all this versions:
sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage.exe startvm MyVM --type headless"
sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage startvm MyVM --type headless"
No success, so i tried to suppress the verbose output of the command
sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage.exe startvm MyVM --type headless > NUL"
sc create "vboxMyVMService" binPath= "C:\Progman Files\Oracle\VirtualBox\VBoxManage startvm MyVM --type headless"
Still no results. All this version returned me a 1053 error. So the last call was to add the Virtualbox command to the Path
sc create "vboxMyVMService" binPath= "VBoxManage.exe startvm MyVM --type headless"
sc create "vboxMyVMService" binPath= "VBoxManage startvm MyVM --type headless"
suppressing output
sc create "vboxMyVMService" binPath= "VBoxManage.exe startvm MyVM --type headless > NUL"
sc create "vboxMyVMService" binPath= "VBoxManage startvm MyVM --type headless > NUL"
No positive result always 1053 error.
2. Assign Computer Startup Scripts
I followed this tutorial with my last hope, but no success.
I'm thinking about to download the Visual Studio and try something related to create a service project.
So guys, where is my mistake? Is there hope to me?
FAQs
Can you switch you OS to linux?
- No. It's out of question.
Why you need this VM to startup at with the system?
- Unfortunately this windows 7 host is a small server for the application running over the VM. The machine it's not mine and it's the only option they gave to me to make the deploy.
Why you are not making the deploy of the application inside the windows host?
- I'm not running PHP, or any .NET stuff, so no.
Comments
Post a Comment