VMtools 安装教程

转贴:http://www.linuxdiyf.com/viewarticle.php?id=79569

 

 

作者:华仔 原来我都是用windows和linux双系统的,但是听朋友说用虚拟机很方便,于是我就在windows系统上安装了虚拟机,然后在虚拟机上安装了Fedora 6版本linux。接着麻烦事就来了,vm tools怎么也安装不上,虽然显示效果方面我不在乎,可是没有vm tools在windows和linux的文件共享上还是有些麻烦的。 我按照安装步骤一步步进行,可是总是提示我版本不一致的问题。我到网上查了些资料说升级就可以了 所以我就用命令 yun install gcc 和 yun install kernel-devel 升级成功。用uname -r看到的版本信息和rpm -q kernel-devel看到的版本信息是一致的了!但是等到安装vm tools的时候和原来一样的错误信息还是出现,安装还是不成功。经过了不知道多少次的失败尝试后我终于......换了一个新版本的vmware,vmware6。这下终于安装成功了。 什么点击安装菜单,解压等就不说了,下面是我的安装过程的全记录。 注意:网上好地方说所有选项都选择【是】或是直接回车就可以了,其实不是这样的,其中有一项要特别 注意。就是询问是否要安装主机和vm的通信通道......这一项的默认是【no】,如果直接回车就会造成主 机和vm无法直接通信。 [root@bogon tmp]# ls gconfd-root scim-panel-socket:0-root keyring-JEC5MC scim-socket-frontend-root mapping-root ssh-wkfPkG2186 orbit-root virtual-root.UjDoTy scim-bridge-0.3.0.lockfile-0@localhost:0.0 VMwareTools-6.0.2-59824.tar.gz scim-bridge-0.3.0.socket-0@localhost:0.0 vmware-tools-distrib scim-helper-manager-socket-root [root@bogon tmp]# cd vmware-tools-distrib/ [root@bogon vmware-tools-distrib]# ls bin doc etc FILES INSTALL installer lib vmware-install.pl [root@bogon vmware-tools-distrib]# ./vmware-install.pl A previous installation of VMware Tools has been detected. The previous installation was made by the tar installer (version 3). Keeping the tar3 installer database format. Uninstalling the tar installation of VMware Tools. Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [确定] The removal of VMware Tools 5.0.0 build-13124 for Linux completed successfully. Thank you for having tried this software. Converting the tar3 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] 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] y 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] y The installation of VMware Tools 6.0.2 build-59824 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] y 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] y 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.18-1.2798.fc6/build/include] 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.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-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 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.18-1.2798.fc6-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] y 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.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-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 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.18-1.2798.fc6-i686' cp -f vmhgfs.ko ./../vmhgfs.o make: Leaving directory `/tmp/vmware-config0/vmhgfs-only' The module loads perfectly in the running kernel. pcnet32 38213 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] y 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.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /tmp/vmware-config0/vmxnet-only/vmxnet.o Building modules, stage 2. MODPOST 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.18-1.2798.fc6-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] y 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.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-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 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.18-1.2798.fc6-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] y Trying to find a suitable vmci module for your running kernel. None of the pre-built vmci modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmci module for your system (you need to have a C compiler installed on your system)? [yes] y Extracting the sources of the vmci module. Building the vmci module. Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config0/vmci-only' make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' CC [M] /tmp/vmware-config0/vmci-only/dbllnklst.o CC [M] /tmp/vmware-config0/vmci-only/kernelStubsLinux.o CC [M] /tmp/vmware-config0/vmci-only/vmciDatagram.o CC [M] /tmp/vmware-config0/vmci-only/vmci_drv.o CC [M] /tmp/vmware-config0/vmci-only/vmciProcess.o CC [M] /tmp/vmware-config0/vmci-only/vmciResource.o CC [M] /tmp/vmware-config0/vmci-only/vmciSharedMemory.o CC [M] /tmp/vmware-config0/vmci-only/vmciTest.o CC [M] /tmp/vmware-config0/vmci-only/vmciUtil.o LD [M] /tmp/vmware-config0/vmci-only/vmci.o Building modules, stage 2. MODPOST CC /tmp/vmware-config0/vmci-only/vmci.mod.o LD [M] /tmp/vmware-config0/vmci-only/vmci.ko make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686' cp -f vmci.ko ./../vmci.o make: Leaving directory `/tmp/vmware-config0/vmci-only' The module loads perfectly in the running kernel. Detected X.org version 7.1. 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] 3 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: Linux 2.6.9-34.ELsmp i686 Red Hat, Inc. Current Operating System: Linux bogon 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 Build Date: 04 October 2006 Build ID: xorg-x11-server 1.1.1-47.fc6 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present 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.2583", Time: Wed Jan 9 14:28:51 2008 (++) Using config file: "/tmp/vmware-config0/XF86Config.2583" X is running fine with the new config file. (EE) AIGLX: Screen 0 is not DRI capable FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing. 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: [确定] New Host-Guest communications path: [确定] Blocking file system: [确定] DMA setup: [确定] Guest operating system daemon: [确定] The configuration of VMware Tools 6.0.2 build-59824 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 [root@bogon vmware-tools-distrib]# 安装好后建一个共享文件夹,在vm的菜单中vm-setting-option-shared folders ,添好相应的设置就可以了。注意,还没完呢。还要禁止虚拟机的防火墙,包括禁用Selinux。 至此,终于能在虚拟机的file:/mnt/hgfs目录下看到共享的windows文件夹了。通过这个文件夹主机和vm就可以传递文件了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值