虽然不能实现直接的拖拽,但是我们可以利用Windows自带的VHD功能来实现与虚拟机之间的文件拷贝。
首先在你的Hyper-v主机上创建一个VHD虚拟硬盘.
Right Click Computer > Manage
Go to Disk Management
Create VHD
Change the setting as following
Initialize the disk
Create a New Simple Volume
Go back to your Computer, you will see Shared VHD is on yourcomputer
你可以将虚拟机所需要的文件放到这个Shared VHD中.然后Detach VHD
Click OK
然后打开Hyper-v Manager
确定你的虚拟机是OFF的状态
Right Click > Settings
Add Hard Drive
Tap in the Path of that VHD
Done
这样就可以 在Hyper-v下实现虚拟机和主机之间的文件Copy
原创文章, 如要转载或其他要求请联系博主 jackykou.akl@gmail.com