Line 5:
Line 5:
=== Description ===
=== Description ===
−
This contribution for smeserver adds Sun VirtualBox 2.2.2 for Headless operation (ie creates a virtual machine on your server that can be access via an RDP client such as 'Remote Desktop Connection' on Windows. This allows you to have a virtual Windows machine running on at a remote location to perform various administrative tasks. You can run network applications as if I were in the remote office and will not tying up a physical machine.
+
This contribution for smeserver adds Sun VirtualBox 3.0.10 for Headless operation (ie creates a virtual machine on your server that can be access via an RDP client such as 'Remote Desktop Connection' on Windows. This allows you to have a virtual Windows machine running at a remote location to perform various administrative tasks. You can run network applications as if you were in the remote office and will not tying up a physical machine.
=== Requirements ===
=== Requirements ===
−
You will need SME Server 7.4, kernel 2.6.9-78.0.13.EL or 2.6.9-78.0.13.ELsmp
+
You will need SME Server 7.4, kernel 2.6.9-78.0.22.EL or 2.6.9-78.0.22.ELsmp
check your current kernel using
check your current kernel using
uname -r
uname -r
You will also need to download the VirtualBox rpm file
You will also need to download the VirtualBox rpm file
−
wget http://download.virtualbox.org/virtualbox/2.2.2/VirtualBox-2.2.2_46594_rhel4-1.i386.rpm
+
wget http://download.virtualbox.org/virtualbox/3.0.10/VirtualBox-3.0.10_54097_rhel4-1.i386.rpm
You will also need the precompiled kernel modules
You will also need the precompiled kernel modules
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
wget http://kevinps2003.tripod.com/vboxdrv-2.2.2.tar.gz
+
wget http://kevinps2003.tripod.com/VirtualBox3.0.10_Modules_2.6.9-78.EL.tar.gz
−
'''For 2.6.9-78.0.13.ELsmp'''
+
'''For 2.6.9-78.0.22.ELsmp'''
−
wget http://kevinps2003.tripod.com/vboxdrv-2.2.2smp.tar.gz
+
wget http://kevinps2003.tripod.com/VirtualBox3.0.10_Modules_2.6.9-78.ELsmp.tar.gz
=== Installation ===
=== Installation ===
Line 45:
Line 45:
5. Install VirtualBox using the following command
5. Install VirtualBox using the following command
−
rpm -Uvh VirtualBox-2.2.2_46594_rhel4-1.i386.rpm
+
rpm -Uvh VirtualBox-3.0.10_54097_rhel4-1.i386.rpm
Note - You will get the following error message, which you can ignore, we will manually copy and install the precompiled modules
Note - You will get the following error message, which you can ignore, we will manually copy and install the precompiled modules
Line 64:
Line 64:
----
----
−
6. Extract files from vboxdrv-2.2.2*.tar.gz
+
6. Extract files from VirtualBox3.0.10_Modules_2.6.9-78.EL*.tar.gz
−
tar -zxvf vboxdrv-2.2.2*.tar.gz
+
tar -zxvf VirtualBox3.0.10_Modules_2.6.9-78.EL*.tar.gz
----
----
Line 71:
Line 71:
7. Copy precompiled VirtualBox drivers to the appropriate lib/modules/… folder
7. Copy precompiled VirtualBox drivers to the appropriate lib/modules/… folder
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
cp vboxdrv.ko /lib/modules/2.6.9-78.0.13.EL/
+
cp vboxdrv.ko /lib/modules/2.6.9-78.0.22.EL/
−
cp vboxnetflt.ko /lib/modules/2.6.9-78.0.13.EL/
+
cp vboxnetflt.ko /lib/modules/2.6.9-78.0.22.EL/
−
'''For 2.6.9-78.0.13.ELsmp'''
+
cp vboxnetadp.ko /lib/modules/2.6.9-78.0.22.EL/
−
cp vboxdrv.ko /lib/modules/2.6.9-78.0.13.ELsmp/
+
'''For 2.6.9-78.0.22.ELsmp'''
−
cp vboxnetflt.ko /lib/modules/2.6.9-78.0.13.ELsmp/
+
cp vboxdrv.ko /lib/modules/2.6.9-78.0.22.ELsmp/
−
+
cp vboxnetflt.ko /lib/modules/2.6.9-78.0.22.ELsmp/
+
cp vboxnetadp.ko /lib/modules/2.6.9-78.0.22.ELsmp/
----
----
8. Change module permissions and owner using the following commands (this step might not be required)
8. Change module permissions and owner using the following commands (this step might not be required)
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
chown root:root /lib/modules/2.6.9-78.0.13.EL/vboxdrv.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.EL/vboxdrv.ko
−
chown root:root /lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.EL/vboxnetflt.ko
−
chmod 644 /lib/modules/2.6.9-78.0.13.EL/vboxdrv.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.EL/vboxnetadp.ko
−
chmod 644 /lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko
+
chmod 644 /lib/modules/2.6.9-78.0.22.EL/vboxdrv.ko
−
'''For 2.6.9-78.0.13.ELsmp'''
+
chmod 644 /lib/modules/2.6.9-78.0.22.EL/vboxnetflt.ko
−
chown root:root /lib/modules/2.6.9-78.0.13.ELsmp/vboxdrv.ko
+
chmod 644 /lib/modules/2.6.9-78.0.22.EL/vboxnetadp.ko
−
chown root:root /lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko
+
'''For 2.6.9-78.0.22.ELsmp'''
−
chmod 644 /lib/modules/2.6.9-78.0.13.ELsmp/vboxdrv.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.ELsmp/vboxdrv.ko
−
chmod 644 /lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetflt.ko
+
chown root:root /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetadp.ko
+
chmod 644 /lib/modules/2.6.9-78.0.22.ELsmp/vboxdrv.ko
+
chmod 644 /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetflt.ko
+
chmod 644 /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetadp.ko
----
----
Line 97:
Line 102:
9. Test the kernel module, if there are no error messages, you can keep going, if not, you may have to compile the modules for yourself.
9. Test the kernel module, if there are no error messages, you can keep going, if not, you may have to compile the modules for yourself.
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
insmod /lib/modules/2.6.9-78.0.13.EL/vboxdrv.ko
+
insmod /lib/modules/2.6.9-78.0.22.EL/vboxdrv.ko
−
insmod /lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko
+
insmod /lib/modules/2.6.9-78.0.22.EL/vboxnetflt.ko
−
'''For 2.6.9-78.0.13.ELsmp'''
+
insmod /lib/modules/2.6.9-78.0.22.EL/vboxnetadp.ko
−
insmod /lib/modules/2.6.9-78.0.13.ELsmp/vboxdrv.ko
+
'''For 2.6.9-78.0.22.ELsmp'''
−
insmod /lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko
+
insmod /lib/modules/2.6.9-78.0.22.ELsmp/vboxdrv.ko
+
insmod /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetflt.ko
+
insmod /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetadp.ko
----
----
Line 109:
Line 116:
lsmod | grep vbox
lsmod | grep vbox
Should result in
Should result in
−
vboxnetflt 78504 0
+
vboxnetadp 73576 0
−
vboxdrv 100008 1 vboxnetflt
+
vboxnetflt 80776 0
+
vboxdrv 106920 1 vboxnetflt
----
----
Line 116:
Line 124:
11. Unload the kernel modules
11. Unload the kernel modules
rmmod vboxnetflt
rmmod vboxnetflt
+
rmmod vboxnetadp
rmmod vboxdrv
rmmod vboxdrv
Line 121:
Line 130:
12. Run depmod to determine module dependancies
12. Run depmod to determine module dependancies
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
depmod -a /lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko
+
depmod -a /lib/modules/2.6.9-78.0.22.EL/vboxnetflt.ko
−
'''For 2.6.9-78.0.13.ELsmp'''
+
depmod -a /lib/modules/2.6.9-78.0.22.EL/vboxnetadp.ko
−
depmod -a /lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko
+
'''For 2.6.9-78.0.22.ELsmp'''
+
depmod -a /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetflt.ko
+
depmod -a /lib/modules/2.6.9-78.0.22.ELsmp/vboxnetadp.ko
+
+
Note - if you have get a few lines containing the following
+
WARNING: Can't read module /lib/modules/2.6.9-78.0.22.EL
+
You will need to update your server (See comment #6, [http://bugs.contribs.org/show_bug.cgi?id=5334 Bug #5334], not recommended for a production server), or manually edit the modules.dep file.
+
+
'''For 2.6.9-78.0.22.EL'''
+
pico /lib/modules/2.6.9-78.0.22.EL/modules.dep
+
Add the following lines
+
/lib/modules/2.6.9-78.0.22.EL/vboxdrv.ko:
+
/lib/modules/2.6.9-78.0.22.EL/vboxnetadp.ko:
+
/lib/modules/2.6.9-78.0.22.EL/vboxnetflt.ko: /lib/modules/2.6.9-78.0.22.EL/vboxdrv.ko
+
+
'''For 2.6.9-78.0.22.ELsmp'''
+
pico /lib/modules/2.6.9-78.0.22.ELsmp/modules.dep
+
Add the following lines
+
/lib/modules/2.6.9-78.0.22.ELsmp/vboxdrv.ko:
+
/lib/modules/2.6.9-78.0.22.ELsmp/vboxnetadp.ko:
+
/lib/modules/2.6.9-78.0.22.ELsmp/vboxnetflt.ko: /lib/modules/2.6.9-78.0.22.ELsmp/vboxdrv.ko
----
----
Line 130:
Line 159:
13. Test that the kernel modules load properly with the following command
13. Test that the kernel modules load properly with the following command
modprobe vboxnetflt
modprobe vboxnetflt
+
modprobe vboxnetadp
----
----
Line 136:
Line 166:
lsmod | grep vbox
lsmod | grep vbox
Should result in
Should result in
−
vboxnetflt 78504 0
+
vboxnetadp 73576 0
−
vboxdrv 100008 1 vboxnetflt
+
vboxnetflt 80776 0
+
vboxdrv 106920 1 vboxnetflt
----
----
Line 143:
Line 174:
15. Create/edit the /etc/rc.modules file to load vboxdrv and vboxnetflt at boot time
15. Create/edit the /etc/rc.modules file to load vboxdrv and vboxnetflt at boot time
pico /etc/rc.modules
pico /etc/rc.modules
−
Add the following line and save
+
Add the following lines and save
modprobe vboxnetflt
modprobe vboxnetflt
+
modprobe vboxnetadp
+
+
Run the following command to make the script executable.
+
chmod +x /etc/rc.modules
----
----
Line 264:
Line 299:
Remove the kernel modules from the /lib/modules/... folder
Remove the kernel modules from the /lib/modules/... folder
−
'''For 2.6.9-78.0.13.EL'''
+
'''For 2.6.9-78.0.22.EL'''
−
rm /lib/modules/2.6.9-78.0.13.EL/vbox*.ko
+
rm /lib/modules/2.6.9-78.0.22.EL/vbox*.ko
'''For 2.6.9-78.0.13.ELsmp'''
'''For 2.6.9-78.0.13.ELsmp'''
−
rm /lib/modules/2.6.9-78.0.13.ELsmp/vbox*.ko
+
rm /lib/modules/2.6.9-78.0.22.ELsmp/vbox*.ko
Remove the Environment Variable Script
Remove the Environment Variable Script