Error when putting Virtualbox as a service

Asked

Viewed 276 times

5

I created a windows service to configure my VM in mode Headless, 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 successfully created, but when I will initialize the service with the command:

> net start DailyLubuntu

, this error appears:

System error 2. The system cannot find the specified file. For more help, type NET HELPMSG 2186.

  • If you try to start the VM from Virtualbox, it works?

  • When I start with Virtualbox it works

  • Just to warn you. At this point there are 3 votes to close your question as out of scope for not being about programming (but none of these votes are mine). Personally, I wouldn’t know if the closure for this reason is valid or not.

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.