注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

GxneT

-----中国领先的IT博客

 
 
 

日志

 
 

vmware-tool安装  

2010-06-06 02:13:59|  分类: LINUX |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

1、以ROOT身份进入LINUX

2。退出到windows,点击 SETTING菜单下的ENABLE VMWARE TOOLS子菜单,确认安装

3。把光驱改为使用iso镜像,路径为C:\Program Files\VMware\VMware Workstation\Programs\linux.iso

4。进入linux运行mount -t iso9660 /dev/cdrom /mnt

加载CDROM设备,这时如果进入 /mnt 目录下,你将会发现多了一个文件:vmware-linux-tools.tar.gz。这就是WMWARE TOOLS的LINUX软件包,也就是我们刚才使用WINISO打开LINUX.ISO文件所看到的。

cp /mnt/vmware-linux-tools.tar.gz /tmp

将该软件包拷贝到LINUX的 TMP目录下。

umount /dev/cdrom

卸载CDROM。

cd /tmp

进入TMP目录

tar zxf vmware-linux-tools.tar.gz

解压缩该软件包,默认解压到vmware-linux-tools目录下(与文件名同名)。

cd vmware-linux-tools

进入解压后的目录

./install.pl

运行安装命令。

这时install提示你是否需要备份以前的配置文件,建议选择"y"。

下面是一部分的过程(参考的互联网上的其他人的资料,如有侵权,请留言联系)

Stopping VMware Tools services in the virtual machine:
    Guest operating system daemon:                           [确定]
File /etc/X11/xorg.conf is backed up to /etc/X11/xorg.conf.old.0.
File /etc/modprobe.conf is backed up to /etc/modprobe.conf.old.0.
The removal of VMware Tools 5.5.3 build-34685 for Linux completed successfully.
Thank you for having tried this software.
Installing the content of the package.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]
What is the directory that contains the init scripts?
[/etc/rc.d/init.d]
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware-tools]
The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the documentation files?
[/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]
The installation of VMware Tools 5.5.3 build-34685 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] (运行vmware-config-tools来配置)

Stopping VMware Tools services in the virtual machine:
    Guest operating system daemon:                           [确定]
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]
Using compiler "/usr/bin/gcc". Use environment variable CC to override.
9.直到该步骤,拷贝粘贴第7步的路径,然后一直按回车,直到选择屏幕分辨率。
What is the location of the directory of C header files that match your running
kernel? [/usr/src/kernels/2.6.18-1.2849.fc6-i686/include]
Extracting the sources of the vmhgfs module.
Building the vmhgfs module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmhgfs-only'
make -C /usr/src/kernels/2.6.18-1.2849.fc6-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'
   CC [M]   /tmp/vmware-config3/vmhgfs-only/cpName.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/cpNameLinux.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/dev.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/driver.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/hgfsUtil.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/main.o
   CC [M]   /tmp/vmware-config3/vmhgfs-only/staticEscape.o
   LD [M]   /tmp/vmware-config3/vmhgfs-only/vmhgfs.o
   Building modules, stage 2.
   MODPOST
   CC       /tmp/vmware-config3/vmhgfs-only/vmhgfs.mod.o
   LD [M]   /tmp/vmware-config3/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config3/vmhgfs-only'
Unable to make a vmhgfs module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config3/vmhgfs.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.   You may want to
rebuild a kernel based on that directory, or specify another directory.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]
pcnet32                 38085   0
Unloading pcnet32 module
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]
Extracting the sources of the vmxnet module.
Building the vmxnet module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmxnet-only'
make -C /usr/src/kernels/2.6.18-1.2849.fc6-i686/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'
   CC [M]   /tmp/vmware-config4/vmxnet-only/vmxnet.o
   Building modules, stage 2.
   MODPOST
   CC       /tmp/vmware-config4/vmxnet-only/vmxnet.mod.o
   LD [M]   /tmp/vmware-config4/vmxnet-only/vmxnet.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686'
cp -f vmxnet.ko ./../vmxnet.o
make: Leaving directory `/tmp/vmware-config4/vmxnet-only'
Unable to make a vmxnet module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config4/vmxnet.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.   You may want to
rebuild a kernel based on that directory, or specify another directory.
The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, you can install the driver
by running vmware-config-tools.pl again after making sure that gcc, binutils,
make and the kernel sources for your running kernel are installed on your
machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

Detected X.org version 7.1.
10.到了该步骤,问你是否改变X-window的设置,选y,就可以改变分辨率。
Do you want to change your guest X resolution? (yes/no) [no] y

Please choose one of the following display sizes (1 - 13):
[1]   "640x480"
[2]< "800x600"
[3]   "1024x768"
[4]   "1152x864"
[5]   "1280x800"
[6]   "1152x900"
[7]   "1280x1024"
[8]   "1376x1032"
[9]   "1400x1050"
[10]   "1680x1050"
[11]   "1600x1200"
[12]   "1920x1200"
[13]   "2364x1773"
Please enter a number between 1 and 13:
[3]

11.到了这步,千万别重启看效果,还要修改xorg config设置,不然重启后会报X-WINDOWS出错。
进入/etc/X11/,用文本打开xorg.conf,加上以下几段:
Section "Monitor"
         Identifier    "vmware"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection
然后找到 含有"ServerLayout" 的section, 在Section跟EndSection之间加上以下一行。
InputDevice "Mouse0" "CorePointer"
12.终于大功告成,重启看看效果了。

  评论这张
 
阅读(4195)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017