zoukankan      html  css  js  c++  java
  • 【linux】——安装vmwaretools

    一:点击安装VMware Tools;

    二:此时系统桌面上会出现图标VMware Tools;这里面文件位于/media 文件夹下;里面有两个文件我们用第二个;

    三:把第二个文件用命令:tar xvfz /media/VMware\ Tools/VMwareTools-6.0.2-59824.tar.gz -C /opt      把文件加压到/opt文件夹中;

    四:用命令:cd /opt/vmware-tools-distrib/ 转到此目录下;

    五:执行命令: ./vmware-install.p1 安装工具;然后就是一路enter键,需要yes的输入yes ,需要no的输入no;即可;

    如果比较幸运,那就安装成功了,不过在安装的过程中会碰到一下现象:

    一、 配置vmware-config-tool会有以下报错:

    Unable to create the directory /mnt/hgfs.

    Execution aborted.

    原因:在/mnt下已经mount了光盘。

    解决方法:将其umount,再重新配置vmware-config-tool。

    二、配置vmware-config-tool还会有以下报错:

    CentOS5 kernet: unregister_netdevice: waiting for eth0 to become free.

    主要原因:配置vmware-config-tool与网卡的IPv6地址有冲突。

    解决方法:将该网卡的IPv6禁用。

    1. Add the two lines, if not already present, to /etc/modprobe.conf:

    alias net-pf-10 off
    alias ipv6 off

    add the command to blacklist(/etc/modprobe.d/blacklist) instead as shown below:

    blacklist net-pf-10

    Note: Try to copy-paste these lines instead of typing them. I faced problems in one computer after typing it in. It wasn't something which was visible to me on casual inspection but copy-paste solved it.

    2. Open /etc/sysconfig/network and look for the line containing NETWORKING_IPV6 and change the value to no as shown below:

    NETWORKING_IPV6=no

    3. Stop ip6tables firewall:

    /sbin/service ip6tables stop

    4. Prevent the ip6tables firewall from coming up ever again:

    /sbin/chkconfig ip6tables off

    5. Restart your network to see if everything is working correctly:

    /sbin/service network restart

    6. Some articles suggest rebooting the machine at this stage so you may do that too.

    按照上面的步骤做完重启电脑重新安装即可!

    安装vmware-tools的时候还会出现以下两种情况:

    1、what is the location of the gcc program on your machine?

      这是因为没有安装gcc的原因,用yum -y install gcc安装即可;

    2、What is the location of the directory of C header files that match your running kernel?

      用yum -y install kernel-devel安装即可

  • 相关阅读:
    6、scala面向对象-对象
    C# App.config配置文件的讲解
    abstract、override、new、virtual、sealed使用和示例
    C# 枚举的使用
    深入浅出面向对象分析与设计
    数据契约(DataContract)的作用
    C# 启动停止SQLServer数据库服务器
    C# 定时器计划任务
    C# 程序只能执行一次
    WPF dataGrid中的check的改变事件
  • 原文地址:https://www.cnblogs.com/ngnetboy/p/3113726.html
Copyright © 2011-2022 走看看