VmwareTools for linux的安装

一、VMwareTools-版本号.rpm的图形模式的安装
1.在Windows的vmware的窗口菜单中选vm(虚拟机)->install vmware tools(安装Vmware Tools)

2.挂载光驱目录mount /dev/cdrom /mnt/cdrom (vmtools的安装文件放在vmware虚拟的cdrom中,首先要mount上这个光驱才能找到安装文件)
3.打开/mnt/cdrom目录
4.找到VMwareTools-版本号.rpm包,双击选运行就好了
5.安装完成后在windows的vmware的窗口菜单中选vm(虚拟机)->Setting(设置)->Options(选项)
->Shared Folders(共享文件夹)->添加你要共享的Windows目录
6.重新启动,再进入RedHat就会在/mnt目录下自动生成/mnt/hgfs目录了
7.如果没有则在终端中输入
/usr/bin/vmware-config-tools.pl

按照提示去操作就可以了.我的操作结果如下:

[root@localhost root]# /usr/bin/vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ 确定 ]
Trying to find a suitable vmmemctl module for your running kernel.

The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.

Trying to find a suitable vmhgfs module for your running kernel.

The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.

pcnet32 18240 1
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.

Trying to find a suitable vmblock module for your running kernel.

The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.

[EXPERIMENTAL] The VMware CPU Time Accounting daemon (vmware-vmdesched) can
help increase the accuracy of CPU time accounting performed by the guest
operating system. Please refer to the VMware Knowledge Base for more details on
this capability. Do you wish to enable this feature? [no] yes

Trying to find a suitable vmdesched module for your running kernel.

The module up-2.4.20-8.athlon-RH9.0 loads perfectly in the running kernel.

[EXPERIMENTAL] The Crosstalk service provides a new communication capability
with the Host, primarily for development at the moment. Would you like to
enable this feature? [no] yes

Trying to find a suitable vmcrosstalk module for your running kernel.

The module up-2.4.20-8.i686-RH9.0 loads perfectly in the running kernel.

Detected XFree86 version 4.3.0.

Please choose one of the following display sizes that X will start with (1 -
15):

[1] "640x480"
[2]< "800x600"
[3] "1024x768"
[4] "1152x864"
[5] "1280x800"
[6] "1152x900"
[7] "1280x1024"
[8] "1376x1032"
[9] "1400x900"
[10] "1400x1050"
[11] "1440x900"
[12] "1680x1050"
[13] "1600x1200"
[14] "1920x1200"
[15] "2364x1773"
Please enter a number between 1 and 15:

[2]

XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-8 ( ) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003 PF
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.2620", Time: Mon Apr 30 19:14:43 2007
(++) Using config file: "/tmp/vmware-config0/XF86Config.2620"

X is running fine with the new config file.

Starting VMware Tools services in the virtual machine:
Switching to guest configuration: [ 确定 ]
Guest filesystem driver: [ 确定 ]
Mounting HGFS shares: [失败]
Guest memory manager: [ 确定 ]
Guest vmxnet fast network device: [ 确定 ]
Loading vmdesched driver module: [ 确定 ]
Guest descheduled time accounting daemon: [ 确定 ]
New Host-Guest communications path: [ 确定 ]
Blocking file system: [ 确定 ]
DMA setup: [ 确定 ]
Guest operating system daemon: [ 确定 ]

The configuration of VMware Tools 6.0.0 build-44426 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start

To make use of the virtual printer, you will need to restart the CUPS service

If you wish to configure any experimental features, please run the following
command: "vmware-config-tools.pl --experimental".

Enjoy,

8.这时再看看是不是已经出来了

二、VMwareTools-版本号.tar.gz包的文本模式的安装

第一步:进入系统后,点击虚拟机上的安装vmware tools,回到桌面回看到一个vmware tools的cdrom图标。

第二步:打开它,复制“vmwaretools....tar.gz”,打开文件系统,打开home文件夹,打开当前用户为名的文件夹,粘贴vmwaretools....tar.gz,同时解压此文件“到此处”。

第三步:在此文件夹空白处点击右键,点击属性,在点击窗口中的“权限”,把里面所有“文件夹访问”的内容改为“创建和删除文件”便可。

第四步:回到刚才目录,单击vmware-tools-distrib文件夹,然后打开终端

第五步:在命令行输入“ls”后将列出文件夹文件;接着输入“cd vmware-tools-distrib”指定到此文件夹,接着输入“ls”列出此文件夹内容,接着输入“sudo ./vmware-install.pl”,输入用户密码便可开始安装了。

第六步:接下来N多的enter,N多的YES,自己慢慢按吧。

第七步:直到你看到---the vmware team就可关闭窗口,然后重新启动

最后设置共享文件夹的方法:

.在windows的vmware的窗口菜单中选vm(虚拟机)->Setting(设置)->Options(选项)
->Shared Folders(共享文件夹)->添加你要共享的Windows目录,重启虚拟机,/mnt/hgfs/就是你共享的文件夹名