zoukankan      html  css  js  c++  java
  • VMware Tools安装方法及共享文件夹设置方法

    1、设置共享权限

    这里写图片描述

    2、安装VMware tools

    这里写图片描述

    • 点击虚拟机
    • 点击安装 VMware tools
    • 将/run/media/zhaojq/VMware Tools 目录下的VMwareTools-9.6.2-1688356.tar.gz拷贝到家目录下
    • 解压后生成vmware-tools-distrib
    1.  
      [zhaojq@localhost vmware-tools-distrib]$ ls
    2.  
      bin doc etc FILES INSTALL installer lib vmware-install.pl
    • 1
    • 2
    • 1
    • 2

    运行./vmware-install.pl

    [zhaojq@localhost vmware-tools-distrib]$ ./vmware-install.pl 
    • 1
    • 1

    一直enter

    1.  
      The path "" is not valid path to the gcc binary.
    2.  
      Would you like to change it? [yes] no
    3.  
      输入 no
    4.  
       
    5.  
      The path "" is not a valid path to the 3.10.0-514.26.2.el7.x86_64 kernel
    6.  
      headers.
    7.  
      Would you like to change it? [yes] no
    8.  
      输入 no
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    安装成功后返回

    1.  
      Enjoy,
    2.  
       
    3.  
      --the VMware team
    • 1
    • 2
    • 3
    • 1
    • 2
    • 3

    2、挂载Windows主机的共享文件夹

    mnt/hgfs 目录

    1.  
      [zhaojq@localhost ~] cd /mnt/hgfs/
    2.  
      [zhaojq@localhost hgfs] pwd
    3.  
      /mnt/hgfs
    • 1
    • 2
    • 3
    • 1
    • 2
    • 3

    vmware-hgfsclient 命令查看当前共享的目录

    1.  
      [zhaojq@localhost hgfs]$ vmware-hgfsclient
    2.  
      E
    • 1
    • 2
    • 1
    • 2

    mount报错

    1.  
      [zhaojq@localhost hgfs]$ sudo mount -t vmhgfs .host:/E /mnt/hgfs
    2.  
      Error: cannot mount filesystem: No such device
    • 1
    • 2
    • 1
    • 2

    vmhgfs-fuse,需要安装工具包

    1.  
      [zhaojq@localhost hgfs]$ yum install open-vm-tools-devel -y
    2.  
      [zhaojq@localhost hgfs]$ vmhgfs-fuse .host:/E /mnt/hgfs
    • 1
    • 2
    • 1
    • 2

    3、查看挂载

    注意:需要root权限查看。

    Windows 主机的E盘情况

    这里写图片描述

    Centos虚拟机下的挂载情况

  • 相关阅读:
    linux下编译sphinx拓展
    Java为什么使用连接池
    内部类之.this&&.new
    何为代理
    Qt install Phonon
    Gcc简介与常用命令
    Vim的设置和使用——编程者
    QT程序启动界面的使用
    slide from one widget to another
    Hide the common top menu in Ubuntu 12.04
  • 原文地址:https://www.cnblogs.com/wanglijun/p/10972949.html
Copyright © 2011-2022 走看看