CentOS 6.0 32bit on ESX
CentOS is a free version of RHEL where you don't have to sign up for the RHN, but can still use yum to automatically install and update packages. It generally works with any software that supports RHEL.
If you'll be installing this on an ESX server, I suggest the following settings:
- Guest: Linux, Other Linux (32-bit)
- Disk: 5gb (leave the allocate/support boxes unchecked)
- Edit the virtual machine settings before completion
- Memory: 512mb
- Floppy: remove
After creation of the vm, it appears in the esx sidebar. Right-click it to power it on. Left click it, then select the console tab. Attach the ISO via the icon of cd/wrench in the esx top-bar. Left-click in the center of the console and type CTRL-ALT-INSERT to reboot so it boots from the attached iso. At any time type CTRL+ALT to escape from the console.
- Install or Upgrade an existing system.
- SKIP (the disk check)
- Next > English > U.S. English > Basic Storage Devices > Re-initialize all
- yourmachine.yourdomain.com (don't configure network)
- America/New York, System clock uses UTC
- choose a root password
- Use All Space (don't encrypt system or review layout) > Write changes to disk
- Minimal, centos, Customize Later > [long wait] > Reboot
After reboot you are at the console. Unfortunately we can't copy/paste yet. Now is a good time to disconnect the iso via the icon of cd/wrench in the esx top-bar. The login as root to the esx console.
Configure Networking (I'm assuming you're in a network that already has DHCP and NIS)
127.0.0.1 yourmachine yourmachine.yourdomain.com localhost...
DEVICE="eth0" HWADDR=LEAVE_THIS_AS_IS NM_CONTROLLED="yes" ONBOOT="yes" BOOTPROTO="dhcp" DHCP_HOSTNAME="yourmachine.yourdomain.com"
NETWORKING=YES HOSTNAME=yourmachine.yourdomain.com NETWORKING_IPV6=no NISDOMAIN=yourdomain SEARCH=yourdomain.com
shutdown -r now
Now you can login as root via putty. This has the advantage of supporting copy/paste.
yum list installed # shows what you have yum install unzip man dos2unix # these are basic utilities that you probably need y date # your clock is probably wrong date -s 2:54pm # fix it yum install ntp # use a time server y ntpdate pool.ntp.org /etc/init.d/ntpd start chkconfig ntpd on # auto-start time server at reboot service iptables status # by default your firewall is on chkconfig --del iptables # turn it off (I'm assuming you are testing inside a secure network) # create a non-root user groupadd local useradd -g local -s /bin/bash -d /home/local -m local passwd local yourpassword yourpassword
yum install nfs-utils nfs-utils-lib nfs4-acl-tools y mkdir /NEW_SHARE vi /etc/fstab
SOME_MACHINE:/SOME_PATH /NEW_SHARE nfs hard,rw 0 0
yum install yp-tools ypbind y y vi /etc/yp.conf
domain VALUE_FROM_NISDOMAIN_IN_ETC_SYSCONFIG_NETWORK broadcast
passwd: files nis shadow: files nis group: files nis netgroup: files nis automount: files nis
setsebool -P allow_ypbind=1 chkconfig ypbind on
Note: your NIS account probably need a share like /users mounted from a network machine. Follow the NFS steps above to create and auto-mount that share.