2/25/2008

Install VMware Tools 6.02 59824 on RHEL5

1.在虚拟机下菜单VM下选择install vmware tools。

[root@localhost /]# mount -t iso9660 /dev/cdrom /mnt
[root@localhost /]# cd /mnt
[root@localhost mnt]# cp *.tar.gz /tmp
[root@localhost mnt]# cd /tmp
[root@localhost tmp]# tar zxvf *.tar.gz
[root@localhost tmp]# cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]#./vmware-install.pl

2.一路回车选择默认的选择。

3.在分辨率选择界面下选择合适的分辨率,推出reboot即可。

btw:可能出的问题

A.默认的的路径找不到内核库头

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

a.如果是RHEL系统,可能是该系统所在的内核源码没装,解决方法:
在系统光盘中找到,kernel,kernel-devel两个rpm安装后,再执行vmware-install.pl即可

b.如果是ubuntu版的linux解决方法如下:

You need to install the headers for the release of the kernel you have installed. To find this out you can type

>> uname -r

to get the header you can apt-get install them,

>> sudo apt-get install linux-headers-`uname -r`

or select the appropriate package in synaptic.

Note: you'll also need gcc etc which if you don't have already you can get with

>> sudo apt-get install build-essential

After installation the vmware installer should just pick up the right place and not require anything but the defaults.

If it's still being stupid, the path to include can be found in /lib/modules/<>/build/include

B.安装后提示安装失败

可能是执行安装过程中有2个过程默认是NO的选择,这俩个是和本机信息通讯的俩个,改成yes执行即可。

No comments: