logo
Windows 10Hyper-V Transfer File from Host to Virtual

Hyper-V Transfer File from Host to Virtual - 3 Super-Simple Ways

By Michael | Last Updated

Once you've created a new virtual machine via Hyper-V Manager, it is unavoidable to transfer files from host to virtual. By default, Hyper-V virtual machine allows users to copy files from the host and paste them into the virtual machine. Sadly, it doesn't cover all the types of files. In this occasion, you can still try the three super-simple ways below to transfer any files.

Video guide on how to transfer file from host to virtual in Hyper-V:

Three Ways to Transfer File from Host to Virtual in Hyper-V Windows 10

You can walk through the following ways to transfer files between host and virtual in Hyper-V Windows 10.

Way 1: Transfer File from Host to Virtual by Map Network Drive

Step 1: Create a new folder on the host and rename as Share.

Step 2: Right-click on the Share folder and select Properties.

Step 3: Under the Sharing tab, click on Advanced Sharing.

advanced sharing

Step 4: Check the box of Share this folder then click on Permission.

share this folder

Step 5: Set permission of full control for everyone.

full control

Step 6: Open virtual machine in Hyper-V, right-click on This PC and choose Map network drive.

map network drive

Step 7: Next to Folder, type \\<Device Name>\<Shared Folder Name> and click on Finish. Or you can also click on Browse to locate to the shared folder in your computer.

specify network folder

Note: To view the computer name, right-click on This PC on the host and select Properties. Under the Details tab, you can see the device name next to the Computer.

view device name

Step 8: Launch This PC in the virtual machine, you can see a new drive under the Network locations.

network location

Way 2: Transfer File from Host to Virtual by Creating a VHD

Step 1: Create a VHD on the host machine.

1. Right-click on This PC and select Manage;

this pc manage

2. Expand StorageDisk Management then right-click on the Disk Management and select Create VHD;

create vhd

3. Under the Location, specify the virtual hard disk location on the machine and allocate memory for it. Tap on OK to start creating VHD.

create and attach virtual hard disk

Step 2: Initialize VHD.

1. Right-click on the VHD and select Initialize VHD;

initialize vhd

2. Select the target disk and use MBR partition style as the selected disk.

initialize disk

3. Right-click on the initialized disk and choose New Simple Volume from the menu. Follow the New Simple Volume Wizard to allocate the disk;

new simple volume

simple volume wizard

4. Go to This PC you can see the new VHD is on your computer. Now you can move the files you want to share to the VHD;

5. Go back to the Computer Management window. Right-click on the new VHD and select Detach VHD.

detach vhd

Step 3: Add VHD to Hyper-V virtual machine.

1. Launch Hyper-V Manager and make sure the target virtual machine is turned off;

2. Right-click on the virtual machine and choose Settings;

vm settings

3. Click on IDE Controller then select Hard Drive in the right panel and tap on Add;

add hardware to vm

4. Once the new hardware has created, tap on Browse to locate to the VHD above. Restart the virtual machine and the VHD on the virtual machine.

specify hardisk location

Note: If you want to attach the VHD in the host, go back to the Computer Management window then right-click on the Disk Management and select Attach as the image below.

attach vhd

Way 3: Transfer File from Host to Virtual via Virtual Machine Connection

Compared to the two ways above, the third way is more simplified that suitable for newbies. If you are not familiar with computer, it's better for you to transfer file from host to virtual via virtual machine connection.

Step 1: Start or restart the virtual machine. When a prompt appears on the screen, expand Show Options.

show options

Step 2: Under Local Resources tab, click on More.

local resources

Step 3: Choose which drive or resources on this computer that you want to use in your remote session.

choose the drive and resources

Step 4: Open This PC and expand the Redirected drives and folders, you can copy any files between host and virtual as you want.

redirected drives and folders

Related Articles: