My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Windows2008Service  
Start vboxwebsrv as "service" in Windows 7 / Server 2008 / Vista
Updated Oct 2, 2011 by imooreya...@gmail.com

Introduction

The following is user-contributed documentation. I am unable to verify the validity of these instructions.

Details

1) install VirtualBox

2) menu start --> administrative tools --> task scheduler

3) create a new task

4) put name and description. Under security option, click on "change user or group", if needed to select the user VirtualBox is supposed to run as. Than select "run whatever the user is log on or not" and check the box "hidden"

5) tab triggers --> new --> begin the task: At startup

6) tab Actions --> new --> Action : start a program

Program Script : browse to find an select vboxwebsrv (suppose to be in C:\Program Files\Oracle\VirtualBox

7) DO NOT ADD ARGUMENTS

8) check tabs conditions and settings for custom choices

9) Also don't forget to make a directory junction, as suggested in comment #10 http://code.google.com/p/phpvirtualbox/issues/detail?id=43#c10

If you don't do this, all your VMs will be inacessible

Directory junction has to be created using this command (replace username with your user profile name) C:\Windows\System32\config\systemprofile>mklink /j .Virtualbox C:\Users\username\.VirtualBox

10) have fun, test rebooting your machine

Comment by anubis...@gmail.com, Jul 13, 2011

it should work also in windows 7 Regards Andrea

Comment by boris.sa...@gmail.com, Oct 2, 2011

I can confirm it works in Windows 7. It would be great if you can change title to "Start vboxwebsrv.exe as a service in Windows 7/Server 2008/Vista

--

Also don't forget to make a directory junction, as suggested in comment #10 http://code.google.com/p/phpvirtualbox/issues/detail?id=43#c10

If you don't do this, all your VMs will be inacessible

Directory junction has to be created using this command (replace username? with your user profile name) C:\Windows\System32\config\systemprofile>mklink /j .Virtualbox C:\Users\[username]\.VirtualBox

Comment by edge...@gmail.com, Jan 10, 2012

I've tested this settings and it has not worked for me. (Using Windows Server 2008 R2 Standard and Oracle VirtualBox? 4.1.8)

I've configured the task using a limited account and in this enviromment it fault.

To make it work you need:

  • Click Start, point to All Programs, point to Administrative Tools, and then click Component Services.
  • Expand Component Services, expand Computers, expand My Computer, and then expand DCOM Config.
  • Right-click Virtualbox Application, and then click Properties. Click the Security tab.
    1. Under All Permissions, click Edit.
    2. Click Add and add the user that run virtualbox task
    3. Select all permissions
  • At end of the creation of the task, please check "Run with highest privileges"

And if you are using the web service to manage remotely, please add arguments to the task under the tab Actions --> Add arguments (Optional) : "--host ipofthemachine" after selecting the "vboxwebsrv.exe"


Sign in to add a comment
Powered by Google Project Hosting