From the install DVD -> choose no packages and customize all to deselect all packages
NOTE: this is a very empty configuration so you will have to install ALOT from yum...
yum install wget elinks sudo which
yum install make gcc # IF you need to do anything with "compiling"
yum install kernel ? maybe necessary? yum install kernel-devel-$(uname -r) yum install kernel-headers-$(uname -r)
export KERN_DIR=/usr/src/kernels/$(uname -r)-x86_64
to add a repository, e.g. VirtualBox
So create the following file (in the directory) /etc/yum.repos.d/virtualbox.repo
[virtualbox] name=RHEL/CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc
then try "yum search Virtualbox" or "yum install VirtualBox"
/etc/init.d/vboxdrv setup hopefully will work! ENSURE you add your user to the vboxusers group (cat /etc/group, useradd -aG vboxusers USER)
then login as a normal user, try running "VBoxManage" and see if there's a .VirtualBox folder
installing centos 5.3 (aka red hat linux 5.3) to be a very stable/secure host system for virtualization
setup the partitions:
/dev/cciss/c0d0
/p1 boot 500MB
/p2 root 10GB
p3 swap 6GB (1.5x RAM)
/dev/cciss/c0d0/p4 p5 var 10GB p6 tmp 10GB p7 home 200GB
Boot has plenty of room to grow Root has plenty of room for normal apps var can take a lot of logs but if it overflows it won't affect / tmp can fill up and not cause problems home is HUGE because it's where I'll be storing the virtual machines (logging on as a normal user and running the VM from a normal user!)
Install GRUB on /dev/cciss/c0d0/p2 (root)
eth0 static /24 eth1 DHCP (ensures I'll have internet after reboot)
root password...
Customized packages (fairly minimal) -editor vim -developer tools (in case need to install from source) -BASE -XWindow base (this might help future admins)
Centos Httpd Mysql PHP
yum install httpd -y yum install mysql mysql-server
chkconfig --levels 235 mysqld on /etc/init.d/mysqld start
Run
mysqladmin -u root password yourrootsqlpassword mysqladmin -h server1.example.com -u root password yourrootsqlpassword
set a password for the user root
yum install php
We must restart Apache afterwards:
/etc/init.d/httpd restart