A shared folder enables you to pass files and between your host computer (the “real” computer) and the Guest system (the virtual machine).
One of the strengths of virtual machines is that they’re completely isolated from the host system. They operate inside what could be thought of as a walled garden. In effect, nothing can pass between the guest and the host.
On our home computers that’s one of the attractions of using a VM. Whatever you do to your virtual machine, can’t propagate throughout your system.
However there will be times when you actually want to pass files or folders between the host and guest systems. And vice versa. That can be done be either using a “shared folder” or attaching a removable device (a USB drive).
In VMware player, that’s done by setting up a shared folder. The shared folder (and its contents) can be accessed by both the virtual machine and the host computer.
How To Enable A Shared Folder In VMware Player.
On the host computer (your real computer), decide which folder you’d like to use as the shared folder. It can be just about any of your existing folders (Documents, Pictures, Downloads etc), or you can create a specific folder to use.
It’s your choice, but I prefer to use a dedicated folder rather than a standard Windows folder.
Open VMware Player and then select (single left click) the virtual machine that you want to add a shared folder to.
Then click “Edit virtual machine settings” in the lower right hand corner of the screen.
Why Create A Dedicated Folder?
Virtual machines are often used where the possibility of some sort of malware infection can happen. To stop it spreading out from the VM to your host system, delete the shared folder.
Virtual Machine Settings Page.
Click the Options tab. Then select the Shared Folders (disabled).
Enable Folder Sharing In VMware Player.
In VMware Player, a shared folder can be either disabled or always enabled. The option to have a folder share until the next restart of the virtual machine is greyed out and unavailable.
In the right hand panel, select the “Always enabled” option.
If your virtual machine is a Windows system, then select “Map as a network drive in Windows guests”. This option isn’t available if your using Linux as your VM.
Finally click the Add button.
The VMware Player Add Shared Folder Wizard.
The VMware Add Shared Folder wizard will open. You need to navigate to and select the folder on your host computer that you want to share with the virtual machine.
1
2
3
4
Almost Done.
You’re almost done now. Select “Enable this share” and then click the Finish button.
That’ll return you to the VMware Player Virtual Machine Settings page. You should be able to see your shared folder in the panel on the right hand side.. Click the OK button to finish.
How To Access The Shared Folder In VMware Player VM.
On a Windows virtual machine you’ll be able to access the shared folder from File Explorer.
Open File Explorer and then click This PC in the navigation panel.
You can use the shared folder just as would any other folder on your system.
Any files of folders placed within it will be available to both the guest and host system.
You Just Created A Link Between Your VM And Your Host Computer.
Whilst that works great for when you want to move data between the guest and the host, it’s also a security risk. Just as you can easily pass documents and pictures etc between the two systems, so too can malware spread.
Ransomware, viruses and just about any other type of malware will seek out network connections and spread through them.
How To Attach A Removable Device In VMware Player.
As well as using a shared folder to pass data to and from a virtual machine, you can also use USB drives or any other external device.
An external device, such as a USB drive, can be connected to the host or the guest system, but not to both at the same time.
With your virtual machine running, whenever you attach a USB drive to your PC, VMware Player should detect it and ask if you want it attached to the Host Or Guest system.
You can select to connect it to either the Host or the virtual machine.
Then click the OK button.
Connecting And Disconnecting Removable Devices.
When you’re using your virtual machine, you’ll occasionally want to either connect or disconnect an external device to or from the VM. In VMware Player that’s quite easy to do.
Click the Player button in the top left of the screen. Then hover your mouse pointer over Removable Devices.
The flyout menu will show you which devices are connected (ticked) and which are disconnected (unticked).
Hover your mouse over the device you want and on the flyout click either connect or disconnect.
Removable Devices.
If it happens to you, then try a different USB port on your PC. In particular, try a USB 2 port. Again I find that it mostly happens when attaching a USB 3 device through a USB 3 port. There seems to be something wrong in how VMware Player Installs the USB 3 driver.
Summary.
Enabling the shared folder option in VMware Player works great. You can copy and paste files and folders into the folder and then they’re accessible by both the guest and host systems.
However it does open up the possibility of some sort of malware infection spreading to your host system. Whether that’s going to be a concern for you really depends on what it is you’re using the VM for.
Adding an external USB device works fine providing either the device or the port (or both) are USB 2. When using both as USB 3 it gets a little clunky. That’s something that should be fixed in future updates to the Player.