To enable shared folders in VMware Workstation, open the virtual machine settings, go to the Options tab, select Shared Folders, choose “Always enabled,” and add a host folder path. This allows the guest operating system to access files from the host machine as a network share, making file transfer between the two environments seamless.
What Are Shared Folders in VMware Workstation?
Shared folders are a VMware feature that lets a virtual machine (guest) access directories stored on the physical host computer. Instead of copying files back and forth or setting up a separate network share, VMware Workstation creates a special mount point inside the guest OS that points directly to a folder on the host. This works for Windows, Linux, and macOS hosts and guests, although the exact mount location varies by guest OS.
The feature is especially useful for developers, testers, and anyone who needs to move code, documents, or media between the host and VM without leaving the VM’s desktop. It is not the same as drag-and-drop or copy-paste (which use VMware Tools), and it is not the same as a network share over your physical LAN—shared folders are a private, host-to-guest link.
Prerequisites and Requirements
Before you enable shared folders, make sure the following are in place:
- VMware Workstation Pro or Player – Shared folders are supported in both, but the menu path may differ slightly. Workstation Pro has full options; Player also supports shared folders if the VM was created with the feature available.
- VMware Tools installed in the guest – This is mandatory. Without VMware Tools, the shared folder driver is not present, and the folder will not appear. Install it from the VM menu: VM > Install VMware Tools.
- Guest OS support – Windows, Linux, and macOS guests can use shared folders, but the guest must be running (not suspended) when you enable the feature.
- Sufficient host disk space – The shared folder is not a copy; it uses the host’s storage directly, so the host must have enough free space for whatever you plan to access.
Step-by-Step: Enable Shared Folders in VMware Workstation
The process is straightforward, but the exact menu names matter. Follow these steps on a current version of VMware Workstation (15.x, 16.x, or 17.x):
- Shut down the virtual machine (or at least suspend it – but a full shutdown is safer for changes to take effect).
- Open the VM’s settings: select the VM in the Library, then click Edit virtual machine settings (or right-click > Settings).
- Go to the Options tab (not the Hardware tab).
- In the left panel, click Shared Folders.
- Select Always enabled (or “Enabled until next power-off or suspend” if you only need it temporarily).
- Click Add to open the Add Shared Folder Wizard.
- Enter a name for the share (this is what the guest will see).
- Browse to the host folder you want to share.
- Check Enable this share (it is checked by default).
- Optionally, check Read-only if the guest should not modify files.
- Finish the wizard, then click OK to save the VM settings.
- Power on the VM. The shared folder should appear automatically.
If the folder does not show up immediately, restart the guest OS or run vmware-hgfsclient (Linux) to list available shares.
Where Do Shared Folders Appear in the Guest?
The mount point depends on the guest operating system:
- Windows guests: Shared folders appear as network drives under This PC or My Computer, typically labeled
\vmware-host\Shared Folders\<share name>. In older Windows versions, they might be mapped to a drive letter likeZ:automatically. - Linux guests: They are usually mounted under
/mnt/hgfs/<share name>. If the directory is empty, you may need to mount manually:sudo vmhgfs-fuse .host:/<share name> /mnt/hgfs(requires open-vm-tools or VMware Tools). - macOS guests: Shared folders appear on the desktop or in Finder under the share name, similar to a network volume.
Note that the share is read/write by default; you can change this per-share in the VM settings.
Common Problems and Troubleshooting
Shared folders sometimes fail to work. Here are the most frequent issues and how to resolve them:
- Shared folder is greyed out in settings – This usually means VMware Tools is not installed or is outdated. Install or update VMware Tools, then reboot the guest.
- Folder does not appear in the guest – Check if the share is enabled in VM settings. On Linux, try remounting:
sudo mount -t vmhgfs .host:/ /mnt/hgfs. On Windows, check if the “VMware Shared Folders” service is running (services.msc). - “Cannot find /mnt/hgfs” on Linux – The directory may not exist. Create it with
sudo mkdir -p /mnt/hgfs, then mount. - Permission denied when accessing files – Ensure the host folder’s NTFS or Unix permissions allow the user account running the VM to read/write. On Windows hosts, avoid sharing system folders like
C:\Windows. - Changes are not visible immediately – The guest caches directory listings. Refresh the folder (F5) or restart the guest to see updates.
- Shared folders stop working after a VMware Workstation update – Reinstall VMware Tools in the guest, as the kernel modules may need to be rebuilt.
Shared Folders vs. Other File Transfer Methods
Shared folders are not the only way to move files between host and guest. Here’s how they compare:
- Drag-and-drop / copy-paste – Quick for small files, but it can be flaky with large files or when the guest is running full screen. Shared folders are more reliable for bulk transfers.
- Network share (SMB) – You can set up a regular Windows share on the host and access it from the guest via IP. This works even without VMware Tools, but it requires network configuration and user credentials.
- USB pass-through – Connect a USB drive to the host and attach it to the VM. Good for portable drives, but not for continuous access to a host folder.
- ISO images – Mount an ISO of a folder or disk image. Good for read-only distribution, but not for two-way editing.
Shared folders are generally the best choice for ongoing, bidirectional access to a host directory, especially for development projects where you want to edit code on the host and run it in the VM.
Security and Performance Considerations
Shared folders are convenient, but they have trade-offs:
- Security: Any process inside the guest can read/write the shared folder (unless read-only). If the VM is compromised, the host folder is exposed. Only share folders that you need, and avoid sharing entire drives.
- Performance: Accessing files through a shared folder is slower than native disk access because of the virtualization layer. For heavy I/O (databases, large builds), consider placing the data on a virtual disk instead.
- Compatibility: Some guest OSes (especially older Linux distributions) may have issues with the vmhgfs driver. Using open-vm-tools instead of the VMware Tools package often helps.
- Backup: Files in shared folders are not part of the VM’s virtual disk, so snapshots do not include them. Back up the host folder separately.
Frequently Asked Questions
Why is the Shared Folders option greyed out in VMware Workstation?
This happens when VMware Tools is not installed or is not running in the guest. Install VMware Tools from the VM menu, reboot the guest, and the option should become active. If it still greyed out, check that the VM is powered on (some settings require the VM to be on) and that you are using a recent version of Workstation.
Can I share a folder on a Linux host with a Windows guest?
Yes. The host OS does not matter; the shared folder feature works across all combinations. Just ensure the host folder is readable by the user running VMware, and that the guest has VMware Tools installed.
How do I make a shared folder read-only?
In the VM settings under Shared Folders, select the share and click Properties. Check the “Read-only” box. This prevents the guest from modifying files, but note that the guest can still read all files if the host permissions allow it.
Can I share a folder with a VM that is suspended?
No. The shared folder is active only when the VM is powered on. If you suspend the VM, the share is disconnected. Changes made on the host while the VM is suspended are visible when you resume, but the guest will not see them until it refreshes.
Why is my shared folder empty on Linux?
This usually means the mount point is wrong or the share is not mounted. Run vmware-hgfsclient to list shares, then mount with sudo vmhgfs-fuse .host:/<share> /mnt/hgfs. If the folder is still empty, check that the host path is correct and that you have permission to read it.
Does enabling shared folders slow down my VM?
There is a small performance overhead when reading/writing through the shared folder, but it is negligible for typical office or development tasks. For heavy I/O, use a virtual disk instead. The feature itself does not consume significant CPU or memory when idle.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Email Security: Does Turning On Protect Against Hackers?
- Smarter Way to Stop Weekend-Only Streaming Payments
- Quirky History of Math: 10 Strange Facts
- Is Goodreads Bad at Suggesting Books?
- Apple Pencil Pro Reveal: Features & Specs
- Classic Movies I Wish I Had Watched Sooner