I inherited an openSUSE 13.2 (Harlequin) virtual machine from previous developer and exported disk files from Virtualbox VDI to VMWare's VMDK.

The virtual machine works and VMware Tools are installed, but I can't complete configuration process because the configurator can't find kernel sources. Display auto resolution doesn't work.

But kernel sources are installed! YaST displays them as installed and /usr/src directory contains some linux subdirectories:

  • linux
  • linux-obj
  • linux-
  • linux-
  • linux-3.16.6-2
  • linux-3.16.6-2-obj
  • linux-3.16.7-21
  • linux-3.16.7-21-obj

Installed kernel version is 3.16.6-2-default

VMWare Tools configurator complains

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes] 

What is the location of the directory of C header files that match your running kernel? /usr/src/linux

The path "/usr/src/linux" is not valid.
Would you like to change it? [yes] 

If I only knew which files the configurator tries to search for, I could try to find them by myself.

VMWare Workstation 7.0.1.

Please help me to install these tools.


kernel headers in SUSE are a part of the kernel source package or kernel development pattern. To be able to utilize headers you generally need C tools and base development tools installed as well. I'd recommend running the following command as root or with sudo to install everything you'll need:

zypper install -t pattern devel_basis devel_C_C++ devel_kernel

I'd also recommend rebooting after the install completes.

| improve this answer | |
  • Looking at the file system how could I check whether kernel source package is installed? Which files must be present in a folder? – Paul May 2 '17 at 20:17
  • To check if a package is installed I would recommend using the package tools. For SUSE that would be: zypper se kernel-source or rpm -q kernel-source. However, the files that come from the kernel-source package (at least for SUSE) are in the directory /usr/src/linux-<kernel version> – TopHat May 2 '17 at 20:32
  • @Paul If I was able to answer your question would you mind setting my answer as your solution so that I can get the reputation points for it? Thanks! – TopHat May 3 '17 at 19:17
  • 1
    @Paul could you add the full output to a pastebin.com link so that I can see it a little easier? Make sure to include the full command that was run as well. Thanks! – TopHat May 3 '17 at 21:23
  • pastebin.com/N0xaHMQC. TopHat, before to install something I would like to check if it is already installed to avoid unnecessary downloads and may be corruption of well-tuned package. – Paul May 3 '17 at 21:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.