错误`在'vagrant up --provider = vmware_fusion`期间等待HGFS内核模块加载

jef*_*lab 9 vmware-tools vmware-fusion vagrant

在此期间出现此错误vagrant up --provider=vmware_fusion:

[default] Waiting for HGFS kernel module to load... The HGFS kernel module was not found on the running virtual machine. This must be installed for shared folders to work properly. Please install the VMware tools within the guest and try again. Note that the VMware tools installation will succeed even if HGFS fails to properly install. Carefully read the output of the VMware tools installation to verify the HGFS kernel modules were installed properly.

谷歌搜索,我发现这与问题有关

$ lsmod | grep -i '^vmhgfs' $

但我不清楚解决方案是什么.

我在我的基础vmx中安装了VMWare工具,这是由打包器构建的:

$ vmware- vmware-checkvm vmware-uninstall-tools.pl vmware-config-tools.pl vmware-user vmware-hgfsclient vmware-vmblock-fuse vmware-rpctool vmware-xdg-detect-de vmware-toolbox-cmd vmware-xferlogs

我还在VMWare设置中启用了共享文件夹

任何想法我能做什么?

  • 一些打包器设置启用HGFS?
  • 在基础vmx中要改变什么?

jef*_*lab 9

@mitchellh在Twitter上回答

由于缺少gcc和linux标头,VMWare工具安装在安装过程中无声地失败.我没有看到错误,因为我在运行时sudo ./vmware-install.pl -d没有因故障而停止.

要解决问题安装先决条件:

sudo apt-get install build-essential linux-headers-$(uname -r)
Run Code Online (Sandbox Code Playgroud)

然后重新安装VMWare工具(没有-d标志以确保一切正常)

sudo ./vmware-install.pl
Run Code Online (Sandbox Code Playgroud)