Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fix vmware shared folders in ubuntu 16.04
#!/bin/sh
sudo apt-get install open-vm-tools-desktop git build-essential
git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/
sudo apt-get install autoconf libtool
autoreconf -i
sudo apt-get install libmspack-dev libglib2.0-dev libprocps4-dev libdumbnet-dev
./configure --without-x --without-pam --without-ssl --without-icu
make MODULES=vmhgfs
sudo insmod modules/linux/vmhgfs/vmhgfs.ko
sudo mkdir /mnt/hgfs
@Grief

This comment has been minimized.

Copy link

commented Apr 24, 2016

vmware/open-vm-tools#82 :

/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:59:4: error: unknown field ‘follow_link’ specified in initializer
    .follow_link   = HgfsFollowlink,
    ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:59:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    .follow_link   = HgfsFollowlink,
                     ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:59:21: note: (near initialization for ‘HgfsLinkInodeOperations.lookup’)
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:61:4: error: unknown field ‘put_link’ specified in initializer
    .put_link      = HgfsPutlink,
    ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:61:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
    .put_link      = HgfsPutlink,
                     ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:61:21: note: (near initialization for ‘HgfsLinkInodeOperations.create’)
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c: In function ‘HgfsFollowlink’:
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:127:10: error: implicit declaration of function ‘nd_set_link’ [-Werror=implicit-function-declaration]
          nd_set_link(nd, fileName);
          ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c: In function ‘HgfsPutlink’:
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:238:15: error: implicit declaration of function ‘nd_get_link’ [-Werror=implicit-function-declaration]
    fileName = nd_get_link(nd);
               ^
/files/oss/open-vm-tools/open-vm-tools/modules/linux/vmhgfs/link.c:238:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    fileName = nd_get_link(nd);

@lenciel

This comment has been minimized.

Copy link

commented Dec 7, 2016

Thanks for the information you put here.

I wonder which release tag are you using to build open-vm-tools? I'm using the latest release Release 10.1.0 from build 4449150 and the Makefile.in seems and other temporary files are no longer in the repository.

@lenciel

This comment has been minimized.

Copy link

commented Dec 7, 2016

I finally make it working but install VMware-tools and patch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.