CentOS 7 as guest in VMWare: can’t drag and drop, can’t copy and paste

centosvmware

I have installed CentOS 7 as a guest under VMWare Workstation 7 on a Windows 7 host, and the problem is that I can't drag and drop files, nor copy and paste. VMWare's documentation has the following:

http://partnerweb.vmware.com/GOSIG/CentOS_7.html#Tools

Where they basically say that:

  1. In order to enable drag and drop, you have to install the vmhgfs driver.
  2. In order to install vmhgfs, you have to first install the open source Open VMware tools (the open-vm-tools package), and then install the VMWare's supplied VMWare Tools on top of that.

The problem is that, when installing the latter, it requires you to compile a kernel module, and when doing so, it asks for the path to the kernel headers, and no matter what you add, it says that the path is not valid. Basically, it's the same problem described here:

https://www.centos.org/forums/viewtopic.php?f=47&t=50812

If you google it, you'll find that there's a lot of people with the same problem. The solution usually suggested is to install the kernel-devel package, but I've done so, and it doesn't work either. I have two different kernel header packages installed:

  • kernel-devel-3.10.0-229.el7.x86_64
  • kernel-devel-3.10.0-229.l4.l.el7.x86_64

I've tried giving VMWare's installer all the following paths:

  • /usr/src/kernels/3.10.0-229.el7.x86_64
  • /usr/src/kernels/3.10.0-229.el7.x86_64/include
  • /usr/src/kernels/3.10.0-229.el7.x86_64/include/linux
  • /usr/src/kernels/3.10.0-229.l4.l.el7.x86_64
  • /usr/src/kernels/3.10.0-229.l4.l.el7.x86_64/include
  • /usr/src/kernels/3.10.0-229.l4.l.el7.x86_64/include/linux

And no matter what, it says that it's not a valid path.

As I said, if you google this, you'll find a lot of people with the same problem, while for others it seems to simply "work", without doing anything. What's going on?

Best Answer

Is gcc installed? I agree that you need the kernel development headers to recompile the extensions in, but then you also need the compiler as well.

You can find out with: yum list gcc

Minimal installs of CentOS won't include a compiler, and installing the kernel headers doesn't require one. So folks who do a standard "developer" install would have no issues, but those that do a minimal would always have an issue.

Related Question