Mounting VMware Shared Folder in Linux Guest (VMware Workstation 15)
In this article, we will discuss the process of mounting a VMware shared folder in a Linux guest operating system using VMware Workstation 15. VMware shared folders allow users to share files between the host and guest operating systems, making it easy to transfer data between the two systems.
Prerequisites
Before we begin, make sure you have the following:
- A host operating system with VMware Workstation 15 installed.
- A guest operating system running a Linux distribution.
Creating a Shared Folder on the Host
To create a shared folder on the host operating system, follow these steps:
- Open VMware Workstation and select the virtual machine you want to configure.
- Click on "Edit virtual machine settings" and then select "Options".
- Expand "Shared Folders" and click "Add".
- Enter a name for the shared folder and select a folder on the host operating system to share.
- Check "Always enabled" and click "OK".
Mounting the Shared Folder in the Guest
To mount the shared folder in the guest operating system, follow these steps:
- Start the virtual machine and log in to the Linux guest operating system.
- Create a mount point for the shared folder, for example:
sudo mkdir /mnt/hfgsAutomatically Mounting the Shared Folder
To automatically mount the shared folder at startup, you can add an entry to the /etc/fstab file. Follow these steps:
- Open the /etc/fstab file in a text editor, for example:
sudo nano /etc/fstabAdd the following line to the file:
vmhgfs-fuse .host:/<shared-folder-name> /mnt/hfgs fuse defaults,allow_other 0 0Replace <shared-folder-name> with the name of the shared folder you created earlier.
References
- VMware Workstation Pro Documentation: Shared Folders
- How to Use VMware Shared Folders with Ubuntu
- Access Shared Folders in VMware Virtual Machines
This article has provided a detailed explanation of how to mount a VMware shared folder in a Linux guest operating system using VMware Workstation 15. By following the steps outlined in this article, you should be able to easily share files between your host and guest operating systems.
Note: The default mount path for shared folders in Linux guests is /mnt/hgfs. However, in VMware Workstation 15, the default mount path has been changed to /mnt/vfgs. In this article, we have used the new default mount path of /mnt/hfgs.