Linux 来宾操作系统:open-vm-tools 已安装但未运行,重新启动 VMWare Tools 变灰

Linux 来宾操作系统:open-vm-tools 已安装但未运行,重新启动 VMWare Tools 变灰

我试图确定我的 VMWare 工具是否正在运行,并且我在网上找到的一些解决方案不太有效。如果我看的话apt list --installed | grep vm我会看到

open-vm-tools-desktop/kali-rolling,now 2:12.0.0-2 amd64 [installed]
open-vm-tools/kali-rolling,now 2:12.0.0-2 amd64 [installed,automatic]

但如果我查看与之一起运行的进程,ps ax | grep vm它看起来并没有在运行

    198 ?        S      0:17 [irq/16-vmwgfx]
 231502 ?        Sl     0:01 /usr/bin/vmtoolsd -n vmusr --blockFd 3
 231523 ?        Sl     0:02 /usr/bin/vmtoolsd
 237915 ?        Ssl    0:04 /usr/bin/vmtoolsd
 237989 ?        Ssl    0:00 vmware-vmblock-fuse /run/vmblock-fuse -o rw,subtype=vmware-vmblock,default_permissions,allow_other,dev,suid
 247062 pts/2    S+     0:00 grep --color=auto vm

我找到了重新启动 VM 工具的解决方案

$ sudo /etc/init.d/vmware-tools start
$ sudo /etc/init.d/vmware-tools stop
$ sudo /etc/init.d/vmware-tools restart

但我的 init.d 中没有任何这些。最奇怪的是,有时复制/粘贴到虚拟机工作中或从虚拟机工作中复制/粘贴出来,然后看似随机地停止,如果有人知道最终错误是什么,那么这就是真正的根本问题。在我获得许可的 VMWare Workstation 15.5 上,“重新安装 VMWare Tools...”也显示为灰色

编辑:另外我尝试了这个答案https://unix.stackexchange.com/a/312820现在我已经删除了 open-vm-tools 但sudo apt-get install open-vm-tools-desktop fuse不起作用,说我已经损坏了软件包:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fuse3 : Breaks: fuse
E: Unable to correct problems, you have held broken packages.

答案1

至于开放虚拟机工具 v 11.0.x 有效脚步是 (无需重新启动来宾操作系统):

systemctl status vmtoolsd # <-- says "inactive"
systemctl start vmtoolsd
systemctl status vmtoolsd # <-- says "running"

答案2

这对我有用。

sudo apt-get install fuse && reboot

相关内容