Changes

From SME Server
Jump to navigationJump to search
358 bytes removed ,  04:35, 20 May 2009
no edit summary
Line 12: Line 12:  
  uname -r
 
  uname -r
   −
You will also need to download the following rpm files
+
You will also need to download the VirtualBox rpm file
wget ftp://ftp.pbone.net/mirror/www.whiteboxlinux.org/whitebox/4/en/updates/i386/alsa-lib-1.0.6-5.RHEL4.i386.rpm
  −
wget ftp://ftp.pbone.net/mirror/ftp.centos.org/4.7/os/x86_64/CentOS/RPMS/SDL-1.2.7-8.i386.rpm
   
  wget http://download.virtualbox.org/virtualbox/2.2.2/VirtualBox-2.2.2_46594_rhel4-1.i386.rpm
 
  wget http://download.virtualbox.org/virtualbox/2.2.2/VirtualBox-2.2.2_46594_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.13.EL'''
 
  wget http://kevinps2003.tripod.com/vboxdrv-2.2.2.tar.gz
 
  wget http://kevinps2003.tripod.com/vboxdrv-2.2.2.tar.gz
Line 29: Line 28:  
----
 
----
   −
2. Install the dependencies for VirtualBox
+
2. Install the dependencies for VirtualBox (this will install the alsa-lib and SDL)
rpm -Uvh alsa-lib-1.0.6-5.RHEL4.i386.rpm
+
yum install SDL
  rpm -Uvh SDL-1.2.7-8.i386.rpm
+
You may need to run the following commands to complete the installation
 +
signal-event post-upgrade
 +
  signal-event reboot
    
----
 
----
Line 119: Line 120:  
----
 
----
   −
12. Edit the modules.dep file
+
12. Run depmod to determine module dependancies
 
   
'''For 2.6.9-78.0.13.EL'''
 
'''For 2.6.9-78.0.13.EL'''
  pico /lib/modules/2.6.9-78.0.13.EL/modules.dep
+
  depmod -a /lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko
Add the following two lines to the end and save
  −
/lib/modules/2.6.9-78.0.13.EL/vboxdrv.ko:
  −
/lib/modules/2.6.9-78.0.13.EL/vboxnetflt.ko: /lib/modules/2.6.9-78.0.13.EL/vboxdrv.ko
   
'''For 2.6.9-78.0.13.ELsmp'''
 
'''For 2.6.9-78.0.13.ELsmp'''
  pico /lib/modules/2.6.9-78.0.13.ELsmp/modules.dep
+
  depmod -a /lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko
Add the following two lines to the end and save
  −
/lib/modules/2.6.9-78.0.13.ELsmp/vboxdrv.ko:
  −
/lib/modules/2.6.9-78.0.13.ELsmp/vboxnetflt.ko: /lib/modules/2.6.9-78.0.13.ELsmp/vboxdrv.ko
      
----
 
----
Line 147: Line 141:  
----
 
----
   −
15. Remove the file that flags vboxdrv and vboxnetflt module as not being installed properly
+
15. Create/edit the /etc/rc.modules file to load vboxdrv and vboxnetflt at boot time
 +
pico /etc/rc.modules
 +
Add the following line and save
 +
modprobe vboxnetflt
 +
 
 +
----
 +
 
 +
16. Remove the file that flags vboxdrv and vboxnetflt module as not being installed properly
 
  rm /etc/vbox/module_not_compiled
 
  rm /etc/vbox/module_not_compiled
    
----
 
----
   −
16. Set Environment Variable (replace 'vbox_files' with the ibay you created)
+
17. Set Environment Variable (replace 'vbox_files' with the ibay you created)
 
  export VBOX_USER_HOME=/home/e-smith/files/ibays/vbox_files/files/.VirtualBox
 
  export VBOX_USER_HOME=/home/e-smith/files/ibays/vbox_files/files/.VirtualBox
    
----
 
----
   −
17. Permanently set Environment Variable
+
18. Permanently set Environment Variable
 
  pico /etc/profile.d/vboxpath.sh
 
  pico /etc/profile.d/vboxpath.sh
 
Add the two lines below (replace 'vbox_files' with the ibay you created)
 
Add the two lines below (replace 'vbox_files' with the ibay you created)
Line 168: Line 169:  
----
 
----
   −
18. Verify the environment variable is set
+
19. Verify the environment variable is set
 
  echo $VBOX_USER_HOME
 
  echo $VBOX_USER_HOME
 
Should result in (where 'vbox_files' is the ibay you created)
 
Should result in (where 'vbox_files' is the ibay you created)
Line 175: Line 176:  
----
 
----
   −
19. You can now create and run your own virtual machines using VBoxManage and VBoxHeadless (located in /usr/bin/).  
+
20. You can now create and run your own virtual machines using VBoxManage and VBoxHeadless (located in /usr/bin/).  
    
=== Usage - VBoxManage ===
 
=== Usage - VBoxManage ===
Line 260: Line 261:  
=== Uninstall ===
 
=== Uninstall ===
 
  rpm -e VirtualBox
 
  rpm -e VirtualBox
rpm -e SDL
  −
rpm -e alsa-lib
      
Remove the kernel modules from the /lib/modules/... folder
 
Remove the kernel modules from the /lib/modules/... folder
Line 269: Line 268:  
'''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.13.ELsmp/vbox*.ko
  −
Remove the lines added to the modules.dep file in step 12.
      
Remove the Environment Variable Script
 
Remove the Environment Variable Script
8

edits

Navigation menu