目录
背景:
如何解决:
过程:
引用:
后记:
背景:
在最近操作系统的学习中,由于笔者需要虚拟机与主机之间相互交换文件,遂安装VMware tools,根据大佬的博客安装(https://blog.csdn.net/teacher20133/article/details/54601816),结果没想到出现了这样的问题:Segmentation fault (core dumped),由于在国内网站没有看到解决方案,只好找英文资源来解决问题~
以下是错误报告(节选):
The file /sbin/mount.vmhgfs that this program was about to install already
exists. Overwrite? [no]
INPUT: [no] default
The file /usr/bin/vmhgfs-fuse that this program was about to install already
exists. Overwrite? [no]
INPUT: [no] default
Initializing...
Segmentation fault (core dumped)
Making sure services for VMware Tools are stopped.
Stopping VMware Tools services in the virtual machine:
VMware User Agent (vmware-user): done
Unmounting HGFS shares: done
Guest filesystem driver: done
The installation status of vmsync could not be determined.
Skippinginstallation.
The installation status of vmci could not be determined. Skippinginstallation.
The installation status of vsock could not be determined. Skippinginstallation.
The installation status of vmxnet3 could not be determined.
Skippinginstallation.
The installation status of pvscsi could not be determined.
Skippinginstallation.
The installation status of vmmemctl could not be determined.
Skippinginstallation.
(我为什么要重装一遍来再次经历一遍这个问题0.0)
如何解决:
先说我是怎么解决的,再说解决的过程。
问题出在哪其实我不是很清楚(大概是VMware版本的问题),但是解决方案还是有的。
先(这一步不确定是不是必要,可以先试试第二步)
cd vmware-tools-distrib/bin然后运行sudo ./vmware-uninstall-tools.pl(就是到你那个安装文件的根目录运行vmware-uninstall-tools.pl这个文件)
来删除现有的VMware
然后打开终端,输入
sudo apt-get install open-vm-tools open-vm-tools-desktop
就可以了
过程:
首先跟着大佬的博客完成了VMware的安装,结果当时没想到安装完成了(enjoy都出来了)还不能愉快的复制粘贴,遂细读了一下记录(没错,我一路回车拍过来的),然后看到了错误报告的内容。
在国内网站搜索了这个错误,结果一个相关的都没有,没办法,换了几个关键词继续搜索,解决方案没找到,倒是找到了一堆其他的问题。
找来找去改来改去差不多花了1个小时,给虚拟机加内存,删除VMware tools重装,以及一些玄学方法都试过,没有用。灰心绝望之际(上课前10分钟)到bing上搜了一下这个问题,结果有三个完美匹配的回答0.0
从这一刻开始,流向改变了,github里最新也是最短的一条回复吸引了我的注意
前面几行跑不出来,直接尝试最后一个,直接拿下。
个人猜想这个问题应该是由VMware的tools版本与我的Linux版本不匹配导致的,最后解决方法本质上应该是上网下了另一个版本兼容的VMware tools。
引用:
实现虚拟机VMware上Ubuntu与主机windows之间互相复制与粘贴_NStock20133的博客-CSDN博客_ubuntu虚拟机复制粘贴(大佬的博客)
https://communities.vmware.com/t5/VMware-Fusion-Discussions/vmtoolsd-core-dump-when-running-vmware-user/td-p/1368419 (VMware的社区提问)
https://github.com/vmware/open-vm-tools/issues/521
(GitHub上的提问)
后记:
总结主要有三点:
- 部分搜索不要太依赖了,用起来反倒是无关的内容推送得比较多,有能力还是用谷歌搜索吧。
- 问题查找定位能力还有待加强,这次这个问题解决在不必要的地方花了太多时间了~
- 感觉不知道怎么办了,那就去英文网站找找答案吧,我们这里还是积累得不够多,需要我们所有人的努力来推动国内水平发展了~革命尚未成功,少侠仍需努力啊!
感谢各位读到这里,下一篇博客再见吧~ ^_^



