Copy file cross Hyper-v Server and VMs 实现虚拟机和主机的文件分享


Microsoft Hyper-v与VMware不同, 不能实现主机和虚拟机之间文件的拖拽,但是Hyper-v的好处就在于其余Microsoft之间的兼容性.
虽然不能实现直接的拖拽,但是我们可以利用Windows自带的VHD功能来实现与虚拟机之间的文件拷贝。

首先在你的Hyper-v主机上创建一个VHD虚拟硬盘.
Right Click Computer > Manage
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Go to Disk Management
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Create VHD
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Change the setting as following
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Initialize the disk
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Create a New Simple Volume
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Go back to your Computer, you will see Shared VHD is on yourcomputer
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

你可以将虚拟机所需要的文件放到这个Shared VHD中.然后Detach VHD
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Click OK
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

然后打开Hyper-v Manager
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

确定你的虚拟机是OFF的状态
Right Click > Settings
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Add Hard Drive
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Tap in the Path of that VHD
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Now Start your Virtual Machine 
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

Done
Copy <wbr>file <wbr>cross <wbr>Hyper-v <wbr>Server <wbr>and <wbr>VMs <wbr>实现虚拟机和主机的文件分享

这样就可以 在Hyper-v下实现虚拟机和主机之间的文件Copy

原创文章, 如要转载或其他要求请联系博主 jackykou.akl@gmail.com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值