Web Based VirtualBox Administration with phpVirtualbox 🌱

Pre-requisites

Installation and Setup

  1. Download phpVirtualBox Download
  2. Extract phpVirtualBox
  3. Copy phpVirtualBox to a folder named virtualbox in the PHP web directory
  4. Navigate to config.php-example, make a copy and name it config.php
  5. Open config.php in Notepad
  6. Update the $username and $password variables to set an admin login
  7. Update the $location variable to the IP address of the VirtualBox host
  8. Save the changes to config.php
  9. On the VirtualBox host, Click the Start Button > Type Control Panel  and select it
  10. Click Windows Defender Firewall
  11. Click Advanced settings in the left navigation menu
  12. Select Inbound Rules > New Rule...
  13. Select Port > Click Next
  14. Select TCP and specify port 18083 > Click Next
  15. Select Allow the Connection > Click Next
  16. Click Next > Name the rule phpVirtualBox > Click Finish
  17. Select Outbound Rules > New Rule...
  18. Select Port > Click Next
  19. Select TCP and specify port 18083 > Click Next
  20. Select Allow the Connection > Click Next
  21. Click Next > Name the rule phpVirtualBox > Click Finish
  22. Right click on the Start button > Command Prompt (Admin) > Paste the following command
    "%ProgramFiles%\Oracle\VirtualBox\vboxwebsrv.exe" -H 192.168.0.83 >nul
  23. Open a browser and navigate to http://IPorDNS/virtualbox
  24. Login with the username and password set in config.php
  25. Manage VirtualBox VMs from the browser