状:主要表现在Win7中用VM11安装的Ubuntu14.04中,安装完自带的VMware Tools之后,/mnt/hgfs 中没有前面已经设置好的共享文件夹。
仔细查看了安装过程,发现在编译vmhgfs/module.o的时候出现了错误。国内网站上也很少有关于这类问题的说明,查到一篇文章[链接]有说明在win8下使用vmware11和ubuntu14.10的,也没能解决我的问题。
具体的解决方法是参考一篇英语网文[链接],步骤记录如下:
安装 open-vm-tools
这可能是在客户机里实现VMware Tools功能的最简单的办法。
<code class="hljs lasso has-numbering">apt<span class="hljs-attribute">-get</span> install open<span class="hljs-attribute">-vm</span><span class="hljs-attribute">-toolbox</span></code><ul class="pre-numbering"><li>1</li></ul>
下面的是另外一种解决方法,经验证有效,且疗效较好。
安装VMware Tools
通过uname -r发现我当前的内核版本是3.13.0-52,使用的vmware tool是版本是9.9.2-2496486。在编译vmware tools过程中会出现一些警告和错误,下面需要对 vmware tools做一些打补丁的操作以完成安装。
<code class="hljs lasso has-numbering">cd ~ apt<span class="hljs-attribute">-get</span> install git gcc make linux<span class="hljs-attribute">-headers</span><span class="hljs-subst">-</span>$(uname <span class="hljs-attribute">-r</span>) git clone https:<span class="hljs-comment">//github.com/rasa/vmware-tools-patches.git</span> cd vmware<span class="hljs-attribute">-tools</span><span class="hljs-attribute">-patches</span></code><ul class="pre-numbering"><li>1</li><li>2</li><li>3</li><li>4</li></ul>
接下来,通过VMware的“虚拟机”菜单中的安装VMware Tools子菜单挂载VMware Tools镜像,挂载完成后把VMware Tools光盘镜像中的VMwareTools-9.9.2-2496486.tar.gz拷贝到之前的下载路径中,然后运行脚本:
<code class="hljs lasso has-numbering">cd ~/vmware<span class="hljs-attribute">-tools</span><span class="hljs-attribute">-patches</span> cp /media/cdrom/VMwareTools<span class="hljs-subst">-</span><span class="hljs-number">9.9</span><span class="hljs-number">.0</span><span class="hljs-subst">-</span><span class="hljs-number">2304977.</span>tar<span class="hljs-built_in">.</span>gz downloads<span class="hljs-subst">/</span> <span class="hljs-built_in">.</span>/untar<span class="hljs-attribute">-and</span><span class="hljs-attribute">-patch</span><span class="hljs-attribute">-and</span><span class="hljs-attribute">-compile</span><span class="hljs-built_in">.</span>sh</code><ul class="pre-numbering"><li>1</li><li>2</li><li>3</li></ul>
然后……没然后了,/mnt/hgfs/中已经出现了我希望看到的共享文件夹