1.VM设置
1. 检查虚拟机软件的共享设置(最常见的原因) 无论你的虚拟机系统是 Windows 还是 Linux,都需要在虚拟机软件的设置中手动开启共享功能。 如果你使用的是 VMware:
1. 在虚拟机处于开启或关机状态下,点击顶部菜单栏的 虚拟机 (VM) -> 设置 (Settings)。
2. 切换到 选项 (Options) 选项卡,选择 客户机隔离 (Guest Isolation)。
3. 确保右侧的 “启用拖放 (Enable drag and drop)” 和 “启用复制和粘贴 (Enable copy and paste)” 两个选项都已勾选。   如果你使用的是 VirtualBox:
1. 在虚拟机界面顶部菜单栏,点击 设备 (Devices)。
2. 找到 共享粘贴板 (Shared Clipboard) 和 拖放 (Drag and Drop)。
3. 将它们的状态都修改为 双向 (Bidirectional)。

2.虚拟机设置
 

sudo apt-get update
sudo apt install open-vm-tools-desktop

更多推荐