Saturday, November 15, 2008

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
[root@localhost ~]# rpm -ivh --aid package_filename...

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

Now unmount the DVD:

[root@localhost ~]# umount /dev/cdrom

Step2. Installing VirtualBox Guest Additions.

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

[root@localhost ~]# mkdir /mnt/vbadd
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt/vbadd
[root@localhost ~]# cd /mnt/vbadd
[root@localhost ~]# sh ./VBoxLinuxAdditions-x86.run
[root@localhost ~]# reboot

Note: Refer the User manual for more information.

No comments:

Post a Comment