Skip to main content

CentOS 5.4 netinstall on Virtualbox

Note*:
This is applicable to both CentOS 5.4 and 5.5, maybe applicable to older versions as well.

Introduction:
One of the installation methods possible in installing CentOS 5.4 is network installation or NetInstall. There are good reasons why one would like to do NetInstall and not install from the full CDs. Installing from CD means you have to download monster files. In CentOS 5.4, NetInstall iso file is only 8.9MB whereas the CDs (6 sets) are ~700MB each. So if you are planning to install just once or if you are going to use VirtualBox (note snapshot functionality, branching and cloning), then netinstall would really make sense.

Note that to have good installation experience you have to have a fast connection to internet or a mirror in your intranet.

To start with, you need to have VirtualBox installed. I am using W7 Home Premium with 8GB as the host machine. This should not matter much actually if you are familiar with VirtualBox.

Then download netinstall iso from http://www.centos.org and select the appropriate mirror. I have downloaded my copy from http://centos.cs.wisc.edu/pub/mirrors/linux/centos/5.4/isos/i386/CentOS-5.4-i386-netinstall.iso. You should try to select the mirror that is close to you and hopefully that mirror is running on a fast machine with huge pipes.

We should now be ready to install. Run Virtual GUI and create a new guest machine. Since CentOS is essentially a RedHat rebuild less the trademarks and associated graphics and icons (etc), you should be fine selecting Redhat as the Linux version. Note that for these exercise we will be using 32bit version of CentOS.

Below is my VirtualBox configuration:
Base Memory: 512 MB
Processor(s): 1
Boot Order: CD/DVD-ROM, Hard Disk
VT-x/AMD-V: Enabled
Nested Paging: Enabled
Video Memory: 12 MB
3D Acceleration: Disabled
2D Video Acceleration: Disabled
Remote Display Server: Disabled
IDE Primary Master: centos54.vdi@80GB
Audio Host Driver: Windows DirectSound
Audio Controller: ICH AC97
Network 1: Intel PRO/1000 MT Desktop bridged to Microsoft Loopback Adapter

Installation

Step 1.
Power-up CentOS 5.4 guest machine. Then mount CentOS netinstall iso. Screen capture follows with values I used to setup CentOS.
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6. You can unselect IPv6 if you are only using IPv4 here.
Figure 7. Select appropriate mirror for your location. Note that when I tried to poke around CentOS 5.5 three days after it was announced, I was having all sorts of errors using mirrors.centos.org, to the point that I can't even get a clean install. I am guessing that it is still syncing with the source. I switched to the mirror shown below and it was fantastic.
Web site name: mirrors.usc.edu CentOS directory: pub/linux/distributions/centos/5.5/os/i386

Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 16.

Step 2: Updating the base install
yum update
Step 3: Installing Guest Additions
yum install gcc -y yum install kernel-devel -y
Mount VirtualBox guest additions using the GUI, then in CentOS terminal running as root do:
[root@localhost timus]# sh /media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-x86.run
Of course, for the above command, it changes depending on the version of VirtualBox you are using.
~ts

Comments

Anonymous said…
Thanks for the article! Following the instructions, I was able to complete step1, when it says "Congratuations... reboot to complete". I rebooted, and saw the installation screen all over again!
:(

Do you happen to know what might be the problem?

Thanks

Popular posts from this blog

Error! Could not locate dkms.conf file install VirtualBox 4.1.8 on Ubuntu 11.10

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re...

UnrealEngine GenerateProjectFiles.bat error - could be due to missing RPCUtility.exe

Tried to run  GenerateProjectFiles.bat to build Unreal Engine from source ( link ),  but got error like below: C:\>Users\x\UnrealEngine>GenerateProjectFiles.bat Setting up Unreal Engine 4 project files... GenerateProjectFiles ERROR: It looks like you're missing some files that are required in order to generate projects.  Please check that you've downloaded and unpacked the engine source code, binaries, content and third-party dependencies before running this script. To fix, run setup.bat like: C:\Users\x\prj\UnrealEngine>setup.bat Note that you have to say no to the prompt Would you like to overwrite your changes (y/n)? .