Line 12: |
Line 12: |
| <li>Setup SME Server v8 beta 6.</li> | | <li>Setup SME Server v8 beta 6.</li> |
| <li>Do a yum update.</li> | | <li>Do a yum update.</li> |
− | | + | <pre>yum update</pre> |
− | <pre>yum update</pre>
| + | <li> If any updates were applied, update and reboot the server.</li> |
− | | |
− | <li> If any updates were applied,</li> | |
− | <li>
| |
| <pre>signal-event post-upgrade | | <pre>signal-event post-upgrade |
| signal-event reboot</pre> | | signal-event reboot</pre> |
− | </li>
| |
| <li>Check your current kernel.</li> | | <li>Check your current kernel.</li> |
− | | + | <pre>uname -r</pre> |
− | <pre>uname -r</pre>
| |
− | | |
| <li>Install kernel-devel to get the latest development tree.</li> | | <li>Install kernel-devel to get the latest development tree.</li> |
− |
| |
| Use this command only if you have a PAE kernel installed: | | Use this command only if you have a PAE kernel installed: |
− | | + | <pre>yum install kernel-PAE-devel kernel-headers</pre> |
− | <pre>yum install kernel-PAE-devel kernel-headers</pre>
| |
| Otherwise, | | Otherwise, |
− | | + | <pre>yum install kernel-devel kernel-headers</pre> |
− | <pre>yum install kernel-devel kernel-headers</pre>
| + | <li> Check if the compiler (GCC) is installed. If not installed, install it.</li> |
− | | + | <pre>yum install gcc</pre> |
− | <li> | + | <li>Update SME, and reboot again</li> |
− | Update SME again | |
| <pre>signal-event post-upgrade | | <pre>signal-event post-upgrade |
| signal-event reboot</pre> | | signal-event reboot</pre> |
− | </li>
| |
| <li>Create a symbolic link</li> | | <li>Create a symbolic link</li> |
| + | <pre>NOTE: Be careful if you cut-and-paste the command below. |
| + | In some terminal windows, from some browsers, the parts of the command in |
| + | bold font do not paste correctly. Pay particular attention to the |
| + | dashes (-) and the backticks (`). There aren't any single quote marks in |
| + | the command below - they are all supposed to be backticks.</pre> |
| | | |
− | NOTE: Be careful if you cut-and-paste the command below. In some terminal windows, from some browsers, the parts of the command in <b>bold</b> font do not paste correctly. Pay particular attention to the dashes (-) and the backticks (`). There aren't any single quote marks in the command below - they are all supposed to be backticks.
| + | ln <b>–s</b> /usr/src/kernels/<b>`uname –r`</b>-<b>`uname-m`</b> /lib/modules/<b>`uname -r`</b>/build |
− | | |
− | ln <b>–s</b> /usr/src/kernels/<b>`uname –r`</b>-<b>`uname-m`</b> /lib/modules/<b>`uname -r`</b>/build
| |
| | | |
| <li>Check that the symbolic link was properly created by doing a directory listing.</li> | | <li>Check that the symbolic link was properly created by doing a directory listing.</li> |
| + | <pre>NOTE: Be careful if you cut-and-paste the command below. |
| + | In some terminal windows, from some browsers, the parts of the command in |
| + | bold font do not paste correctly. Pay particular attention to the |
| + | dashes (-) and the backticks (`). There aren't any single quote marks in |
| + | the command below - they are all supposed to be backticks.</pre> |
| | | |
− | ls /lib/modules/<b>`uname -r`</b>/build
| + | ls /lib/modules/<b>`uname -r`</b>/build |
| <li>Install the Fedora Epel repository using the instructions [http://wiki.contribs.org/Epel here].</li> | | <li>Install the Fedora Epel repository using the instructions [http://wiki.contribs.org/Epel here].</li> |
− |
| |
| <li>Install Dynamic Kernel Module Support (DKMS)</li> | | <li>Install Dynamic Kernel Module Support (DKMS)</li> |
| <pre>yum install --enablerepo=epel dkms</pre> | | <pre>yum install --enablerepo=epel dkms</pre> |
− |
| |
− | <!-- was
| |
− | <pre>wget http://packages.sw.be/dkms/dkms-2.1.1.2-1.el5.rf.noarch.rpm
| |
− | yum install dkms-2.1.1.2-1.el5.rf.noarch.rpm</pre>
| |
− | -->
| |
| <li>Install the VirtualBox repository using the instructions [http://wiki.contribs.org/VirtualBox_Repository here].</li> | | <li>Install the VirtualBox repository using the instructions [http://wiki.contribs.org/VirtualBox_Repository here].</li> |
− | | + | <li>Install <b>VirtualBox</b> (At the time of the last update to these instructions, the latest version was v4.1-2).</li> |
− | <li>Install <b>VirtualBox</b> (At the time of the last update to these instructions, the latest version was v4.1.2).</li> | |
− | <!--
| |
− | <pre>wget http://download.virtualbox.org/virtualbox/4.1.0/VirtualBox-4.1-4.1.0_73009_rhel5-1.i386.rpm
| |
− | yum install VirtualBox-4.1-4.1.0_73009_rhel5-1.i386.rpm -y</pre>
| |
− | Note: you will get an error message, which you can ignore.
| |
− | -->
| |
| <pre>yum install --enablerepo=virtualbox VirtualBox-4.1</pre> | | <pre>yum install --enablerepo=virtualbox VirtualBox-4.1</pre> |
− | | + | <li>Review the VirtualBox installation log to ensure that the installation was successful.</li> |
− | <li>Setup VirtualBox as a service so it starts automatically after a reboot by copying the vboxwebsrv from rc5.d to rc7.d.</li> | + | <pre>tail /var/log/vbox-install.log</pre> |
| + | <li> Remove the compiler install (for security best practices)</li> |
| + | <pre> rpm -e gcc</pre> |
| + | <li>Update SME, and reboot again</li> |
| + | <pre>signal-event post-upgrade |
| + | signal-event reboot</pre> |
| + | <li>Setup VirtualBox as a service so it starts automatically after a reboot.</li> |
| <pre>cp /etc/rc5.d/S30vboxdrv /etc/rc7.d/. | | <pre>cp /etc/rc5.d/S30vboxdrv /etc/rc7.d/. |
| cp /etc/rc5.d/S35vboxballoonctrl-service /etc/rc7.d/. | | cp /etc/rc5.d/S35vboxballoonctrl-service /etc/rc7.d/. |
| cp /etc/rc5.d/S35vboxweb-service /etc/rc7.d/.</pre> | | cp /etc/rc5.d/S35vboxweb-service /etc/rc7.d/.</pre> |
− | | + | <li>Create a ''vbox.cfg'' file on your /etc/vbox/.</li> |
− | <li>Create a ''vbox.cfg'' file on your /etc/vbox/. | |
| <pre>nano /etc/vbox/vbox.cfg</pre> | | <pre>nano /etc/vbox/vbox.cfg</pre> |
| | | |
Line 80: |
Line 71: |
| | | |
| Note: Without the vbox.cfg, vbox services on your rc7.d folder will not start. | | Note: Without the vbox.cfg, vbox services on your rc7.d folder will not start. |
− | </li>
| |
| | | |
| <li>Login to the server-manager page and create an ibay for <b>phpvbox</b>. | | <li>Login to the server-manager page and create an ibay for <b>phpvbox</b>. |
− | 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.] | + | 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> |
| | | |
− | After creating the ibay, do not forget to assign a password.
| + | After creating the ibay, <b>do not forget to assign a password.</b> |
− | </li>
| |
| | | |
| <li>Before we install <b>[http://code.google.com/p/phpvirtualbox/ phpVirtualBox]</b>, make sure you install <b>SOAP</b> first</li> | | <li>Before we install <b>[http://code.google.com/p/phpvirtualbox/ phpVirtualBox]</b>, make sure you install <b>SOAP</b> first</li> |
− |
| |
| <pre>yum install php-soap</pre> | | <pre>yum install php-soap</pre> |
− |
| |
| <li>Install <b>phpVirtualBox</b></li> | | <li>Install <b>phpVirtualBox</b></li> |
| <pre>cd /tmp | | <pre>cd /tmp |
| wget `wget -q -O - http://phpvirtualbox.googlecode.com/files/LATEST.txt` -O phpvirtualbox-latest.zip | | wget `wget -q -O - http://phpvirtualbox.googlecode.com/files/LATEST.txt` -O phpvirtualbox-latest.zip |
| unzip phpvirtualbox-latest.zip</pre> | | unzip phpvirtualbox-latest.zip</pre> |
− | Note: at the time of this writing, the latest version was 4.1-2. Please adjust the following for later versions. | + | Note: at the time of this writing, the latest version was 4.1-2. Please adjust the following for later versions. |
− | <pre> | + | <pre>cd phpvirtualbox-4.1-2 |
− | cd phpvirtualbox-4.1-2 | |
| cp –R * /home/e-smith/files/ibays/phpvbox/html</pre> | | cp –R * /home/e-smith/files/ibays/phpvbox/html</pre> |
− |
| |
| <li>Create a <b>tmp</b> folder inside the /phpvbox/html folder.</li> | | <li>Create a <b>tmp</b> folder inside the /phpvbox/html folder.</li> |
− | <pre>cd /home/e-smith/files/ibays/phpvbox/html
| + | <pre>cd /home/e-smith/files/ibays/phpvbox/html |
| mkdir tmp | | mkdir tmp |
| chmod 777 tmp/</pre> | | chmod 777 tmp/</pre> |
− |
| |
| <li>Create a config file using the example file provided.</li> | | <li>Create a config file using the example file provided.</li> |
| <pre>cp config.php-example config.php</pre> | | <pre>cp config.php-example config.php</pre> |
− |
| |
| <li>Open ''config.php'' (located on your /phpvbox/html/ folder). Uncomment some lines (by removing the '#' at the beginning of the line).</li> | | <li>Open ''config.php'' (located on your /phpvbox/html/ folder). Uncomment some lines (by removing the '#' at the beginning of the line).</li> |
| <pre>nano /home/e-smith/files/ibays/phpvbox/html/config.php</pre> | | <pre>nano /home/e-smith/files/ibays/phpvbox/html/config.php</pre> |
− | | + | <pre>/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */ |
− | <pre>/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
| |
| var $location = 'http://127.0.0.1:18083/';</pre> | | var $location = 'http://127.0.0.1:18083/';</pre> |
− |
| |
| <pre>// Disable authentication | | <pre>// Disable authentication |
| var $noAuth = true;</pre> | | var $noAuth = true;</pre> |
Line 127: |
Line 108: |
| var $enableAdvancedConfig = true;</pre> | | var $enableAdvancedConfig = true;</pre> |
| | | |
− | <pre>// Authentication library. | + | <pre>// Authentication library. |
| //var $authLib = 'Builtin';</pre> | | //var $authLib = 'Builtin';</pre> |
| | | |
− | <pre>// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation! | + | <pre>// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation! |
| var $enableVDE = true;</pre> | | var $enableVDE = true;</pre> |
| | | |
− | Change the tmp location as per below. | + | Change the tmp location as per below. |
− | <pre>// Path | + | <pre>// Path |
| var $cachePath = '../tmp';</pre> | | var $cachePath = '../tmp';</pre> |
| | | |