VMware Communities
wiggumon
Contributor
Contributor

VMware Tools Install Error

Hello,

I have been searching around on Google but I can't seem to find anything definitive yet. I am using:

  • Windows 7 Host
  • Linux Mint 17 XFCE 64-bit VM
  • Workstation 9.0.4 build-1945795
  • VMware Tools version 9.2.4.27715 (build-1398046)

When installing the tools I am receiving an error when enabling host-guest file system sharing.

Header 1

The VMware Host-Guest Filesystem allows for shared folders between the host OS

and the guest OS in a Fusion or Workstation virtual environment.  Do you wish

to enable this feature? [yes]

Before you can compile modules, you need to have the following installed...

make

gcc

kernel headers of the running kernel

Searching for GCC...

Detected GCC binary at "/usr/bin/gcc".

The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.

Would you like to change it? [no]

Searching for a valid kernel header path...

Detected the kernel headers at "/lib/modules/3.13.0-24-generic/build/include".

The path "/lib/modules/3.13.0-24-generic/build/include" appears to be a valid

path to the 3.13.0-24-generic kernel headers.

Would you like to change it? [no]

Using 2.6.x kernel build system.

make: Entering directory `/tmp/modconfig-hTifx3/vmhgfs-only'

/usr/bin/make -C /lib/modules/3.13.0-24-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

      MODULEBUILDDIR= modules

make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic'

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/backdoor.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/backdoorGcc64.o

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/backdoor.h:30:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/backdoorGcc64.c:38:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h: In function ‘BACKDOOR_STRUCT_SIZES’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’

       assertions \

       ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h:112:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’

            ASSERT_ON_COMPILE(sizeof(Backdoor_proto) == 6 * sizeof(uintptr_t));

            ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’

       assertions \

       ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h:113:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’

            ASSERT_ON_COMPILE(sizeof(Backdoor_proto_hb) == 7 * sizeof(uintptr_t));

            ^

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/backdoor.h:30:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/backdoor.c:35:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h: In function ‘BACKDOOR_STRUCT_SIZES’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’

       assertions \

       ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h:112:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’

            ASSERT_ON_COMPILE(sizeof(Backdoor_proto) == 6 * sizeof(uintptr_t));

            ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:320:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused]; \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_assert.h:342:7: note: in definition of macro ‘MY_ASSERTS’

       assertions \

       ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/backdoor_types.h:113:12: note: in expansion of macro ‘ASSERT_ON_COMPILE’

            ASSERT_ON_COMPILE(sizeof(Backdoor_proto_hb) == 7 * sizeof(uintptr_t));

            ^

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/bdhandler.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/cpName.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/cpNameLinux.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/cpNameLite.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/dentry.o

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/./shared/vmci_defs.h:33:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/hgfsTransport.h:28,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/request.h:39,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/transport.h:26,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/bdhandler.c:30:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/dir.o

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/file.o

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/./shared/vmci_defs.h:33:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/hgfsTransport.h:28,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/request.h:39,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/dir.c:40:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/./shared/vmci_defs.h:33:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/hgfsTransport.h:28,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/request.h:39,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/file.c:43:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

/tmp/modconfig-hTifx3/vmhgfs-only/file.c: In function ‘HgfsOpen’:

/tmp/modconfig-hTifx3/vmhgfs-only/file.c:658:27: error: incompatible type for argument 3 of ‘HgfsSetUidGid’

                           current_fsuid(), current_fsgid());

                           ^

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/file.c:45:0:

/tmp/modconfig-hTifx3/vmhgfs-only/fsutil.h:92:6: note: expected ‘uid_t’ but argument is of type ‘kuid_t’

void HgfsSetUidGid(struct inode *parent,

      ^

/tmp/modconfig-hTifx3/vmhgfs-only/file.c:658:27: error: incompatible type for argument 4 of ‘HgfsSetUidGid’

                           current_fsuid(), current_fsgid());

                           ^

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/file.c:45:0:

/tmp/modconfig-hTifx3/vmhgfs-only/fsutil.h:92:6: note: expected ‘gid_t’ but argument is of type ‘kgid_t’

void HgfsSetUidGid(struct inode *parent,

      ^

  CC [M]  /tmp/modconfig-hTifx3/vmhgfs-only/filesystem.o

make[2]: *** [/tmp/modconfig-hTifx3/vmhgfs-only/file.o] Error 1

make[2]: *** Waiting for unfinished jobs....

In file included from /tmp/modconfig-hTifx3/vmhgfs-only/./shared/vmci_defs.h:33:0,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/hgfsTransport.h:28,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/request.h:39,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/transport.h:26,

                 from /tmp/modconfig-hTifx3/vmhgfs-only/filesystem.c:47:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompilePtr’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2558:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Ptr, 64, void const *, void *, uintptr_t)

^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h: In function ‘AtomicAssertOnCompileInt’:

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2397:20: warning: typedef ‘AssertOnCompileFailed’ locally defined but not used [-Wunused-local-typedefs]

       typedef char AssertOnCompileFailed[AssertOnCompileMisused];             \

                    ^

/tmp/modconfig-hTifx3/vmhgfs-only/./shared/vm_atomic.h:2562:1: note: in expansion of macro ‘MAKE_ATOMIC_TYPE’

MAKE_ATOMIC_TYPE(Int, 32, int, int, int)

^

/tmp/modconfig-hTifx3/vmhgfs-only/filesystem.c: In function ‘HgfsInitSuperInfo’:

/tmp/modconfig-hTifx3/vmhgfs-only/filesystem.c:234:15: error: incompatible types when assigning to type ‘uid_t’ from type ‘kuid_t’

       si->uid = current_uid();

               ^

/tmp/modconfig-hTifx3/vmhgfs-only/filesystem.c:240:15: error: incompatible types when assigning to type ‘gid_t’ from type ‘kgid_t’

       si->gid = current_gid();

               ^

make[2]: *** [/tmp/modconfig-hTifx3/vmhgfs-only/filesystem.o] Error 1

make[1]: *** [_module_/tmp/modconfig-hTifx3/vmhgfs-only] Error 2

make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic'

make: *** [vmhgfs.ko] Error 2

make: Leaving directory `/tmp/modconfig-hTifx3/vmhgfs-only'

The filesystem driver (vmhgfs module) is used only for the shared folder

feature. The rest of the software provided by VMware Tools is designed to work

independently of this feature.

If you wish to have the shared folders feature, you can install the driver by

running vmware-config-tools.pl again after making sure that gcc, binutils, make

and the kernel sources for your running kernel are installed on your machine.

These packages are available on your distribution's installation CD.

I have tried to reinstall the tools several times and I have made sure that open-vm-tools is not on the VM. That same vmhgfs error keeps coming up. I also have this output.

Header 1

lsmod | grep -i vm

vmw_balloon            13415  0

vmw_vmci               62966  0

vmwgfx                175358  3

ttm                    85115  1 vmwgfx

drm                   302817  4 ttm,vmwgfx

It would appear that vmhgfs is not being properly built but I'm not sure why that is. Copy and pasting files from host to VM works just fine and the folder /mnt/hgfs is created but the shared folders, which are enabled, are not displayed. Do I need a newer version of the tools?

Thanks!

Reply
0 Kudos
2 Replies
wiggumon
Contributor
Contributor

I did find something here posted by BlackTibo.

https://communities.vmware.com/thread/469169

I followed the instructions and now I don't get an error during the build process but when I try to navigate to /mnt/hgfs/ I receive an error.

/mnt/hgfs/: Not a directory

What am I still missing?

Reply
0 Kudos
wiggumon
Contributor
Contributor

Ok. Getting closer I think. Tried the instructions here:

https://github.com/rasa/vmware-tools-patches

But I am still getting the /mnt/hgfs/: Not a directory error.

Reply
0 Kudos