How does Hyper-V copy files to virtual hard disks and attach them to virtual machines?

Source: Internet
Author: User

How does Hyper-V copy files to virtual hard disks and attach them to virtual machines?

For large files, copying through remote desktop is troublesome. Although simple, the speed is too limited and is not recommended.

In my work, I create a new virtual hard disk (VHD) for copying large files, copy the large files to the virtual hard disk, and attach them to the virtual machine.

This saves time and improves reusability. A virtual hard disk can be used by multiple virtual machines (Note: Only one virtual machine can use this file at a time ).

Create virtual hard disk
  • Go to your operating system (such as Windows Server 2008 R2) and open disk management, as shown in:

  • Click disk management, create VHD, and select the storage location and Virtual Disk size:

At this time, you can see that a new disk is added to the disk management interface. Note that the disk has not been initialized yet.

  • Initialize a new disk.

  • Next, create a simple volume

  • Run the wizard

  • After running the wizard, open it and copy the large file. You can see that I have created a 10 Gb hard disk.

  • Finally, detach the virtual hard disk

Attach virtual hard disk to Virtual Machine
  • Select virtual machine, select Settings, attach the new virtual hard disk under the hard drive, and apply the VM.

  • Finally, log on to the virtual machine and check whether the virtual hard disk is attached successfully.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.