To establish version control environment, I created a guest Linux within Oracle VM VirtualBox. Installing Oracle VM VirtualBox and in turn installing Oracle Enterprise Linux is quite straightforward.
After above done, I’ve spent some times to install VitualBox Guest Additions. Comparing to installation on Solaris with VirtualBox, the installation on Linux requires more steps.
1. Installing Oracle Public Yum Server
The Oracle public yum server offers a free and convenient way to install packages from the Oracle Linux and Oracle VM installation media via a yum client. The installation guide and manual are available at http://public-yum.oracle.com .
With Oracle Enterprise Linux 5, run the following commands as root.
1.cd /etc/yum.repos.d
2.wget http://public-yum.oracle.com/public-yum-el5.repo
2, Then, enable the appropriate repository by editing the yum configuration file.
1. Open the yum configuration file in a text editor
In my case, the file is /etc/yum.repos.d/public-yum-el5.repo
2. Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base] Change enabled=0 to enabled=1
In my case, the change I made is:
[el5_ga_base]
name=Enterprise Linux $releasever GA - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1
3. Begin using yum, for example:
1 yum list
4. Installing necessary packages by using Yum
1 yum install kernel-devel
2 yum install kernel-headers
3 yum install gcc
5. Installing VirtualBox Guest Additions
1 export KERN_DIR=/usr/src/kernels/2.6.18-8.el5-i686
2 //Mount Vbox Guest Additions ISO as CDROM
3 cd /media/VBOXADDITIONS_2.2.0_45846
4 sh ./VBoxLinuxAdditions-x86.run
After installation, restart guest host and you’ll find VitualBox Guest Additions is working.
Share