0113.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Web Based VirtualBox Administration with phpVirtualbox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="VirtualBox,PhpVirtualBox,Web Based Tools,Browser VM Control,Virtual Machine,VM,Browser Based,Home Lab,Home Lab Ideas,Hypervisor,Install Guide,Self-Hosted,Web Based,PHP,Web Server Administration,System Administrator,Web Based VirtualBox Administration,Control VirtualBox VMs From Web Browser,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Web Based VirtualBox Administration with phpVirtualbox">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/05/2022 08:32:43 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Web Based VirtualBox Administration with phpVirtualbox</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Pre-requisites</h2>
  26. <ul>
  27. <li>A web server running PHP 5.1.0 (WAMP/LAMP/XAMPP/PHP for IIS)</li>
  28. <li>PHP SOAP extension enabled</li>
  29. <li>A VirtualBox installation</li>
  30. </ul>
  31. <h2>Installation and Setup</h2>
  32. <ol>
  33. <li>Download phpVirtualBox <a href="https://github.com/phpvirtualbox/phpvirtualbox/" target="_blank">Download</a></li>
  34. <li>Extract phpVirtualBox</li>
  35. <li>Copy phpVirtualBox to a folder named virtualbox in the PHP web directory</li>
  36. <li>Navigate to config.php-example, make a copy and name it config.php</li>
  37. <li>Open config.php in Notepad</li>
  38. <li>Update the $username and $password variables to set an admin login</li>
  39. <li>Update the $location variable to the IP address of the VirtualBox host</li>
  40. <li>Save the changes to config.php</li>
  41. <li>On the VirtualBox host, Click the Start Button &gt; Type Control Panel&nbsp; and select it</li>
  42. <li>Click Windows Defender Firewall</li>
  43. <li>Click Advanced settings in the left navigation menu</li>
  44. <li>Select Inbound Rules &gt; New Rule...</li>
  45. <li>Select Port &gt; Click Next</li>
  46. <li>Select TCP and specify port 18083 &gt; Click Next</li>
  47. <li>Select Allow the Connection &gt; Click Next</li>
  48. <li>Click Next &gt; Name the rule phpVirtualBox &gt; Click Finish</li>
  49. <li>Select Outbound Rules &gt; New Rule...</li>
  50. <li>Select Port &gt; Click Next</li>
  51. <li>Select TCP and specify port 18083 &gt; Click Next</li>
  52. <li>Select Allow the Connection &gt; Click Next</li>
  53. <li>Click Next &gt; Name the rule phpVirtualBox &gt; Click Finish</li>
  54. <li>Right click on the Start button &gt; Command Prompt (Admin) &gt; Paste the following command
  55. <div class="codeBlock">&quot;%ProgramFiles%\Oracle\VirtualBox\vboxwebsrv.exe&quot; -H 192.168.0.83 &gt;nul</div>
  56. </li>
  57. <li>Open a browser and navigate to http://IPorDNS/virtualbox</li>
  58. <li>Login with the username and password set in config.php</li>
  59. <li>Manage VirtualBox VMs from the browser</li>
  60. </ol>
  61. </div>
  62. </div>
  63. </body>
  64. </html>