VMwarews602中文绿色精简版Red Flag linux 安装vmware tools 记实图文并茂版

VMwarews602中文绿色精简版Red Flag linux 安装vmware tools 记实图文并茂版

软件环境及版本:
VMwarews602中文绿色精简版
Red Flag linux 6
VMwarew tools for linux
记实:
1。在红旗linux 6的虚拟设备中把cd rom(光驱)的连接改为“使用Iso镜像”,并且在它连接到下载好的vmware tools for linux.iso文件,然后启动红旗linux虚拟机。




2。启动红旗linux 6虚拟机后,挂载光驱(其实是个iso文件啦),并把光盘文件复制到家目录中。
cd /mnt/           #进入挂载目录
mkdir cdrom    #新建一个光驱目录
mount /dev/cdrom /mnt/cdrom     #挂载光驱到/mnt/cdrom/目录
cd /mnt/cdrom    #进入光驱挂载位置
cp *.* /home/      #将全部文件复制到家目录
下面是部分命令截图:

3。安装
3。1,rpm安装
红色的两个文件就是vmware tools 的安装文件,第一个是rpm文件,俺立即进行安装,我估计这个容易安装一些,就决定先尝试rpm 的安装,命令是:
rpm -ivh VMwareTools-6.0.3-80004.i386.rpm      解释一下:-i表示安装,-v表示安装过程显示详细信息,-h表示显示水平进度条。
结果安装成功,可是没任何反应,鼠标照样不可以任意移出虚拟机。只能尝试安装压缩包了。
3。2,解压缩安装
  gzip -d VMwareTools-6.0.3-80004.tar.gz   #先解开压缩
  tar -xvf VMwareTools-6.0.3-80004.tar       #再展开档案
则出现vmware-tools-distrib目录,进入该目录(在进出目录和解压开包过程中得多用Tab键帮忙,要不输这些长文件名可不轻松)
[root@localhost home]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
该目录列出的文件中,安装程序就是vmware-install.pl,执行这个程序应该可以进行安装。
[root@localhost vmware-tools-distrib]# ./vmware-install.pl  #有个点,所以放大字体
一路下去,尽干手工活,下面是过程,会让我输入一些路径和会让我回答yes/no。类似红色部分就是我输入的。

[root@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.
The previous installation was made by the rpm installer (version 4).
Converting the rpm4 installer database format
        to the tar4 installer database format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin] /usr/bin   
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d] /etc/rc.d
What is the directory that contains the init scripts?
[/etc/rc.d/init.d] /etc/rc.d/init.d
In which directory do you want to install the daemon files?
[/usr/sbin] /usr/sbin
In which directory do you want to install the library files?
[/usr/lib/vmware-tools] /usr/lib/vmare-tools
The path "/usr/lib/vmare-tools" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes] yes
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools] /usr/share/doc/vmware-tools
The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes] yes
The installation of VMware Tools 6.0.3 build-80004 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [确定]
Trying to find a suitable vmmemctl module for your running kernel.
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes] yes
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.22.6-1/build/include] lib/modules/2.6.22.6-1/build/inc
lude
The path "lib/modules/2.6.22.6-1/build/include" is not an existing directory.
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.22.6-1/build/include] /lib/modules/2.6.22.6-1/build/in
clude
Extracting the sources of the vmmemctl module.
Building the vmmemctl module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. mod
ules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config0/vmmemctl-only/os.o
  SHIPPED /tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /tmp/vmware-config0/vmmemctl-only/.vmmemctl1.o.cmd for /
tmp/vmware-config0/vmmemctl-only/vmmemctl1.o
  CC      /tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o
  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmhgfs module for your running kernel.
None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes] yes
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. mod
ules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpName.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/dbllnklst.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/eventManager.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/filesystem.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/fsutil.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/inode.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/link.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/message.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/module.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/page.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/request.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/rpcin.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/rpcout.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/staticEscape.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/stubs.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/super.o
  LD [M]  /tmp/vmware-config0/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/vmware-config0/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmxnet module for your running kernel.
None of the pre-built vmxnet modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmxnet module for
your system (you need to have a C compiler installed on your system)? [yes] yes
Extracting the sources of the vmxnet module.
Building the vmxnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmxnet-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config0/vmxnet-only/vmxnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config0/vmxnet-only/vmxnet.mod.o
  LD [M]  /tmp/vmware-config0/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config0/vmxnet-only'
The module loads perfectly in the running kernel.
Trying to find a suitable vmblock module for your running kernel.
None of the pre-built vmblock modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmblock module
for your system (you need to have a C compiler installed on your system)?
[yes] yes
Extracting the sources of the vmblock module.
Building the vmblock module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmblock-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-config0/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-config0/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config0/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-config0/vmblock-only/vmblock.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-config0/vmblock-only'
The module loads perfectly in the running kernel.
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment.  Would you like to enable this feature? [no] no

Detected X.org version 1.3.

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:
[5] 2
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [确定]
   Guest filesystem driver:                                [确定]
   Mounting HGFS shares:                                   [失败]
   Guest memory manager:                                   [确定]
   Blocking file system:                                   [确定]
   DMA setup:                                              [确定]
   Guest operating system daemon:                          [确定]
The configuration of VMware Tools 6.0.3 build-80004 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
Enjoy,
--the VMware team
4。成功了,我可以把命令行中的内容复制出虚拟机,鼠标可以自由移动。
其实可以看出来我不怎么懂,错误和不足的地方请指正!
很强大,很受用