Pages

Saturday, 18 May 2013

Centos linux minimal install config

I'm planning on attempting to learn Puppet which requires a linux operating system. I'm competent enough to get around linux and perform basic tasks but I'm by no means an expert or even intermediate. My linux distro of choice is the minimal install of Centos. The minimal install is exactly what it says, the minimal install of binaries that are required to get the system up and running. All other binaries will have to be manually installed. This post shows how to set a static IP address and install the VMware tool into a minimal install of Centos. I'm not going to show you how to install Centos as it's a simple next next type of installation.

Once you have the minimal install up log in and use vi to edit the eth0 interface file:

service network restart
You should now be able to ping the server by IP address and also ping form the server via DNS. Remember to add both forward and reverse A host entries into your DNS server. You should also now be able to SSH into the server rather than using the console. Next step is to update the server (Ensure your server has access to the internet):

yum upgrade -y
This may take a while depending on how many updates are required. Once it has finished just perform the same command again to ensure there are no more updates required.

The final step is to install the VMware tools as per VMware's best practice Start by initiating the VMware tools install via the vSphere Web Client / GUI and then perform the following commands:

tar -zxf /tmp/VMwareTools-*.tar.gz -C /tmpcd /./tmp/vmware-tools-distrib/vmware-install.pl --defaultrm -f /tmp/VMwareTools-*.tar.gzrm -rf /tmp/vmware-tools-distrib
Once finished the VMware tools should be running and current. If you have any issues with the vmware-tools service the commands to start | stop | restart | status are: