General situation
1. Installation:
sudo apt-get install open-vm-dkms
2. Mount:
sudo mount-t vmhgfs. host://mnt/hgfs
Install error with above command
E: Unable to locate package open-vm-dkms
Error:cannot mount Filesystem:no such device
Swap with the following
Installation
sudo apt-get Install open-vm-tools-dkms
sudo vmhgfs-fuse. host://mnt/hgfs
The following is a reprint of the other solutions
VMware Linux shared folder virtual machine no shared file workaround
After recovering the virtual machine Ubuntu, first, click on the virtual machine-install VMware Tools, then we will find the CD icon of VMware Tools on the Ubuntu system desktop.
By double clicking on the file icon, you will find two files, Manifest.txt and vmwaretools-8.4.5-324285.tar.gz, which are OK, stating that our VMware Tools download was successful.
We will copy the vmwaretools-8.4.5-324285.tar.gz to/tmp
Cd/tmp
Unzip the tar zxvf vmwaretools-8.4.5-324285.tar.gz.
Next, enter the CD Vmware-tools-distrib (into the corresponding folder after decompression), then click Enter,
Next, enter sudo./vmware-install.pl (Install the software), determine the post-enter, you will be prompted to enter the password (the password you set when you installed Ubuntu)
Then there will be a constant hint, but you can press ENTER when you see the prompt, and the end will appear
Enjoy,
--the VMware Team
This is a section of Luo, stating that our VMware Tools OK.
Second step, shared folder
First, after clicking on the virtual machine---settings, the virtual machine settings will appear, select "Options", click on the shared folder----always enable---add, and then proceed in sequence to OK.
At this point you create the share folder below the local F drive, which is the folder shared with the virtual machine.
Here is OK, you go into the virtual machine, point application-Accessories-terminal, after entering the Linux operator interface,
then enter Cd/mnt/hgfs
Then enter the fate of this LS, you will find the directory below the directory share, indicating that the sharing was successful.
If the/mnt/hgfs under no directory situation:
VMware8 Virtual machine installation Ubuntu 11.10 using Share folders shared directory
Power off the virtual machine (cannot pause), set the Share folders directory, and restart the virtual machine.
At this point the/mnt/hgfs directory is still empty.
Should sudo apt-get install open-vm-dkms, go all the way by pressing the ENTER key.
Then sudo mount-t vmhgfs. host://mnt/hgfs, so/mnt/hgfs has a shared directory with Windows.
To automatically mount the shared directory each time the boot is mounted, add a line at the end of/etc/init.d/open-vm-tools:
sudo mount-t vmhgfs. host://mnt/hgfs (host:/ at 2 spaces)
Ubuntu system virtual machine under Shared folders