将VMWare升级到新版本后,Homestead不再能够找到共享文件夹。Alos,vagrant up
从Homestead目录运行时,在启动过程中看到以下错误:
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.
我该如何解决?
将VMWare升级到新版本时,还需要在Homestead虚拟机上安装新版本的VMWare工具,以匹配新版本的VMWare。但是,这比预期的要复杂得多,因为Homestead不包括头文件。您可以按照以下说明进行修复:
ssh [email protected] -p 2222
sudo apt-get install -y build-essential linux-headers-$(uname -r) sudo vmware-config-tools.pl
这将安装构建VMWare工具所需的内核头文件,并在Homestead VM上运行vmware的配置设置。
您将回答许多问题-仅使用默认值,有关VMware自动内核模块的默认值除外。
对这个问题回答是,您就不会再有这个问题了(或者至少在替换Homestead盒之前,您将不会再有这个问题)。
之后,返回到您的主机并运行: vagrant halt vagrant up
一切将按预期工作。您将不再看到有关HGFS的错误,并且共享文件夹将可用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句