Vmware cannot share files

Source: Internet
Author: User
Vmware cannot share files-general Linux technology-Linux technology and application information. For more information, see. After using VMware workstation 6.5 virtual ubuntu in XP, even if VMware Tools is installed and a shared folder is set, the shared directory still cannot be accessed although/mnt/hgfs/is displayed.
1. Two linux instances are installed on the vm, and the first one is RHEL5. Everything works properly.
2. I have uninstalled/mnt before installing the vm.
3. VMware Configuration
VMware-> VM-> Settings-> Hardware. Select "Use physical drive" in the Connection item"
VMware-> VM-> Settings-> Options-> Share folder, click add-> "Next ",
Enter your favorite Name in the Name column (this Name will be a sub-directory Name under/mnt/hgfs ),
Select the Host file Folder to be shared in the Host Folder column.
4. One method provided on the Internet is not available after installation
Problem: An error occurred while compiling the vmhgfs module when installing vmware tools:

/Tmp/vmware-config0/vmhgfs-only/filesystem. c: In function 'hgfsinitfilesystem ':
/Tmp/vmware-config0/vmhgfs-only/filesystem. c: 582: error: too few arguments to function 'kmem _ cache_create'
/Tmp/vmware-config0/vmhgfs-only/filesystem. c: 593: error: too few arguments to function 'kmem _ cache_create'
Make [2]: **** [/tmp/vmware-config0/vmhgfs-only/filesystem. o] Error 1
Make [1]: *** [_ module _/tmp/vmware-config0/vmhgfs-only] Error 2
Make [1]: Leaving directory '/usr/src/linux-headers-2.6.22-14-generic'
Make: *** [vmhgfs. ko] Error 2
Make: Leaving directory '/tmp/vmware-config0/vmhgfs-only'
Unable to build the vmhgfs module.

Solution: Decompress the Installation File of vmware tools to the user directory (~ /Vmware-tools-distrib ).

First, go to this directory:
$ Cd ~ /Vmware-tools-distrib

Detach the file to be changed and back up the file:
$ Mv lib/modules/source/vmhgfs.tar. orig

Decompress this file:
$ Tar-xvf vmhgfs.tar. orig
Compat_slab.h in the vmhgfs-only directory generated After decompressing the editing file:
$ Vim vmhgfs-only/compat_slab.h
Find this line:
If LINUX_VERSION_CODE <KERNEL_VERSION (2, 6, 22) | defined (VMW_KMEMCR_HAS_DTOR)
Changed:
If LINUX_VERSION_CODE <= KERNEL_VERSION (2, 6, 22) | defined (VMW_KMEMCR_HAS_DTOR)
Is to change less than (<) to less than or equal to (<= ).
Now we have basically finished, just re-package the compressed folder and copy it back (lib/modules/source/vmhgfs.tar ):
Tar-cvf lib/modules/source/vmhgfs.tar vmhgfs-only
Copy the vmhgfs.tar file to vmware-tools in ubuntu (/usr/lib/vmware-tools/modules/source /):
$ Sudo cp lib/modules/source/vmhgfs.tar/usr/lib/vmware-tools/modules/source/vmhgfs.tar
Reset vmware tools:
$ Sudo vmware-config-tools.pl
Press enter all the way.
5. This method returns an error when you press Enter.
Make [2] = **** [/tmp/vmware-config0/vmmemctl-only] Error 1
Make [1] = *** [_ module _/tmp/vmware-config0/vmmemctl-only] Error 2
Make [1] = Leaving directory '/usr/src/linux-headers-2.6.32-21-generic'
Make: *** [vmmenctl. ko] Error 2

That Big Brother, help me, I have been looking for a problem for a day, but it still has no results.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.