CentOS 6 is in archived state, but may still be used for education purposes.
This post guides you through the installation process: (1) Download ISO file (2) Enable Network (3) Set up package manager mirror URL.
Download ISO File
Set up a virtual machine with VirtualBox. Make sure to choose a larger dynamic disk size (such as 100 GB). If your disk size is too small, you may need to change it afterwards, and the process is non-trivial.
should report an error:
ping: unknown host google.com
should show something like
eth0 in the output.
ONBOOT=yes, and use
reboot to reboot.
Set up package manager mirror URL
and modify with
:%s/mirrorlist=http/#mirrorlist=http/g :%s/#baseurl=http/baseurl=http/g :%s/mirror\.centos/vault.centos/g
These commands comment out
mirrorlist lines and uncomment
baseurl lines and replace
perform the modifcations on all 5 sections:
See this post to install from source. I have trouble installing it through
VirtualBox Guest Additions
If the OS is installed in VirtualBox, you can insert Guest Additions CDROM and install with:
sudo mkdir -p /mnt/cdrom sudo mount -t auto /dev/cdrom1 /mnt/cdrom cd /mnt/cdrom sudo sh ./VBoxLinuxAdditions.run --nox11 lsmod | grep vboxguest
See this post for more details.