Parallels Tools fails to install under version 12.2.1 for guest OS debian 9 stretch

FabienA

Bit poster
I read somewhere on this forum that Parallels 12 supported now kernel until 4.12 for linux.
But Parallels Tools fails to install under version 12.2.1 for guest OS debian 9 stretch.
I get an error of type implicit function declaration :
Started installation of Parallels Guest Tools version '12.2.1.41615'

Tue Jul 25 13:04:45 CEST 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
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.11.0-1-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.11.0-1-amd64'
LD /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/built-in.o
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
Building modules, stage 2.
MODPOST 1 modules
CC /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-4.11.0-1-amd64'
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
make -C /lib/modules/4.11.0-1-amd64/build SUBDIRS=/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 modules
make[2]: Entering directory '/usr/src/linux-headers-4.11.0-1-amd64'
grep: /lib/modules/4.11.0-1-amd64/build/include/linux/completion.h: No such file or directory
CC [M] /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o
In file included from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:38:0:
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h: In function 'wait_for_completion_interruptible':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h:137:8: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.11.0-1-common/scripts/Makefile.build:299: recipe for target '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o' failed
make[5]: *** [/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
/usr/src/linux-headers-4.11.0-1-common/Makefile:1509: recipe for target '_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg' failed
make[4]: *** [_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.11.0-1-amd64'
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:23: recipe for target 'prl_tg' failed
make[1]: *** [prl_tg] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [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.


If the error remains unfixed, i consider moving to VMWare solution since they seem to maintain updated equivalent to parallels tools and these are available in repositories.
 
Last edited:
Seems you're using some backported kernel package since stretch repo contains linux-4.9. I confirm the problem with 4.11 on Debian, on Ubuntu and Fedora everything is ok. This can be workarounded by manually adding symlink:
# ln -s /usr/src/linux-headers-$(uname -r)-common/include/linux /lib/modules/$(uname -r)/build/include/
 
Sorry, but i tried what you said, and it didn't work. I still get :
grep: /lib/modules/4.11.0-1-amd64/build/include/linux/completion.h: No such file or directory

I noticed that folder /usr/src/linux-headers-4.11.0-1-amd64-common/ doesn't exist, despite linux headers are installed on my VM
folder /usr/src/linux-headers-4.11.0-1-common/ exists, I tried to use this one but no more success...

I think i will not annoy you anymore, and try to reinstall the proper kernel 4.9, since i didn't know the image i downloaded was containing another kernel

Thank you
 
Sorry, I made a mistake in command to create a symlink. It should be:
# ln -s /usr/src/linux-headers-4.11.0-1-common/include/linux /lib/modules/$(uname -r)/build/include/
Did you try it? What does command
$ ls /lib/modules/$(uname -r)/build/include/
return?
 
i tried this command without success...
the second command returns "no such file or directory"
But really I can reinstall the debian 9.1 package, i realized i downloaded and installed the testing.
 
any suggestions for my issue ?


Hit:1 http://deb.torproject.org/torproject.org wheezy InRelease
Get:2 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB]
Get:3 http://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Packages [15.3 MB]
Fetched 15.3 MB in 8s (1,901 kB/s)
Reading package lists...
Return code from apt-get update is 0
2017-08-23T10:01:55-0500: execCmd: ./installer/pm.sh --install gtools --logfile /var/log/parallels-tools-install.log [0]
Started installation of Parallels Guest Tools version '12.2.1.41615'

Wed Aug 23 10:01:55 CDT 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
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.12.0-kali1-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.12.0-kali1-amd64'
LD /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/built-in.o
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
Building modules, stage 2.
MODPOST 1 modules
CC /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-4.12.0-kali1-amd64'
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
make -C /lib/modules/4.12.0-kali1-amd64/build SUBDIRS=/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 modules
make[2]: Entering directory '/usr/src/linux-headers-4.12.0-kali1-amd64'
grep: /lib/modules/4.12.0-kali1-amd64/build/include/linux/completion.h: No such file or directory
CC [M] /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o
In file included from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:38:0:
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h: In function 'wait_for_completion_interruptible':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_compat.h:137:8: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.12.0-kali1-common/scripts/Makefile.build:307: recipe for target '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o' failed
make[5]: *** [/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
/usr/src/linux-headers-4.12.0-kali1-common/Makefile:1532: recipe for target '_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg' failed
make[4]: *** [_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.12.0-kali1-amd64'
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:23: recipe for target 'prl_tg' failed
make[1]: *** [prl_tg] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
2017-08-23T10:01:57-0500: execCmd: ./install --install [143]
2017-08-23T10:01:57-0500: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
 
I got Parallels Tools version 12.2.1.41615 installed successfully on Linux Kernel 4.13.0(Kali Linux 2017.2) using the command posted above:
# ln -s /usr/src/linux-headers-4.13.0-1-common/include/linux /lib/modules/$(uname -r)/build/include/
just changed the syntax to the current kernel version that's on my Kali VM. ( i.e. from 11 to 13 in my case)

Was also receiving the same error log file as the posts above prior to running the ln command.
 
Hm. Command
# ln -s /usr/src/linux-headers-4.13.0-kali1-common/include/linux /lib/modules/4.13.0-kali1-amd64/build/include/
works ok for me. And Parallels Tools 12.2.1 are installed successfully. Ensure linux-headers-4.13.0-kali1-amd64 package is installed before doing that command.
 
None of these work-arounds worked with Devuan ascii 2.0 :(
I used the link:
ln -s /usr/src/linux-headers-4.9.0-6-common/include/linux /lib/modules/4.9.0-6-amd64/build/include/
to no avail.
Log:
Code:
Started installation of Parallels Guest Tools version '11.1.2.32408'

Fri Nov  9 14:42:41 MST 2018
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
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.9.0-6-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.9.0-6-amd64'
  LD      /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/built-in.o
  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
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /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-4.9.0-6-amd64'
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
make -C /lib/modules/4.9.0-6-amd64/build SUBDIRS=/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 modules
make[2]: Entering directory '/usr/src/linux-headers-4.9.0-6-amd64'
  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 'tg_submit':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:315:2: error: implicit declaration of function 'page_cache_get' [-Werror=implicit-function-declaration]
  page_cache_get(rq.pg);
  ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:377:2: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaration]
  page_cache_release(rq.pg);
  ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/processor.h:15:0,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/cpufeature.h:4,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/thread_info.h:52,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/thread_info.h:58,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/preempt.h:6,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/preempt.h:59,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/spinlock.h:50,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/seqlock.h:35,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/time.h:5,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/module.h:10,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:9:
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'map_user_request':
/usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]
 #define current get_current()
                 ^
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:23: note: in expansion of macro 'current'
  got = get_user_pages(current, current->mm,
                       ^~~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/include/linux/scatterlist.h:7:0,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/pci.h:1274,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.9.0-6-common/include/linux/mm.h:1304:6: note: expected 'long unsigned int' but argument is of type 'struct task_struct *'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/processor.h:15:0,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/cpufeature.h:4,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/thread_info.h:52,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/thread_info.h:58,
                 from /usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/preempt.h:6,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/preempt.h:59,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/spinlock.h:50,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/seqlock.h:35,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/time.h:5,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/module.h:10,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:9:
/usr/src/linux-headers-4.9.0-6-common/arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]
 #define current get_current()
                 ^
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:32: note: in expansion of macro 'current'
  got = get_user_pages(current, current->mm,
                                ^~~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/include/linux/scatterlist.h:7:0,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/pci.h:1274,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.9.0-6-common/include/linux/mm.h:1304:6: note: expected 'long unsigned int' but argument is of type 'struct mm_struct *'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:482:21: warning: passing argument 4 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
         sbuf->u.Va, npages,
                     ^~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/include/linux/scatterlist.h:7:0,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/pci.h:1274,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.9.0-6-common/include/linux/mm.h:1304:6: note: expected 'struct page **' but argument is of type 'int'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:483:9: warning: passing argument 5 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
         sbuf->Writable, 0,
         ^~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/include/linux/scatterlist.h:7:0,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/pci.h:1274,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.9.0-6-common/include/linux/mm.h:1304:6: note: expected 'struct vm_area_struct **' but argument is of type 'unsigned char:1'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:8: error: too many arguments to function 'get_user_pages'
  got = get_user_pages(current, current->mm,
        ^~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-6-common/include/linux/scatterlist.h:7:0,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.9.0-6-common/include/linux/pci.h:1274,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.9.0-6-common/include/linux/mm.h:1304:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-6-common/scripts/Makefile.build:301: recipe for target '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o' failed
make[5]: *** [/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
/usr/src/linux-headers-4.9.0-6-common/Makefile:1517: recipe for target '_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg' failed
make[4]: *** [_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.9.0-6-amd64'
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:29: recipe for target 'prl_tg' failed
make[1]: *** [prl_tg] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
 
Also attempted MX Linux 4.15 to no avail.

Code:
# cat /var/log/parallels-tools-install.log
2018-11-09T15:47:59-0700:

Parallels Tools 11.1.2-32408 Installer started.
2018-11-09T15:47:59-0700: Failed to setup console printk level.
2018-11-09T15:48:02-0700: o kpartx
2018-11-09T15:48:02-0700: execCmd: ./installer/pm.sh --check gtools [0]
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:3 http://iso.mxrepo.com/antix/stretch stretch InRelease
Ign:4 http://ftp.us.debian.org/debian stretch InRelease
Hit:5 http://iso.mxrepo.com/mx/repo stretch InRelease
Hit:6 http://ftp.us.debian.org/debian stretch Release
Reading package lists...
Return code from apt-get update is 0
Selecting previously unselected package kpartx.
(Reading database ... 313167 files and directories currently installed.)
Preparing to unpack .../kpartx_0.6.4-5_amd64.deb ...
Unpacking kpartx (0.6.4-5) ...
Setting up kpartx (0.6.4-5) ...
Processing triggers for man-db (2.7.6.1-2) ...
2018-11-09T15:48:13-0700: execCmd: ./installer/pm.sh --install gtools --logfile /var/log/parallels-tools-install.log [0]
Started installation of Parallels Guest Tools version '11.1.2.32408'

Fri Nov  9 15:48:13 MST 2018
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
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.15.0-1-amd64/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-1-amd64'
  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
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /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-4.15.0-1-amd64'
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
cd prl_tg/Toolgate/Guest/Linux/prl_tg && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
make -C /lib/modules/4.15.0-1-amd64/build SUBDIRS=/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 modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-1-amd64'
  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 'tg_submit':
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:315:2: error: implicit declaration of function 'page_cache_get' [-Werror=implicit-function-declaration]
  page_cache_get(rq.pg);
  ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:377:2: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaration]
  page_cache_release(rq.pg);
  ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/thread_info.h:21:0,
                 from /usr/src/linux-headers-4.15.0-1-common/arch/x86/include/asm/preempt.h:7,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/preempt.h:81,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/spinlock.h:51,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/seqlock.h:36,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/time.h:6,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/stat.h:19,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/module.h:10,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:9:
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c: In function 'map_user_request':
/usr/src/linux-headers-4.15.0-1-common/arch/x86/include/asm/current.h:18:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]
 #define current get_current()
                 ^
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:23: note: in expansion of macro 'current'
  got = get_user_pages(current, current->mm,
                       ^~~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/scatterlist.h:8:0,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/pci.h:1325,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.15.0-1-common/include/linux/mm.h:1403:6: note: expected 'long unsigned int' but argument is of type 'struct task_struct *'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/thread_info.h:21:0,
                 from /usr/src/linux-headers-4.15.0-1-common/arch/x86/include/asm/preempt.h:7,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/preempt.h:81,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/spinlock.h:51,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/seqlock.h:36,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/time.h:6,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/stat.h:19,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/module.h:10,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:9:
/usr/src/linux-headers-4.15.0-1-common/arch/x86/include/asm/current.h:18:17: warning: passing argument 2 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]
 #define current get_current()
                 ^
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:32: note: in expansion of macro 'current'
  got = get_user_pages(current, current->mm,
                                ^~~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/scatterlist.h:8:0,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/pci.h:1325,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.15.0-1-common/include/linux/mm.h:1403:6: note: expected 'long unsigned int' but argument is of type 'struct mm_struct *'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:482:21: warning: passing argument 4 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
         sbuf->u.Va, npages,
                     ^~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/scatterlist.h:8:0,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/pci.h:1325,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.15.0-1-common/include/linux/mm.h:1403:6: note: expected 'struct page **' but argument is of type 'int'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:483:9: warning: passing argument 5 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
         sbuf->Writable, 0,
         ^~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/scatterlist.h:8:0,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/pci.h:1325,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.15.0-1-common/include/linux/mm.h:1403:6: note: expected 'struct vm_area_struct **' but argument is of type 'unsigned char:1'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:481:8: error: too many arguments to function 'get_user_pages'
  got = get_user_pages(current, current->mm,
        ^~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.15.0-1-common/include/linux/scatterlist.h:8:0,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/dmapool.h:14,
                 from /usr/src/linux-headers-4.15.0-1-common/include/linux/pci.h:1325,
                 from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c:11:
/usr/src/linux-headers-4.15.0-1-common/include/linux/mm.h:1403:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.15.0-1-common/scripts/Makefile.build:321: recipe for target '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o' failed
make[5]: *** [/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.o] Error 1
/usr/src/linux-headers-4.15.0-1-common/Makefile:1523: recipe for target '_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg' failed
make[4]: *** [_module_/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-1-amd64'
/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:29: recipe for target 'prl_tg' failed
make[1]: *** [prl_tg] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
2018-11-09T15:48:17-0700: execCmd: ./install --install [143]
2018-11-09T15:48:17-0700: Error: An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information.
2018-11-09T15:48:21-0700: Exiting with code 1
 
@BallO, sorry, in Parallels Desktop 11 Guest Tools Linux kernel version up to 4.7 is supported only. You need to upgrade to newer version.
 
Back
Top