VMware Tools is installed but the virtual machine cannot share folders when it is turned on

Source: Internet
Author: User

http://www.chinacloudly.com/%e5%ae%89%e8%a3%85%e4%ba%86vmware-tools%e4%bd%86%e6%98%af%e8%99%9a%e6%8b%9f%e6%9c% Ba%e5%9c%a8%e5%bc%80%e6%9c%ba%e7%8a%b6%e6%80%81%e4%b8%8b%e6%97%a0%e6%b3%95%e5%85%b1%e4%ba%ab%e6%96%87%e4%bb%b6 /

The root cause is that Vmware-tools is not updated immediately after the Linux kernel upgrade.

There is a third-party solution on the web. Test centos6.4 and Ubuntu 14.04 Desktop available

1. Copy the Vmware-tools

2. Download patch file, link to interview bottom

3.

# cd ~/vmware-tools-distrib/lib/modules/source# sudo tar xf vmhgfs.tar# sudo wget https://raw.github.com/rasa/ vmware-tools-patches/master/patches/vmhgfs/vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch# sudo patch-p0 < vmhgfs-d_count-kernel-3.11-tools-9.6.0.patch# sudo mv Vmhgfs.tar vmhgfs.orig.tar# sudo tar cf vmhgfs.tar VMHGFS-ONLY#CD ~/vmware-tools-distrib

4./vmware-install.pl Recompile the installation

If the patch fails, you can try to manually replace the contents of the patch into the appropriate file, with the patch content under the link

Click to download

---vmhgfs-only/inode.c2013-08-15 22:32:22.000000000-0700+++ vmhgfs-only.patched/inode.c2013-09-16 21:31:12.323041668-0700@@ -31,6 +31,9 @@ zzfcthotfixz <linux/namei.h> #endif #include <linux/highmem.h>+ #if Linux_version_code >= kernel_version (3, one, 0) + #include <linux/dcache.h>+ #endif #include "compat_cred.h" #                            Include "Compat_fs.h" @@ -1890,7 +1893,11 @@ -1890,7 &inode->i_dentry,          D_alias) {+ #if linux_version_code >= kernel_version (3, one, 0) + int dcount = D_count (dentry); + #else int DCount = dentry->d_count;+ #endif if (dcount) {LOG (4, ("Found%s%d \ n", Dentry->d_nam             E.name, DCount)); Return Hgfsaccessint (Dentry, Mask & (May_read | May_write |          may_exec)); @@ -1943,10 +1950,12 @@ -1943,10 (POS, &inode->i_dentry) {int dcount; struct Dentry *dentry = list_entry (pos, struct dentry, d_alias);-#if Linux_version_code < Kernel_version (2, 6, $)-DCount = Atomic_read (&dentry->d_count);-#else + #if linux_version_code >= KERNEL _version (3, 0) + DCount = D_count (dentry), + #elif Linux_version_code >= kernel_version (2, 6,.) DCO UNT = dentry->d_count;+ #else + dcount = Atomic_read (&dentry->d_count); #endif if (dcount) {LOG (4, ("Found%s%d \ n", (dentry)->d_name.name, DCount));


VMware Tools is installed but the virtual machine cannot share folders when it is turned on

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.