zoukankan      html  css  js  c++  java
  • Vmware10 Centos7 共享文件夹设置方法

    先安装包依赖:
    yum -y install kernel-devel-$(uname -r) 
    yum -y install net-tools perl gcc gcc-c++
    安装vm tool
    mount /dev/cdrom /home/tmp
    cp /home/tmp/VMwareTools-9.6.0-1294478.tar.gz /tmp
    cd /tmp
    tar -zxvf VMwareTools-9.6.0-1294478.tar.gz
    cd vmware-tools-distrib
    ./vmware-install.pl
    按提示操作即可。
     
    有/mnt/hgfs但没有共享文件的解决方法:
    mount -t vmhgfs .host:/  /mnt/hgfs
    Error: cannot mount filesystem: No such device
    这时不能用mount工具挂载,而是得用vmhgfs-fuse,需要安装工具包
    yum install open-vm-tools-devel -y
    有的源的名字并不一定为open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu)
    执行:vmhgfs-fuse .host:/ /mnt/hgfs
     
    此时进入/mnt/hgfs就能看到你设置的共享文件夹了。
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     
  • 相关阅读:
    enum 与 enum class
    git error: unable to rewind rpc post data
    ip地址转换
    大端字节序&小端字节序(网络字节序&主机字节序)
    c++虚析构函数
    引用
    单例模式
    c++ 类静态成员、非静态成员初始化
    算法导论进度帖startedby20131029
    Linux驱动程序接口
  • 原文地址:https://www.cnblogs.com/zejin2008/p/7144514.html
Copyright © 2011-2022 走看看