0113.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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,i12bretro,how to,tutorial">
  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. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  12. <script type="text/javascript" src="includes/js/steps.js"></script>
  13. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <div id="gridContainer">
  17. <div class="topMargin"></div>
  18. <div id="listName" class="topMargin">
  19. <h1>Web Based VirtualBox Administration with phpVirtualbox</h1>
  20. </div>
  21. <div></div>
  22. <div id="content">
  23. <h2>Pre-requisites</h2>
  24. <ul>
  25. <li>A web server running PHP 5.1.0 (WAMP/LAMP/XAMPP/PHP for IIS)</li>
  26. <li>PHP SOAP extension enabled</li>
  27. <li>A VirtualBox installation</li>
  28. </ul>
  29. <h2>Installation and Setup</h2>
  30. <ol>
  31. <li>Download phpVirtualBox <a href="https://github.com/phpvirtualbox/phpvirtualbox/" target="_blank">Download</a></li>
  32. <li>Extract phpVirtualBox</li>
  33. <li>Copy phpVirtualBox to a folder named virtualbox in the PHP web directory</li>
  34. <li>Navigate to config.php-example, make a copy and name it config.php</li>
  35. <li>Open config.php in Notepad</li>
  36. <li>Update the $username and $password variables to set an admin login</li>
  37. <li>Update the $location variable to the IP address of the VirtualBox host</li>
  38. <li>Save the changes to config.php</li>
  39. <li>On the VirtualBox host, Click the Start Button &gt; Type Control Panel&nbsp; and select it</li>
  40. <li>Click Windows Defender Firewall</li>
  41. <li>Click Advanced settings in the left navigation menu</li>
  42. <li>Select Inbound Rules &gt; New Rule...</li>
  43. <li>Select Port &gt; Click Next</li>
  44. <li>Select TCP and specify port 18083 &gt; Click Next</li>
  45. <li>Select Allow the Connection &gt; Click Next</li>
  46. <li>Click Next &gt; Name the rule phpVirtualBox &gt; Click Finish</li>
  47. <li>Select Outbound Rules &gt; New Rule...</li>
  48. <li>Select Port &gt; Click Next</li>
  49. <li>Select TCP and specify port 18083 &gt; Click Next</li>
  50. <li>Select Allow the Connection &gt; Click Next</li>
  51. <li>Click Next &gt; Name the rule phpVirtualBox &gt; Click Finish</li>
  52. <li>Right click on the Start button &gt; Command Prompt (Admin) &gt; Paste the following command
  53. <div class="codeBlock">&quot;%ProgramFiles%\Oracle\VirtualBox\vboxwebsrv.exe&quot; -H 192.168.0.83 &gt;nul</div>
  54. </li>
  55. <li>Open a browser and navigate to http://IPorDNS/virtualbox</li>
  56. <li>Login with the username and password set in config.php</li>
  57. <li>Manage VirtualBox VMs from the browser</li>
  58. </ol>
  59. </div>
  60. </div>
  61. </body>
  62. </html>