OpenSuse in Parallels 13 - Parallels tools installation


I’ve got a new job, and a new computer which is a 13" MacBook Pro. Loaded Parallels, which I’ve used for years and with many different distros. I thought I’d give OpenSuse a go, and I’ve installed it various ways probably 15 times now. Only twice has it been successful in logging in. I can always get the OS installed, but at the login screen I sign in and it just immediately kicks me back out to the login screen. I’ve found that if I do a custom install and use XFCE, it installs AND lets me sign in. Before I start looking at getting other DEs going on it, I figured I should get Parallels Tools loaded successfully first. Well that’s been a failure so far! Initially it gave me some errors and I was able to get a bunch of dependent packages installed, but now I’m stuck. Hoping some others have run into this and fixed it, or some of you might have some suggestions that would help me…

Parallels Tools installation log file:

Loading repository data…
Reading installed packages…
‘kernel-source = 4.12.9-1’ is already installed.
Resolving package dependencies…

Nothing to do.

Mon Sep 11 09:41:59 EDT 2017
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Perform installation into the /usr/lib/parallels-tools directory
cat: /usr/lib/parallels-tools/kmods/…/version: No such file or directory
make: Entering directory ‘/usr/lib/parallels-tools/kmods’
awk: fatal: cannot open file /lib/modules/4.12.9-1-default/build/include/generated/uapi/linux/version.h' for reading (No such file or directory) /bin/sh: line 0: : -ge: unary operator expected cd prl_eth/pvmnet && make make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet' awk: fatal: cannot open file /lib/modules/4.12.9-1-default/build/include/generated/uapi/linux/version.h’ for reading (No such file or directory)
/bin/sh: line 0: : -ge: unary operator expected
/bin/sh: line 0: : too many arguments
Makefile:47: *** Unsupported kernel version in /lib/modules/4.12.9-1-default/build. Stop.
make[1]: Leaving directory ‘/usr/lib/parallels-tools/kmods/prl_eth/pvmnet’
make: *** [Makefile.kmods:34: installme] Error 2
make: Leaving directory ‘/usr/lib/parallels-tools/kmods’
Error: could not build kernel modules
Error: failed to install kernel modules
Error: failed to install Parallels Guest Tools!
Please, look at /var/log/parallels-tools-install.log file for more information.
2017-09-11T09:42:00-0400: execCmd: ./install --install [143]
2017-09-11T09:42:00-0400: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
2017-09-11T09:48:10-0400: Exiting with code 1

There is a possibility that the makefile is somehow restricting the kernel version but IMO not likely.

More likely,
You might have installed the wrong kernel “source” packages… If you installed kernel source, that’s the wrong package and is used for building your own kernel which is <not> what you want to do.
Instead, you want to build kernel modules (plug in modules to the kernel). Install the relevent “devel” kernel packages, assuming you’re running the default kernel which is default nowadays, you can run the following command in an elevated console

zypper in kernel-devel kernel-default-devel

After the above command which will install your needed kernel packages, you can then run your Parallels Tools install again.