Line 101: |
Line 101: |
| <b>Note: Without the ''virtualbox'' file, vbox services on your rc7.d folder will not start.</b> | | <b>Note: Without the ''virtualbox'' file, vbox services on your rc7.d folder will not start.</b> |
| | | |
− | <li value="20">Login to the server-manager page and create an iBay for <b>phpvbox</b>. | + | <li value="20">Install phpVirtualBox using this link http://wiki.contribs.org/Phpvirtualbox#DB_Configuration |
− | For instructions on how to create and configure an ibay, please see [http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter14 the SME Server Administration manual.]</li>
| |
| | | |
− | <b>After creating the ibay, do not forget to assign a password.</b>
| + | <li value="21">Ensure that the extension pack is installed correctly. |
− | | |
− | <li value="21">Before we install <b>[http://code.google.com/p/phpvirtualbox/ phpVirtualBox]</b>, make sure you first install <b>SOAP</b>.</li> | |
− | <pre>yum install php-soap</pre>
| |
− | As of 2012-09-03 a fresh sme8b6 with updates installed, the above line tries to install php-soap-5.3.3-13.el5.sme.1.x86_64. If yum complains about a missing dependency php-common-5.3.3-13.el5.sme.1, verify whether you have installed php-common-5.3 by issuing this command "rpm -qa | grep php-common". If so, you can obtain php-soap-5.3.3-1.el5.sme.6 by invoking "<tt>yum install --enablerepo smedev php-soap-5.3.3-1.el5.sme.6</tt>". Integration test passed.
| |
− | | |
− | To avoid this error message “PHP does not have the SOAP extension enabled” especially if you have no plan of restarting the server.
| |
− | <pre>svc -t /service/httpd-e-smith/</pre>
| |
− | <li value="22">Install <b>phpVirtualBox</b></li>
| |
− | <pre>cd /tmp
| |
− | wget 'http://sourceforge.net/projects/phpvirtualbox/files/latest/download'
| |
− | unzip phpvirtualbox-4.2-8.zip -d /home/e-smith/files/ibays/phpvbox/html/</pre>
| |
− | Note: at the time of the last update, the latest version was 4.2-8. Please adjust the following for later versions.
| |
− | <li value="23">Create a <b>tmp</b> folder inside the /phpvbox/html folder.</li>
| |
− | <pre>cd /home/e-smith/files/ibays/phpvbox/html
| |
− | mkdir tmp
| |
− | chmod 777 tmp/</pre>
| |
− | <li value="24">Create a config file using the example file provided.</li>
| |
− | <pre>cp config.php-example config.php</pre>
| |
− | <li value="25">Open ''config.php'' (located on your /phpvbox/html/ folder). Uncomment some lines (by removing the '#' at the beginning of the line).
| |
− | <pre>nano /home/e-smith/files/ibays/phpvbox/html/config.php</pre>
| |
− | <pre>/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
| |
− | var $location = 'http://127.0.0.1:18083/';</pre>
| |
− | <pre>// Disable authentication
| |
− | var $noAuth = true;</pre>
| |
− | | |
− | Set the consoleHost parameter to the hostname of the server running VirtualBox
| |
− | <pre>// Host / ip to use for console connections
| |
− | //var $consoleHost = 'host-name-of-the-server-running-virtualbox';</pre>
| |
− | | |
− | <pre>/* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
| |
− | * Note that some of these items may not be translated to languages other than $
| |
− | */
| |
− | var $enableAdvancedConfig = true;</pre>
| |
− | | |
− | <pre>// Authentication library.
| |
− | //var $authLib = 'Builtin';</pre>
| |
− | <!--
| |
− | <pre>// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
| |
− | //var $enableVDE = true;</pre>
| |
− | -->
| |
− | | |
− | Change the tmp location as per below.
| |
− |
| |
− | </li>
| |
− | <li value="26">Disable authentication of ''vboxwebsrv'' (this is not recommended, but at this stage, this is the only setup that works). Login to the server’s SSH and type this command.</li>
| |
− | <pre>vboxmanage setproperty websrvauthlibrary null</pre>
| |
− | <li value="27">Install VirtualBox extension pack to enable support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. Please install the extension pack with the same version as your installed version of VirtualBox!</li>
| |
− | | |
− | You can find the extension packs [http://download.virtualbox.org/virtualbox/ here.] The following commands download and install the extension pack for VirtualBox 4.3.
| |
− | | |
− | <pre>wget http://download.virtualbox.org/virtualbox/4.3.6/Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack
| |
− | vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.6-91406.vbox-extpack</pre>
| |
− | | |
− | <li value="28">Update SME, and reboot again</li>
| |
− | <pre>signal-event post-upgrade; signal-event reboot</pre>
| |
− | | |
− | <li value="29">Ensure that the extension pack is installed correctly.
| |
| Open a console window, then | | Open a console window, then |
| <pre>vboxmanage list extpacks</pre> | | <pre>vboxmanage list extpacks</pre> |
Line 169: |
Line 111: |
| Finally, | | Finally, |
| | | |
− | <li value="30">Open a terminal window to the SME Server and create a directory to store the virtual machine images.</li> | + | <li value="22">Open a terminal window to the SME Server and create a directory to store the virtual machine images.</li> |
| <pre>mkdir -p /opt/vms</pre> | | <pre>mkdir -p /opt/vms</pre> |
− | <li value="31">Download the VirtualBox Guest Additions iso for later installation into your virtual machine guests.</li> | + | <li value="23">Download the VirtualBox Guest Additions iso for later installation into your virtual machine guests.</li> |
| <pre>mkdir -p /opt/vms/addons | | <pre>mkdir -p /opt/vms/addons |
| cd /opt/vms/addons | | cd /opt/vms/addons |
| wget http://download.virtualbox.org/virtualbox/4.3.6/VBoxGuestAdditions_4.3.6.iso</pre> | | wget http://download.virtualbox.org/virtualbox/4.3.6/VBoxGuestAdditions_4.3.6.iso</pre> |
| | | |
− | <li value="32">Using a web browser, Go to http://yourdomain.com/phpvbox and connect to the phpVirtualBox web application. | + | <li value="24">Using a web browser, Go to http://yourdomain.com/phpvirtualbox and connect to the phpVirtualBox web application. |
| <ul> | | <ul> |
| <li>From the menu provided, go to select File->Preferences.</li> | | <li>From the menu provided, go to select File->Preferences.</li> |