Shared folders and useful for file exchanges between different machines. This article will take you through more information about sharing files, folders, and drives between Hyper-V virtual machines and hosts. The following methods can be used to copy and paste files from the host OS to the guest OS and vice versa.
- Method 1: Share drives using Virtual Machine Connection
- Method 2: Share files, folders, and drives over the network
Share drives from the local PC using Virtual Machine Connection
Enhanced session mode allows files to be transferred between and from the virtual machine through clipboard copy and paste operations, it also uses a computer’s local resources on a virtual machine. In order to successfully share files, the Hyper-V host must have Enhanced session mode policy and Enhanced session mode settings turned on.
Start Hyper-V Manager, right-click on the Hyper-V host and select “Hyper-V Settings“.
Make sure the checkbox is checked in enhanced session mode and click OK.
To share devices with your virtual machine or to change those default settings:
Start a virtual machine, chick Show more options in the popup windows.
View local resources. To share other devices, select the “More…” menu.
From there you can select the devices you’d like to share with the virtual machine. The Removable drive is especially helpful for file sharing.
Select Save my settings for future connections to this virtual machine.
Click Connect. The drive sharing is now complete and you will see the shared drive in the This PC > Network locations section of Windows Explorer after you sigh into VM with enhanced session mode. Now you should be able to copy the files from the physical machine and paste them into the virtual machine and vice versa.
How can I check if you are running in enhanced session mode
You can check your connection type using the Enhanced Session Mode icon at the top of the Virtual Machine Connect tool (VMConnect). This button also allows you to switch between basic and enhanced session modes.
Share files and folders over the network in Windows Explorer
In Windows OS, files and folders can be shared on a network, allowing desktops and laptops to access the information without needing physical access to the computer.
For example, a user might share a whole folder of documents or videos, and anyone else with access could open those files, edit, and save them—possibly even delete them if the permissions allow it.
Open File Explorer, select a folder, select the Share tab. Then, in the Share with section, select Specific people.
Select the users or the groups that you want to share with. Here we choose Everyone, then click Add.
Configure the permission level. Windows computers offer two basic permission levels for sharing files:
- Read: Recipients can open the file and view its contents but cannot change the file without making a separate copy.
- Read/Write: Recipients can both view and change the file contents and save (overwrite) the file at its current location.
Here we choose Read/Write. After that, click the Share button.
Next, click Done. Your folder is shared.
Note: To share filing over the network, you need to Turn on network discovery and file sharing for your host and the guest OS. You can turn them on from the Advanced Sharing Settings page or Network window.
In the virtual machine, open File Explorer, go to Network and you will see an error message (“Network discovery is turned off….”), you’ll need to turn on Network discovery to see devices on the network that are sharing files. To turn it on, click the Network discovery is turned off…, then select Turn on network discovery and file sharing.
The drive sharing is now complete and you can see the shared drive in the This PC > Network locations section of Windows Explorer. Now you should easily transfer files between the two systems.
>> Source Link