一、请确认虚拟机是否安装了增强功能“VirtualBox Guest Additions”,如未安装,请点击上方菜单“设备”,在下拉菜单中选择“安装增强功能”,打开虚拟机中的CD驱动器,安装该程序,完成后根据安装程序提示重启虚拟机。
二、请确认是否开启双向拖放,在“设备”菜单中,选择“拖放”,选择“双向”或你需要的选项。
三、请确认主机与虚拟机UAC(用户账户控制)均为启用或均为关闭,(Windows系统默认是启用UAC的)
四、请确认VirtualBox.exe文件属性中是否勾选了“以管理员运行此程序”,默认不勾选,勾选后以管理员身份运行会导致windows主机资源管理器(默认普通用户权限运行的)无法拖动文件至虚拟机。
注:第三点与第四点在官方文档中有写:
4.4.2. Known Limitations
The following limitations are known for drag and drop:
On Windows hosts, dragging and dropping content between UAC-elevated (User Account Control) programs and non-UAC-elevated programs is not allowed. If you start Oracle VM VirtualBox with Administrator privileges then drag and drop will not work with Windows Explorer, which runs with regular user privileges by default.