Line 9: |
Line 9: |
| | | |
| This has been tested using the following:<br/> | | This has been tested using the following:<br/> |
− | * one SME Server Release 8.0
| + | <ol> |
− | * two VirtualBox-4.1-4.1.22_80657_el5-1
| + | <li>SME Server Release 8.0</li> |
− | * three Kernel is 2.6.18-308.13.1.el5
| + | <li>VirtualBox-4.1-4.1.22_80657_el5-1</li> |
| + | <li>Kernel is 2.6.18-308.13.1.el5</li> |
| + | </ol> |
| | | |
| ===Requirements=== | | ===Requirements=== |
Line 216: |
Line 218: |
| ===Access VM outside the Network=== | | ===Access VM outside the Network=== |
| <ol> | | <ol> |
− | <li>Login to SME Server Manager page, then add a hostname for your Virtual Machine on <b>Hostnames and addresses</b>.</li> | + | <li>On SME Server Manager page, on <b>Port Forwarding</b> left menu, open port <b>9000</b> (as per Remote Desktop Server Port under Display) using your desired Source Port:</li> |
− | Hostname: vmXP<br/>
| |
− | Location: Local<br/>
| |
− | IP: 192.168.100.60<br/>
| |
− | Ethernet Address: <you will see this by typing this command "VBoxManage showvminfo <VM Name>" then look for NIC1<br/>
| |
− | Comment: <eg. Virtual Machine>
| |
− | <li>Still on SME Server Manager page, on <b>Port Forwarding</b> left menu, open port <b>3389</b> using your desired Source Port:</li>
| |
| Protocol: TCP<br/> | | Protocol: TCP<br/> |
| Source Ports: 33900<br/> | | Source Ports: 33900<br/> |
− | Destination IP: 192.168.100.60<br/> | + | Destination IP: 192.168.100.1 ''(which is also the localhost'')<br/> |
− | Destination Port: 3389<br/> | + | Destination Port: 9000<br/> |
| Allow Hosts: <you can leave it blank, or place your Public IP so only your IP can access the VM)<br/> | | Allow Hosts: <you can leave it blank, or place your Public IP so only your IP can access the VM)<br/> |
| Rule Comment: <eg. vmXP for SOS><br/> | | Rule Comment: <eg. vmXP for SOS><br/> |
− | <li>Make sure you enable Remote Desktop on your VM by going to ''Control Panel'' -> ''System'' -> ''Remote'' -> tick <b>Allow connections from computers running any version of Remote Desktop</b> or the last option. Then add the allowed user who can access the VM.</li> | + | <li>Now you can access your VM thru RDP using this hostname ''domain.com:33900''</li> |
− | [[File:Remote-desktop-allow.jpg]]
| |
| </ol> | | </ol> |
| | | |
Line 355: |
Line 350: |
| </ol> | | </ol> |
| | | |
| + | ===Upgrading VirtualBox=== |
| + | <ol> |
| + | <li>Remove installed VirtualBox. |
| + | <pre>yum remove VirtualBox-4.1</pre></li> |
| + | <li>Install the latest VirtualBox, as of this date it is VirtualBox 4.2. |
| + | <pre>yum install --enablerepo=virtualbox VirtualBox-4.2</pre></li> |
| + | <li>Re-create a '''vbox.cfg''' file on your /etc/vbox/. |
| + | <pre>nano /etc/vbox/vbox.cfg</pre> |
| + | <p>''vbox.cfg'' should have this content.</p> |
| + | <pre>VBOXWEB_USER='root' |
| + | VBOXWEB_HOST=127.0.0.1 |
| + | VBOXWEB_PORT=18083 |
| + | </pre></li> |
| + | <li>Install VirtualBox extension pack, you can find the extension packs [http://www.virtualbox.org/wiki/Downloads here]. |
| + | <pre>wget http://download.virtualbox.org/virtualbox/4.2.0/Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack |
| + | vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack |
| + | </pre></li> |
| + | <li>Test if your VirtualBox upgrade is successful by starting your existing virtual machine. |
| + | <pre>vboxheadless –s vmXP</pre> OR |
| + | <pre>/etc/init.d/vbox start</pre></li> |
| + | </ol> |
| + | ===Upgrading phpVirtualBox=== |
| + | <ol> |
| + | <li>Make a directory to save your existing phpVirtualBox folder. |
| + | <pre>mkdir –p /tmp/phpvirtualbox-4.1.22</pre></li> |
| + | <li>Change directory to your phpvbox ibay then copy all of your phpVirtualBox files. |
| + | <pre>cd /home/e-smith/files/ibays/phpvbox/html/ |
| + | cp –R * /tmp/phpvirtualbox-4.1.22</pre></li> |
| + | <li>Download the latest phpVirtualBox to /tmp/ folder. |
| + | <pre>cd /tmp |
| + | wget http://phpvirtualbox.googlecode.com/files/phpvirtualbox-4.2-0b.zip |
| + | unzip phpvirtualbox-4.2-0b.zip |
| + | cd phpvirtualbox-4.2-0b |
| + | yes | cp -R * /home/e-smith/files/ibays/phpvbox/html/ |
| + | </pre></li> |
| + | <li>Rename ''config.php.example'' to ''config.php'' and edit the configuration file as per above. |
| + | <pre>mv config.php-example config.php</pre></li> |
| + | <li>Restart vboxwebservice |
| + | <pre>/etc/init.d/vboxweb-service restart</pre></li> |
| + | <li>Download the latest VBox Guest Additions and install to your Guest VM. |
| + | <pre>cd /opt/VMs/ |
| + | wget http://download.virtualbox.org/virtualbox/4.2.0/VBoxGuestAdditions_4.2.0.iso |
| + | </pre></li> |
| + | </ol> |
| ===Troubleshooting=== | | ===Troubleshooting=== |
| | | |