keepcalculator

06 Numbers and Powers

VMware Shared Folder: Setup and Use Guide

Card No. 06·61837 · Updated · Standard formula, shown below

VMware shared folders let you access files on your host computer from inside a guest virtual machine. You configure the shared folder in the VM’s settings, and it appears as a network drive in the guest OS. This guide explains how to set one up, common issues, and alternatives.

What Are VMware Shared Folders?

VMware Workstation (for Windows/Linux) and VMware Fusion (for macOS) include a feature called shared folders. It creates a direct bridge between a directory on your host machine and a folder visible inside the guest operating system. Unlike dragging and dropping files, shared folders maintain a live connection—changes made in one place appear in the other almost instantly.

The feature works with all major guest operating systems: Windows, Linux, and macOS (when running macOS as a guest on Fusion). It’s especially useful for developers who need to edit code on the host but run it in a VM, or for moving large files between environments without copying them.

How Shared Folders Work

Shared folders rely on VMware Tools (Workstation) or VMware Fusion Tools (Fusion) being installed inside the guest. These tools include a kernel module (on Linux) or a driver (on Windows) that intercepts file system requests and forwards them to the host.

When you enable a shared folder, VMware runs a small service on the host that exposes the chosen directory. The guest sees it as a standard folder, typically mounted at /mnt/hgfs on Linux or as a network drive like Z:\ on Windows. The underlying protocol is not SMB or NFS—it’s a proprietary VMware channel that is faster and more secure than network sharing for this purpose.

Setting Up a Shared Folder in VMware Workstation

  1. Power off the virtual machine (you cannot add a shared folder while it is running).
  2. Open VM > Settings.
  3. Go to the Options tab and select Shared Folders.
  4. Choose Always enabled or Enabled until next power-off or suspend.
  5. Click Add and browse to the host folder you want to share.
  6. Give the share a name (this is how it appears in the guest).
  7. Choose whether to enable Read-only (if you don’t want the guest to modify files).
  8. Finish the wizard and power on the VM.

On a Linux guest, the folder appears at /mnt/hgfs/<sharename>. If it doesn’t appear automatically, you may need to run sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other. On Windows guests, look under This PC for a drive labeled VMware Shared Folders.

Setting Up in VMware Fusion (macOS Host)

  1. Shut down the VM.
  2. Go to VM > Settings (or press Cmd+,).
  3. Select Sharing.
  4. Check Enable Shared Folders.
  5. Click the + button to add a host folder.
  6. Choose whether to make it read-only.
  7. Power on the VM; the shared folder appears on the desktop or under /Volumes in macOS guests, or as a mapped drive in Windows guests.

Common Problems and Fixes

Shared folder not visible in Linux guest: This is almost always because VMware Tools is not installed or the vmhgfs-fuse driver isn’t loaded. Reinstall VMware Tools, then run sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other.

Shared folder shows as empty: Check the host path—if you moved the folder, the share breaks. Also verify that the guest has permission to read the host directory (on Linux hosts, the folder must be world-readable or owned by the user running VMware).

Permissions errors when writing: On Linux hosts, the guest user must have write permission on the host folder. On Windows hosts, the account running VMware needs write access. If you’re using a Windows guest with a different user account, you may need to enter host credentials.

Shared folder works but is slow for large files: The feature is not designed for massive database files or disk images. Use a normal network share (SMB) or copy files manually for very large transfers.

Shared Folders vs. Drag-and-Drop vs. Network Shares

VMware also offers drag-and-drop and copy-paste between host and guest, but those are one-time copies, not live links. Shared folders are better when you need continuous access.

Compared to setting up SMB (Windows file sharing) or NFS (Linux), VMware shared folders are simpler and don’t require network configuration. However, they only work while the VM is running and with VMware Tools installed. A network share works with any VM software and even physical machines, but requires IP addressing and firewall rules.

For most users, shared folders are the right choice because they are automatic and secure (traffic stays within the host). For multi-VM setups or production environments, a dedicated network share is more robust.

Security and Safety Considerations

Shared folders expose host data to the guest. If the guest is infected with malware, that malware can read and modify files in the shared folder. For this reason:

  • Only share the specific folder you need, not your entire disk.
  • Use Read-only mode when the guest only needs to read files.
  • Do not share sensitive folders (like C:\Users\YourName) with untrusted VMs.
  • Disable shared folders when you don’t need them, especially for VMs that handle untrusted files.

Also note that shared folders are not a backup mechanism. If you delete a file in the guest, it is deleted on the host too. Always keep backups of important data.

Alternatives to VMware Shared Folders

  • Drag-and-drop / copy-paste: Good for quick, one-off transfers. No live link.
  • USB passthrough: Connect a USB drive to the guest, copy files, then disconnect. Works for large files but requires manual steps.
  • Network share (SMB/NFS): Set up a shared folder on the host’s OS and access it from the guest via IP. Works without VMware Tools, but requires network setup.
  • Cloud storage (Dropbox, Google Drive): Sync files to both host and guest via internet. Useful for remote VMs, but slower and dependent on connectivity.
  • Version control (Git): For code, using a Git repository is often better than shared folders because it handles conflicts and history.

Frequently Asked Questions

Why is my VMware shared folder not showing up in Windows guest? Usually because VMware Tools is not installed or the feature is disabled in the VM settings. Reinstall VMware Tools and ensure the shared folder is enabled in the VM’s Options tab.

Can I share a folder while the VM is running? No, you must power off the VM to add or remove a shared folder in Workstation/Fusion. However, you can change the host path of an existing share while the VM is running in some versions—but it’s safer to power off.

How do I remove a shared folder? Power off the VM, go to Settings > Shared Folders, select the folder, and click Remove. The guest will no longer see it.

Is there a file size limit for shared folders? No specific limit, but very large files (over 4GB) can cause performance issues on older versions. For files over 10GB, consider a network share or copying directly.

Do shared folders work with snapshots? Yes, but the shared folder is not part of the snapshot. If you revert to an earlier snapshot, the shared folder configuration reverts too, but the files on the host remain unchanged.

Can I share a folder with multiple VMs at once? Yes, you can enable the same host folder for several VMs, but be aware of concurrent access—if two VMs write to the same file simultaneously, you may get corruption. Use separate folders for each VM if possible.

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

The whole Numbers and Powers drawer →