Red Hat 7.X安装VMware Tools


  • VMware Tools需要安装的依赖包

    [root@localhost ~]# yum install gcc

  • 复制VMware Tools 安装包

  • 解压安装包
    [root@localhost tmp]# tar zxvf VMwareTools-9.9.2-2496486.tar.gz 

    [root@localhost tmp]# cd vmware-tools-distrib/

  • 新版本RHEL7.1含有open-vm-tools组件,需要先删除该组件。

    [root@localhost vmware-tools-distrib]# rpm -e open-vm-tools --nodeps

  • 开始安装VMware Tools

    [root@localhost vmware-tools-distrib]# ./vmware-install.pl 

    安装全部采用默认值即可。

  • ----------------------------------------------------------------------------------------------------------------------

  • 在Linux(RHEL7.2)下安装VMware-tools时遇到了以下问题:


    Before you can compile modules, you need to have the following installed...


    make
    gcc
    kernel headers of the running kernel


    Searching for GCC...
    The path "" is not valid path to the gcc binary.
    Would you like to change it? [yes]


    怎么路径为“”呢,然后在虚拟机linux系统里GCC,没有安装~装个吧。于是就在WMware Workstation 7里重新加载当时装RHEL5.4时的ISO文件了!


    打开Virtual Machines Settings面板(如果不在全屏状态下,就右击RHEL5.4上面的标签,点击最下面的Settings,在Hardware里单击CD/DVD,然后在右边Use ISO image file旁边单击brows选择你当时安装RHEL5.4时的ISO文件;如果在全屏模式下,就在上面的工具栏里,点击VM->Removable->CD/DVD,下面同上述)。


    然后再重新connect(加载)驱动DVD就可以了。


    在安装盘里把gcc*.rpm,kernel-devel-*.rpm都安装。方法是在把这些文件复制到随便一个地方。


    然后再打开一个终端,进入这个目录,输入以下命令


    rpm -ivh gcc*.rpm --nodeps


    rpm -ivh kernel*.rpm --nodeps


    安装后进入刚才的终端里按回车,


    What is the location of the gcc program on your machine? /usr/bin/gcc


    The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
    Would you like to change it? [no]


    Searching for a valid kernel header path...
    The path "" is not valid.
    Would you like to change it? [yes]


    What is the location of the directory of C header files that match your running
    kernel? /lib/modules/2.6.18-164.el5xen/build/include


    The path "/lib/modules/2.6.18-164.el5xen/build/include" appears to be a valid
    path to the kernel headers of the running kernel.
    Would you like to change it? [no]


    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-root/modules/vmmemctl-only'
    make -C /lib/modules/2.6.18-164.el5xen/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
    MODULEBUILDDIR= modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-164.el5-xen-i686'
    CC [M] /tmp/vmware-root/modules/vmmemctl-only/backdoorGcc32.o
    搞定

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值