2020.2 Kali Linux, Parallels Tools Error

AaronW4

Bit poster
MacOS Version: 10.15.5 (19F101)
Parallels Version: 15.1.4 (47270)
Kali Linux Version: 2020.2, kali-rolling
Reference KB: https://kb.parallels.com/123968

I followed the steps in the referenced kb as root, but encountered an error at step (6), shown in the attached screenshot. I have also attached my parallels-tools-install.log to this post. I am unable to install Parallels Tools.

It appears there's a proc_create_data incompatible pointer type, and an unexpected struct file_operations argument (expected type construct proc_ops) . These then end up throwing compile Error 2 "Error: could not build kernel modules".

Code:
2020-06-02T20:55:03-0500:

Parallels Tools 15.1.4-47270 Installer started.
2020-06-02T20:55:03-0500: Failed to setup console printk level.
2020-06-02T20:55:04-0500: execCmd: ./install --check [0]
2020-06-02T20:55:04-0500: execCmd: ./installer/detect-xserver.sh -v >/dev/null 2>&1 [0]
2020-06-02T20:55:05-0500: execCmd: ./installer/pm.sh --check gtools [0]
Started installation of Parallels Guest Tools version '15.1.4.47270'

Error during report about start installation of parallels tools.
Tue Jun 2 20:55:05 CDT 2020
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Register service to install new Guest Tools
Perform installation into the /usr/lib/parallels-tools directory
make: Entering directory '/usr/lib/parallels-tools/kmods'
Will use compiler CC="cc".
Compiler version "cc (Debian 9.3.0-13) 9.3.0"
cd prl_eth/pvmnet && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/5.6.0-kali2-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet CC=cc
make[2]: Entering directory '/usr/src/linux-headers-5.6.0-kali2-amd64'
  AR      /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/built-in.a
  CC [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o
  LD [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/prl_eth.o
  MODPOST 1 modules
  CC [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/prl_eth.mod.o
  LD [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/prl_eth.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.6.0-kali2-amd64'
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make CC=cc
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
1: /lib/modules/5.6.0-kali2-amd64/build
2: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
3: 20200602
4: 1.7.0
Start compile prl_tg...
make -C /lib/modules/5.6.0-kali2-amd64/build M=/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg SRCROOT=/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg CC=cc modules
make[2]: Entering directory '/usr/src/linux-headers-5.6.0-kali2-amd64'
1: /lib/modules/5.6.0-kali2-amd64/build
2: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg
3: 20200602
4: 1.7.0
  CC [M]  /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prltg_proc_create_data':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:405:46: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  405 |  return proc_create_data(name, mode, parent, fops, data);
      |                                              ^~~~
      |                                              |
      |                                              struct file_operations *
In file included from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:10:
/usr/src/linux-headers-5.6.0-kali2-common/include/linux/proc_fs.h:59:31: note: expected 'const struct proc_ops *' but argument is of type 'struct file_operations *'
   59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.6.0-kali2-common/scripts/Makefile.build:273: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.6.0-kali2-common/Makefile:1704: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.6.0-kali2-amd64'
make[2]: *** [/usr/src/linux-headers-5.6.0-kali2-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
make[1]: *** [Makefile:42: prl_tg] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
make: *** [Makefile.kmods:31: compile] Error 2
Error: could not build kernel modules
Error during report about failed installation of parallels tools.
Error: failed to install Parallels Guest Tools!
2020-06-02T20:55:07-0500: Started installation of Parallels Guest Tools version '15.1.4.47270'

Error during report about start installation of parallels tools.
Tue Jun 2 20:55:05 CDT 2020
Start installation or upgrade of Guest Tools
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'prltg_proc_create_data':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:405:46: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
  405 |  return proc_create_data(name, mode, parent, fops, data);
      |                                              ^~~~
      |                                              |
      |                                              struct file_operations *
In file included from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:10:
/usr/src/linux-headers-5.6.0-kali2-common/include/linux/proc_fs.h:59:31: note: expected 'const struct proc_ops *' but argument is of type 'struct file_operations *'
   59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.6.0-kali2-common/scripts/Makefile.build:273: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.6.0-kali2-common/Makefile:1704: /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
make[2]: *** [/usr/src/linux-headers-5.6.0-kali2-common/Makefile:180: sub-make] Error 2
make[1]: *** [Makefile:42: prl_tg] Error 2
make: *** [Makefile.kmods:31: compile] Error 2
Error: could not build kernel modules
Error during report about failed installation of parallels tools.
Error: failed to install Parallels Guest Tools!
2020-06-02T20:55:07-0500: execCmd: ./install --install [167]
2020-06-02T20:55:07-0500: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
2020-06-02T20:55:09-0500: Exiting with code 1
 

Attachments

  • Screen Shot 2020-06-02 at 8.54.03 PM.png
    Screen Shot 2020-06-02 at 8.54.03 PM.png
    109.5 KB · Views: 40
This previous mentioned work-around does unfortunately no longer work for me on a fresh install of the brand-new Kali 2021.1 release. Are you planning on adding support for any new versions of Kali or was 2019 the last release Parallels supported, @Maria@Parallels?
Hey everyone,
thanks a lot to @BrandonR7 - that was the missing piece. With the other mentioned 5-step changes from page 1 and also the "dirty workaround" to remove "~/.config/xfce4" before rebooting I was able to get Parallels Tools working on a brand-new Kali 2021.1 release!

Still really sad and disappointed that it's so bad supported from the official side. Have been a really long-term Parallels user for almost 10 years now.
 
Installed Kali 2021.1 ARM. Works as installed but cannot get the Install-gui to run. Did a chmod u+x on the files copied from the Parallels Tools CD, permissions verified, shows as executable, but no reaction to right click > Run
 
Installed Kali 2021.1 ARM. Works as installed but cannot get the Install-gui to run. Did a chmod u+x on the files copied from the Parallels Tools CD, permissions verified, shows as executable, but no reaction to right click > Run
Did you try running just ./install from the Terminal instead of the GUI version? I have to admit I've only tried the command line installer. If there are any errors there should be a log file at /var/log/parallels-<something>.log.
 
I retried installing 2021.1 with all the tweaks mentioned in this thread. This time it worked again, just like it did under 2020.4. Unfortunately, I don't know what I did differently.

I followed @electrifeye's instructions. Since Parallels has made https://kb.parallels.com/123968 unavailable, I had to get an archived version from the Wayback Machine. https://web.archive.org/web/20171106151406/https://kb.parallels.com/123968.

I tweaked prl_fs/SharedFolders/Guest/Linux/prl_fs/inode.c according to @EdwardG3's instructions.
 
I've tested switching to KDE and Gnome instead of XFCE and both works just fine (no white-screen issues). Both KDE and Gnome works with 3D acceleration enabled and Parallels Tools installed.
 
I can't install Parallels Tools on Kali linux 2021.1. Using Parallels 16.1.3 (49160) after reading everything I found during 3 days. I get the typical make error. I would lke to know if there is a way to install. Thank you.
 
I can't install Parallels Tools on Kali linux 2021.1. Using Parallels 16.1.3 (49160) after reading everything I found during 3 days. I get the typical make error. I would lke to know if there is a way to install. Thank you.
Uninstall Paralles and install VirtualBox :). This what I did. Karlemilikka has some tweaked tar.gz file what you can use. He will help you out
 
Back
Top