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:
You can walk through the following ways to transfer files between host and virtual in Hyper-V Windows 10.
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.
Step 4: Check the box of Share this folder then click on Permission.
Step 5: Set permission of full control for everyone.
Step 6: Open virtual machine in Hyper-V, right-click on This PC and choose 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.
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.
Step 8: Launch This PC in the virtual machine, you can see a new drive under the Network locations.
Step 1: Create a VHD on the host machine.
1. Right-click on This PC and select Manage;
2. Expand StorageDisk Management then right-click on the Disk Management and select 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.
Step 2: Initialize VHD.
1. Right-click on the VHD and select Initialize VHD;
2. Select the target disk and use MBR partition style as the selected 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;
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.
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;
3. Click on IDE Controller then select Hard Drive in the right panel and tap on Add;
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.
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.
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.
Step 2: Under Local Resources tab, click on More.
Step 3: Choose which drive or resources on this computer that you want to use in your remote session.
Step 4: Open This PC and expand the Redirected drives and folders, you can copy any files between host and virtual as you want.
Related Articles: