How To Install CentOS 5.1 on VMware Server – Part 3

January 25th, 2008

Although your virtual CentOS server should be working fine at this point, it is recommended to install the VMware Tools to increase performance and functionnalities.

The VMware Tools do not have to be downloaded or whatever: they are made available from the VMware Server console.

Installing VMware Tools On Linux CentOS

While installing the VMware Tools on your guest operating system, it allows you to increase your virtual machine’s performance and capabilities.

Start by making sure you’ve got the kernel header files and a C compiler installed:

# yum install gcc gcc-c++ kernel-devel

Now create a link pointing to your kernel header files directory:

# ln -s /usr/src/kernels/[your kernel version] /usr/src/linux

From the VMware Server console, click on “VM => Install VMware Tools…”. This will connect a virtual cdrom drive with the VMware Tools installation files in it. You now need to mount it and install the VMware Tools manually:

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom
# cp VMwareTools-[version].tar.gz /tmp
# cd /tmp
# umount /mnt/cdrom
# tar zxf VMwareTools-[version].tar.gz
# cd /tmp/vmware-tools-distrib
# ./vmware-install.pl

I’ve left the VMware Tools parameters to their default values by hitting “enter” until the end.

When you’re done, simply reboot your virtual machine and you’ve got a nice new virtual web server.

Stay tuned for my upcoming post on how to install ISPConfig on CentOS 5.1.

8 responses so far ↓

avatar

1. Response by : Head Dev on Feb 26, 2008 at 9:52 pm

Great tutorial. Thank You!

avatar

2. Response by : Michael on Mar 1, 2008 at 9:04 am

I have been looking for help on this. Your guide is very good and easy to follow… however, vmware for me is still not finding the headers. What am I doing wrong?

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:01:45 EST 2008 i686 i686 i386 GNU/Linux
[root@localhost ~]# ll /usr/src
total 20
drwxr-xr-x 3 root root 4096 Feb 29 18:29 kernels
lrwxrwxrwx 1 root root 40 Feb 29 18:21 linux -> /usr/src/kernels/2.6.18-53.1.13.el5-i686
drwxr-xr-x 7 root root 4096 Feb 29 05:05 redhat

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.18-53.1.13.el5). Even if the module were to
compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Tks for your help if you can provide it.

Regards,
Michael

avatar

3. Response by : Jack on Mar 17, 2008 at 11:13 pm

im stuck at

# cp VMwareTools-[version].tar.gz /tmp

I do know what to type here. Im running Vmware server 1.0.4

avatar

4. Response by : The Web Hosting Hero on Mar 18, 2008 at 7:39 am

Use either “ls -al /mnt/cdrom” to display the file list or hit the TAB key for autocomplete.

avatar

5. Response by : nanda on Jan 29, 2011 at 10:43 am

I have trouble install centos server with vmware. “No Hard Drive Found” Please help me.

avatar

6. Response by : The Web Hosting Hero on Jan 29, 2011 at 12:32 pm

@nanda: what kind of hard drive did you add to your VM? SCSI?

avatar

7. Response by : Eoin Hamdam on Apr 20, 2011 at 4:44 am

Amazing instructions chief. I have never setup Centos before. The instructions are very easy to follow and it looks extremely powerful. I think I’ll be learning more about this OS every chance I get.
Thanks again.
Eoin

avatar

8. Response by : Faisal Ikhlaq on Apr 29, 2011 at 1:26 pm

Very nice instructions. Really easy to understand. I am also having the same problem that while installing centos no harddrive is found. I m using SCSI 0:0.

Leave a Comment




Webmaster Resources: Web Hosting Blog
© Copyright 2012 - TheWebHostingHero.com
Follow us on TwitterFacebookSubscribe to our RSS Feed