Linux下安装VMware-Tools完整版_第1页
Linux下安装VMware-Tools完整版_第2页
Linux下安装VMware-Tools完整版_第3页
Linux下安装VMware-Tools完整版_第4页
Linux下安装VMware-Tools完整版_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Linux下安装VMware Tools完整版VMwareTools可以实现鼠标在虚拟机环境和WINDOWS环境的方便切换(如果没有安装此工具,鼠标从虚拟机的Linux环境中切换到WINDOWS下,需要同时按Ctrl+Alt键,安装后鼠标可以直接移出);还可以使Linux访问和操作WINDOWS的目录。选择VMInstallVMwareTools,选择之后,桌面中的光盘图标变为VMwareTools,双击此光盘图标,会看到两个文件:VMwareTools-5.0.0-13124.i386.rpm和VMwareTools-5.0.0-13124.tar.gz。(一)这里的安装有两种方法:1、直接双击VMwareTools-5.0.0-13124.i386.rpm开始运行,完成之后打开终端,执行vmware-config-tools.pl,开始安装,中间会出现一些确认选项,一直回车,直到出现设置屏幕分辨率的提问,选择一个然后回车(如选择3,1024768),继续直到完成安装。2、打开终端,cd到/media/cdrom/(此处是光盘所在的位置,在此位置下应该有VMwareTools-5.0.0-13124.i386.rpm和VMwareTools-5.0.0-13124.tar.gz两个文件文件),执行如下命令:cpVMwareTools-5.0.0-13124.tar.gz/tmp/拷贝文件到tmp目录下cd/tmp/CD到tmp目录下tarxzfVMwareTools-5.0.0-13124.tar.gz/解压文件cdvmware-tools-distrib/CD到vmware-tools-distrib目录下./vmwre-install.pl/开始安装中间会出现一些确认项,一直回车(二)设置共享文件共享文件的设置有两种方法:1、打开VMSetting,选择OptionsShareFolders,添加一个共享文件夹,共享名随便写,共享文件夹的路径为WINDOWS端的共享文件夹,如:D:share,打开终端,在/mnt/hgfs/share目录下就可以访问到D:share目录下的文件了。2、mount方式把WINDOWS系统下的某个文件共享,然后通过mount命令把此文件共享到Linux目录下。如:mounttsmbfs/192.168.2.110/test/mnt/shareousername=your_user_name,workgroup=your_nt_domain这样就把共享的test目录文件共享到Linux目录下的/mnt/share中了,在Linux中可以操作此目录中的文件了。其中192.168.2.110是本机的IP地址。进入linux后,运行命令装tools工具用到的命令/sbin/telinit3进入文本模式选择“VM”菜单的“installVMwareTools”mount/dev/cdrom/mnt/cdrom挂载光驱cd/mnt/cdromcpvmware*/tmp/cd/tmptarzvxfvmware*cdvmware-t*./*.pl特殊说明:1.若安装VMwareTools的过程中遇到类似“whatthelocationofthegcc”的提示,直接将linux安装光盘放入光驱,如果是GNOME的桌面环境就在桌面最上方点“Action-RunApplication”,在弹出的窗口中点“Runwithfile.”,在Fedora文件夹中找到RPM文件夹,然后查找关于gcc的应用程序安装,我只安装了前两个就可以正常安装VMwareTools了。2.安完VMwareTools之后,会自动在/mnt目录下生成一个hgfs的目录,这个目录就是windows端的共享文件夹里的内容。用hgfs实现vmware文件传输,不需要任何网络相关设置,这对于网络不通时进行vmware与host传输文件带来方便,不用u盘mount即可实现. host和ghost可以是linux和windows操作系统,这里只介绍host是windows,ghost是linux下的设置.若ghost是windows,可以参考vmware帮助中的setting up shared folders. 用hgfs实现vmware文件传输,不需要任何网络相关设置,这对于网络不通时进行vmware与host传输文件带来方便,不用u盘mount即可实现. host和ghost可以是linux和windows操作系统,这里只介绍host是windows,ghost是linux下的设置.若ghost是windows,可以参考vmware帮助中的setting up shared folders.下面的介绍假定VMware,linux等已经安装:-)1.下载一个VMwareTools包,如:VMwareTools-5.0.0-13124.i386.tar.gz2.安装VMwareTools包# tar xzfv VMwareTools-5.0.0-13124.i386.tar.gz在当前目录下生成vmware-tools-distrib文件夹# cd vmware-tools-distrib# lsbin doc etc FILES INSTALL installer lib sbin vmware-install.pl# ./vmware-install.pl 安装程序会询问安装文件存放位置和设置分辨率等一系列问题,在大多数情况下,安装默认配置VMware tools就可以正常工作,因此,在此对每一个问题按回车键选择默认配置.输出信息类似如下:Creating a new installer database using the tar3 format.Installing the content of the package.In which directory do you want to install the binary files?/usr/binWhat is the directory that contains the init directories (rc0.d/ to rc6.d/)?/etc/rc.dWhat is the directory that contains the init scripts?/etc/rc.d/init.dIn which directory do you want to install the daemon files?/usr/sbinIn which directory do you want to install the library files?/usr/lib/vmware-toolsThe path /usr/lib/vmware-tools does not exist currently. This program is goingto create it, including needed parent directories. Is this what you want?yesIn which directory do you want to install the documentation files?/usr/share/doc/vmware-toolsThe path /usr/share/doc/vmware-tools does not exist currently. This program isgoing to create it, including needed parent directories. Is this what you want?yesThe installation of VMware Tools 5.0.0 build-13124 for Linux completedsuccessfully. You can decide to remove this software from your system at anytime by invoking the following command: /usr/bin/vmware-uninstall-tools.pl.Before running VMware Tools for the first time, you need to configure it byinvoking the following command: /usr/bin/vmware-config-tools.pl. Do you wantthis program to invoke the command for you now? yesStopping VMware Tools services in the virtual machine: Guest operating system daemon: OK Trying to find a suitable vmhgfs 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 vmxnet module for your running kernel.None of the pre-built vmxnet modules for VMware Tools is suitable for yourrunning kernel. Do you want this program to try to build the vmxnet module foryour system (you need to have a C compiler installed on your system)? yesUsing compiler /usr/bin/gcc. Use environment variable CC to override.What is the location of the directory of C header files that match your runningkernel? /lib/modules/2.4.20-8/build/includeExtracting the sources of the vmxnet module.Building the vmxnet module.Using standalone build system.make: Entering directory /tmp/vmware-config0/vmxnet-only'make: Leaving directory /tmp/vmware-config0/vmxnet-only'The module loads perfectly in the running kernel.Detected XFree86 version 4.3.0.Shutting down console mouse services: OK Starting console mouse services: OK Please choose one of the following display sizes (1 - 9):1 640x4802 800x6003 1024x7684 1152x8645settings-Options-shared folders-properties(2) 点击对话框右下的Add-下一步,在文本框name中输入共享目录的名字(即在ghost computer的linux系统中将显示出同样的目录名),假设为win2linux,在host folder中填入host computer 中windows系统想要共享出来的目录,假设为F:win2linux,然后点击完成.(注: F:win2linux目录要手动建立,即在F盘下建一个新建文件夹,命名为win2linux)(3) 下一个对话框似选择共享的方式:Enable this share是指这个共享长期有效.目录可读写-完成,至此,shared folder设置完毕5.共享目录设置完成后,在/mnt/hgfs/目录下有新生成的共享目录win2linuxrootlocalhost /# cd /mnt/rootlocalhost mnt# lscdrom floppy hgfs myusbrootlocalhost mnt#举例:1.如:要将文件包make-3.81.tar.gz从windows拷贝到VM linux中,只需将make-3.81.tar.gz拷贝到windows的F:win2linux目录下,则在limu

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论