我可以在 Virtuelle Maschine (Windows 7) 和本地 Windows 7 之间复制和粘贴文本和文件。但我无法复制剪贴板中的内容 - 例如在两个显示器之间复制相同的程序(在 Virtuale Maschine 和第二个显示器中显示)在本地 Windows 中显示)。
我没有选项:虚拟机 > 选项选项卡 > 访客隔离 > 启用复制和粘贴
在 VMWare Workstation 中可以运行,但在 VMWare Player 中则不行。 如何解决?
编辑: 这是我现在修复它的例程:
$ apt-get autoremove open-vm-tools
$ apt-get install open-vm-tools
$ apt --fix-broken install
关闭虚拟机。
echo off | clip
启动虚拟机。
希望也适合您。
截至 2023 年 8 月:
所以
sudo apt-get install open-vm-tools-desktop
就是您所需要的。
还需要 open-vm-tools
,但它是 open-vm-tools-desktop
的依赖项,因此会隐式安装。
vmtoolsd
):就我而言,我运行了两个
vmtoolsd
实例。
$ ps -eaf | grep vmtoolsd
UID PID PPID C STIME TTY TIME CMD
root 15281 1 0 Aug10 ? 00:03:58 /usr/bin/vmtoolsd
kash 15545 978 0 Aug10 ? 00:03:44 /usr/bin/vmtoolsd -n vmusr --blockFd 3 --uinputFd 4
$
sudo systemctl restart open-vm-tools
(或 sudo service open-vm-tools restart
)重新启动第一个守护进程(作为 root
运行)。这没有任何作用(复制粘贴仍然不起作用)。kash
:$ my_uid=`id -u`
$ kill -9 $(ps -u $my_uid | grep vmtoolsd | awk '{print $1}')
$ /usr/bin/vmtoolsd -n vmusr --blockFd 3 --uinputFd 4 -b /var/run/user/$my_uid/vmtoolsd.pid
从被终止的原始进程中获取的 fd 值。
我的环境:
$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$
如果您有 VMware Workstation Pro,请确保您没有在设置中禁用它:
VM > Options tab > Guest Isolation > Enable the Copy and paste