1. 安装破解vmware 略过
  2. 设置CD/DVD为自动检测(如下图)
  3. image.png
  4. 自定义共享文件(如下图)
  5. image.png
  6. ubuntu server中 挂载安装tools
    # 创建media目录
   19  mkdir -p /media/cdrom
    # 讲cd 挂载到上面目录
   20  mount /dev/cdrom /media/cdrom
   21  cd /media/cdrom/
   22  ls
    # 复制
   23  cp VMwareTools-10.3.2-9925305.tar.gz  /home/
   24  cd /home/
   25  tar zxvf VMwareTools-10.3.2-9925305.tar.gz
   26  cd vmware-tools-distrib/
    # -d代表默认安装
   27  ./vmware-install.pl -d
   
         ...
        Creating a new initrd boot image for the kernel.
        update-initramfs: Generating /boot/initrd.img-4.15.0-118-generic
        The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this
        running kernel completed successfully.

        Enjoy,

        --the VMware team

    # 出现上面enjoy代表成功
   34  cd vmware-tools-distrib/
   35  ls
   36  ./bin/vmware-config-tools.pl
   37  ls
   38  cd installer/
   39  ls
   40  ./services.sh
   41  ./services.sh  start 
  1. 执行应该看到和上面第二个图的文件夹回显
 root@tb:/home/vmware-tools-distrib/bin# /usr/bin/vmware-hgfsclient
    DiProject
    MacUbuntuBridge

7.经过一番路径(暴力)查找 ,就可以顺利的共享文件了

   68  find / -name  MacUbuntuBridge
   69  cd /mnt/hgfs/MacUbuntuBridge/
  1. 宿主机和虚拟机对比。ok
root@tb:/mnt/hgfs/MacUbuntuBridge# ls
111.md  222.md  xiaojudeng.thrift
root@tb:/mnt/hgfs/MacUbuntuBridge#

image.png


牙小木木
1.5k 声望80 粉丝

iamtb.cn