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.
4 responses so far ↓
1. Response by : Head Dev on Feb 26, 2008 at 9:52 pm
Great tutorial. Thank You!
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
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
4. Response by : Stephane Brault 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.
Leave a Comment