Installing CentOS Server on VMware


As I said at the forum http://forevergeeks.com/community/index.php/topic,20.0.html I’m planning to install and configure Asterisk – the open source PBX that runs on Linux. as you probably know a PBX make connections among the internal telephones of a private organization and when connected to a PSTN line, you can also use it to make regular phone calls to any phone. I have installed asterisk before using tribox which does all the installation for you including the operating system and asterisk. if you want to get familiar with asterisk you should try trixbox first, then move on to something more advance like I’m doing now. the reason why I’m doing this manual installation is because I want to get familiarized with CentOS and Asterisk, and learn from both of them as much as I can.

for this installation I assume you already have a physical machine available, or a virtual machine. if you haven’t started using virtual machines, I recommend checking the links below on how to get started.

http://forevergeeks.com/installing-vmware-server-20-on-windows-xp

http://forevergeeks.com/creating-a-virtual-machine-on-vmware-server-20

if you are using a virtual machine, remember to boot from the CentOS ISO image we will download below.

Getting the CentOS DVD ISO image

the DVD ISO image I downloaded is located at http://centos.secsup.org/5.2/isos/i386/CentOS-5.2-i386-bin-DVD.iso I recommend visiting http://www.centos.org/ website just in case there is an earlier version of CentOS.

I must warn you that the download is 3.7 GB big, so you need  a good Internet speed connection, otherwise installing CentOS should be your resolution for next year, 2010!.

Installing CentOS

power up the virtual machine.

the CentOS installation screen should come up:

CentOS installation screen

We want to install using the graphical mode, so just press ENTER on this screen.

next CentOS will ask you if you want to test the media CD before the installation. we are installing the OS from an ISO image, and if we press OK probably it will take awhile, so just Skip this option. ( press the SPACE bar to select )

CentOS testing Media CD

at this point CentOS should launch the setup wizard. after awhile you should get to the following window:

CentOS 5 window

I think we can safely click on Next on this window.

Choose your language on the following screen.

CentOS choose your language

after choosing your language, just click Next.

next you need to choose your keyboard layout.

image

click Next, after choosing your keyboard layout.

clicking the Next button gives me the following warning about the  partition table being unreadable. this is normal, the partition is new, and needs to be initialized in order for CentOS to start using it.

partition table unreable warning 

click on the Yes button.

on the following screen CentOS wants a partition on the hard drive. and because I don’t have any partition on this drive that I’m using I will choose the default setting : Remove Linux partitions on selected drives and create default layout:

CentOS partitioning

Click Yes on the following warning:

removing data warning

next we need to configure the network devices. I chose the network device to use when I setup the virtual machine, and for now, I will have DHCP to assign the TCP/IP settings automatically.

CentOS network properties

Click on Next after choosing your network settings.

next choose your language by clicking on the map region.

CentOS choosing language

click on Next after selecting your language.

next choose your root password.

CentOS root password

after entering your root password, click on Next.

next the installation wizard will ask what type software you want to include on the installation, check Desktop – Gnome and Server and nothing else. the extra stuff can be installed later on if you need them using the software management.

image

 

click on the Next button

next, you get the screen that will begin the installation.

CentOS installation begin

as the screen indicates, a complete log of the installation can be found at root/install.log directory after the OS has been installed. the options we have selected can be found at “root/anaconda-ks-cfg”

click Next to start the installation.

after  rebooting CentOS,  the configuration wizard will come up.

configure CentOS

click on Forward.

next the wizard will ask you what services to allow through the firewall. I guess we are not too concerned about web services or anything else that needs access to this system right now, if later on Asterisk needs any of these services, we will add it.

CentOS firewall

Choose the Firewall default settings, and click Next.

next, you will need to configure SElinux settings. if you are wondering what is SELinux, I did a quick research and this is what I found out at NASA website.

What is Security-enhanced Linux?

Security-enhanced Linux (SELinux) is a reference implementation of the Flask security architecture for flexible mandatory access control. It was created to demonstrate the value of flexible mandatory access controls and how such controls could be added to an operating system. The Flask architecture has been subsequently mainstreamed into Linux® and ported to several other systems, including the Solaris™ operating system, the FreeBSD® operating system, and the Darwin kernel, spawning a wide range of related work. The Flask architecture provides general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement®, Role-based Access Control, and Multi-level Security.

SELinux settings

I will leave the default settings, and click Forward.

next, select your date and time.

CentOS Date and Time

you select a Network Time Protocol if you need to. otherwise just click on Forward.

on the next window you will need to create a user account for non-administrative stuff. is recommended, so I will created one.

image

Click Forward after you have created the user account.

next, the wizard will test your audio card.

CentOS sound card

after testing your audio settings, click on Forward.

on the following screen choose to install additional software by clicking on the install additional software option.

image

Otherwise just click Finish.

by now CentOS should be installed on the VMware machine.

CentOS login screen

On the next article we will be installing VMware tools to enhance our VMware visual settings and performance.

Discuss this installation at the forum.

CentOS VMware Installation Forum Discussion



Related Posts


No Comments »

No comments yet.

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.

(required)

(required)