Error putting Virtualbox as service [closed]

5

I created a service in windows to be able to configure my VM in Headless mode, with the command:

sc.exe create DailyLubuntu binpath= "\"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe\"  startvm Daily LUbuntu - Lucas" DisplayName= \"Daily Lubuntu VM" start= "auto"

The service was created successfully, but when I start the service with the command:

> net start DailyLubuntu

, this error appears:

  

System error 2. The system can not find the file specified. For more help, enter NET HELPMSG 2186.

    
asked by anonymous 14.05.2015 / 21:56

1 answer

1

There is a project called VBoxVmService that does this service for you . Just install, change the VBoxVmService.ini file within C:\vms and restart the service.

    
15.05.2015 / 16:28