Failed to install vmhgfs on xubuntu13.04, resulting in unavailability of sharing

Source: Internet
Author: User
Failed to install vmhgfs on xubuntu13.04, resulting in no sharing problem description: the following error occurs when installing vmwaretools. 1/tmp/modconfig-5e6o62/vmhgfs-only/inode. c: 888: 4: error: implicitdeclarationoffunction & amp; ls... failed to install vmhgfs on xubuntu13.04, resulting in no sharing problem description: the following error occurs when installing vmware tools. 1/tmp/modconfig-5e6o62/vmhgfs-only/inode. c: 888: 4: error: implicit declaration of function 'vmtruncate' [-Werror = implicit-function-declaration] 2C0: some warnings being treated as errors3make [2]: * ** [/tmp/modconfig-5e6o62/vmhgfs-only/inode. o] Error 14 make [2]: *** Waiting for unfinished jobs .... 5 make [1]: *** [_ module _/tmp/modconfig-5e6o62/vmhgfs-only] Error 26 make [1]: Leaving directory '/usr/src/li Nux-headers-3.8.0-18-generic '7make: *** [vmhgfs. ko] Error 28 make: Leaving directory '/tmp/modconfig-5e6o62/vmhgfs-only' cause: this is a bug in vmware tools, which can be caused in linux kernel 3.8.x. Solution: create a folder named 'vmhgfs-fix. SH', 'vmtools. inode. c. patch 'and 'vmwarw.ls-9.x.x.tar.gz' are put in and executed. /vmhgfs-fix.sh automatic patching, and then install the folder to unzip vmware tools. Vmhgfs-fix.sh file content: 01 #! /Bin/bash02 #03 # Patch to fix VMware-Tools installation in kernel 3.8.x04 # Working for Ubuntu 13.04 (Xubuntu and Kubuntu also) 05 #06 07 # Get VMwareTools file (it shocould be in the default format VMwareTools-9.x.x ...) 08 VMFILE = 'ls | grep VMwareTools-9. * '09 10if [[! $ VMFILE] 11then12 printf "\ nERROR: \ nvmwarw.ls-9.(.....tar.gz not found. \ n \ nYou shoshould place it in the current folder and/or \ nRename it as VMwareTools-9... (default format name) \ n "13 exit14fi15 16 # Check for vmware-tools-distrib folder17if [[! -D vmware-tools-distrib] 18then19 printf "\ nExtracting VMware-tools... \ n "20 # Extract VMware Tools21 tar xf $ VMFILE22else23 printf" \ n/vmware-tools-distrib already exists. \ nPlease remove it before applying this patch. \ n "24 exit25fi26 27 # Record the current directory28PATCH_DIR = $ PWD29 30 printf" \ nApplying patch to VMware-Tools... \ n "31 sleep 332 pushd vmware-tools-distrib/lib/modules/source33 34 # Make a backup of vmhgfs.tar 35cp vmhgfs.tar. backup36 # Extract vmhgfs.tar 37tar xf vmhgfs.tar 38 # Go to extracted vmhgfs.tar 39 pushd vmhgfs-only/40 # Apply patch41patch-p1 <$ PATCH_DIR/vmtools. inode. c. patch42popd43 # Remove old vmhgfs.tar 44rm-rf vmhgfs.tar 45 # Repack new vmhgfs.tar 46tar cf vmhgfs.tar vmhgfs-only47 # Remove vmhgfs-only dir which is not needed48rm-rf vmhgfs-only49popd50 51 prin Tf "\ nPatch Applied! \ N "52 printf" Now try to install VMware-Tools. \ n "vmtools. inode. c. patch file content: 01 ---. /inode. c 2013-02-26 02:18:24. 000000000 + 000002 ++. /inode. c 00:34:59. 995053850 + 010003 @-885, 7 + 885, 8 @ 04 ASSERT (inode); 05 06 LOG (4, (KERN_DEBUG "VMware hgfs: HgfsTruncatePages: entered \ n ")); 07-result = compat_vmtruncate (inode, newSize); 08 + // result = compat_vmtruncate (inode, newSize); 09 + result = 0; // Fix for kernels 3.8.x due to an error in truncate function10 if (result) {11 LOG (4, (KERN_DEBUG "VMware hgfs: HgfsTruncatePages: vmtruncate failed "12" with error code % d \ n ", result ));
Related Article

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.