How to copy files from server to virtual machine in Windows 2012/2016

Method 1: Use the Virtual Hard disk.

1. Create the Virtual Hard disk in host.

    (1) Start/ServerManager/Tools/Computer Management -> Storage/Disk Managerment.(or Win + x)

    (2) Create a new Virtual Hard Disk.

           1) Select Unallocated Disk, Action/Create VHD. Save the VHD file (myvhd.vhd) and set the size of VHD. Later we'll use this VHD file in virtual machine.

           2)  Initialize Disk into GPT(GUID Partition Table). (Not MBR, master boot record)

           3) Select New disk, right click and "New Simple Volume...)

                       You can choöse "Assign the following driver letter: E" or mount in the following empty NTFS folder (Browse...).

               Now we use driver letter E.

            4) Now we can copy files to this new Hard Driver "E".

      (3) Detach VHD of Driver "E". Driver E will disappear in Disk Management panel.

 

2.Mount the Virtual Hard Disk in virtual machine.

      In the Hyper-Visor Manager, 

      Actions/vm1/Setting/IDE Controller 0/Add Hard Drive/Virtual hard disk. 

      Browse... Select the "myvhd.vhd" , apply and Ok. Then we can use the Virtual Disk in virtual machine.

 

3.copy files to host from virtual machine.

        Copy files to drive myvhd.vhd, then shut down the virtual machine. In the disk management of host, Action/Attach VHD, then we can see the drive E again in Host.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值