欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

虚拟机Vmware 使用之Vmware Tools的安装、共享文件夹设置

程序员文章站 2022-07-15 17:07:47
...

参考:
http://blog.csdn.net/iot_ai/article/details/61194517

出问题参考:
https://www.linuxidc.com/Linux/2016-04/130806.htm

Vmware Tools的安装

   首先进入Ubuntu系统,点击VMware菜单的——虚拟机——安装VMware Tools。这时,在Ubuntu下会自动加载Linux版的VMware Tools的安装光盘镜像。你会看到虚拟机的桌面上出现了一个名为VMware Tools的光盘图标,并且被自动打开。其中包括VMwareTools-5.3.3-34685-i386.rpm和VMwareTools- 5.3.3-34685.tar.gz两个文件。(.rpm文件是给Red Hat准备的,我们只需要.tar.gz的那个)。

切换到VMware Tools目录

  cd /media/[username]/VMware Tools

家目录创建tools目录,将VMware Tools目录下的 VMwareTools-6.0.0-55017.tar.gz 拷贝到 tools目录

  执行解压命令,解压缩tar包
  tar vzxf VMwareTools-6.0.0-55017.tar.gz

  切换到vmware-tools-distrib目录
  cd vmware-tools-distrib/

  安装VMware Tools
  ./vmware-install.pl

In which directory do you want to install the binary files? 
[/usr/bin] 

直接 回车
一路回车到底

看到:

In which directory do you want to install the binary files? 
[/usr/bin] yes  

说明安装成功

设置共享文件夹

参考:
http://blog.csdn.net/mingtianwendy/article/details/78393583

虚拟机系统关机的情况下
在 虚拟机->设置 中,设置共享文件夹

开机尝试挂载:

    #mount -t vmhgfs .host:/shareVM /mnt/hgfs  尝试将共享文件夹进行挂载

挂载失败

解决方法

# apt-get install open-vm-tools
# apt-get install open-vm-tools-desktop
# apt-get install open-vm-tools-dkms
# vmhgfs-fuse .host:/shareVM /mnt/hgfs

备注:
不要用mount -t vmhgfs .host:/shared /mnt/hgfs命令,可能它对应其他软件源,直接用vmhgfs-fuse命令完成挂载。

挂载命令:

vmhgfs-fuse .host:/ /mnt/hgfs 
相关标签: 虚拟机