Wednesday, September 21, 2011

Installing VirtualBox Guest Additions For Linux in RHEL 5.0 Server

Installing VirtualBox Guest Additions for Linux in RHEl 5 Server 32-bit x86:

Step1. Preparing guest RHEL system for building external kernel modules.

Mount RHEL DVD under a directory in /mnt and install the packages listed below.
1. kernel-devel-2.6.18-8.el5.i686.rpm
2. libgomp-4.1.1-52.el5.i386.rpm
3. glibc-headers-2.5-12.i386.rpm
4. glibc-devel-2.5-12.i386.rpm
5. gcc-4.11-52.el5.i386.rpm

[root@localhost ~]# mkdir /mnt/rhrepo
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt/rhrepo
[root@localhost ~]# cd /mnt/rhrepo/Server

Note: Package versions are for RHEL 5.0 release, those for current release of RHEL will have different version numbers.

Step2. Installing VirtualBox Guest Additions.

Mount VBoxGuestAdditions.iso :
Devices-> Mount CD/DVD-ROM->CD/DVD-ROM Image...->VBoxGuestAdditions.iso->Select

[root@localhost ~]# ./
[root@localhost ~]# mkdir /mnt/vbadd
[root@localhost ~]# mount -t vboxsf  sharefolder_name(eg:dload) /mnt/vbadd
[root@localhost ~]# vi /etc/fstab
 and put under fstab for permanent mount
[root@localhost ~]# reboot

No comments: