VBoxWebSrv is the VirtualBox Web Service that allows you to manage your VirtualBox virtual machines remotely through a web-based API. It is commonly used with tools like phpVirtualBox to provide a full web interface for VM control.
By running VBoxWebSrv as a Windows service, you ensure it starts automatically with your system and runs continuously in the background.
Installing VBoxWebSrv as a Windows Service with NSSM
Download NSSM (Non-Sucking Service Manager) from https://nssm.cc/download and extract it.
Open Command Prompt as Administrator and run:
C:\nssm\win64\nssm.exe install VBoxWebSrv
In the NSSM GUI:
Set Path to C:\Progra~1\Oracle\VirtualBox\VBoxWebSrv.exe
Set Startup directory to C:\Progra~1\Oracle\VirtualBox
Add arguments
-H 0.0.0.0 -p 18083Click Install service
Start the service with:
C:\nssm\win64\net start VBoxWebSrv
Open the port 18083 in the Windows Firewall
Test if the service is available
C:\nssm\win64\netstat -an | findstr 18083 C:\nssm\win64\curl http://localhost:18083/ C:\nssm\win64\telnet localhost 18083