Update 25 April 2020:
Many thanks to @KZL1992 @tomslominski @ptrofi @n-thumann for recent comments on their experiences with 20.04 and Parallels 13/14/15, especially the subsitution of the latest prl-tools-lin.iso
for older Parallels to get it going.
First off, credit goes to github.com/rudolfratusinski for leading the way here.
https://gist.github.com/rudolfratusinski/a4d9e3caff11a4d9d81d2e84abc9afbf
In a very similar approach, copy the files from the Parallels installation media and drop them in a folder somewhere (eg. ~/parallels_fixed)
Go to the kmods directory (cd ~/parallels_fixed/kmods
) and extract the files (tar -xzf prl_mod.tar.gz
)
Remove prl_mod.tar.gz
file from that directory (rm prl_mod.tar.gz
)
Find this file: ~/<your-folder-goes-here>/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/prlfs.h
Modify the file by going to line 16 and inserting a new line. Add this text: #include <uapi/linux/mount.h>
The file should now look like this. Save and exit.
..
#include <linux/fs.h>
#include <uapi/linux/mount.h>
#include <linux/types.h>
..
Go to the kmods directory (cd ~/parallels_fixed/kmods
) and re-zip the files: tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods
In case you missed it, yes that is a period(.) sitting there by itself and necessary.
Go to the installer directory cd ~/parallels_fixed/installer
Sudo chmod the script files: install-cli.sh
(and others) to be executable eg. sudo chmod 777 *.sh
( @7feilee reports that if drag and drop is not working, then also try sudo chmod 777 prl*
as the next step after chmod'ing the above script files ).
Then run that file with: sudo ./install-cli.sh -i --verbose
Reboot when it's finished.
@andyrudoff and @katter - many thanks for highlighting the file name correction.
@VirtualL - many thanks for highlighting it works on Ubuntu Mate 19.10 as well.
@Koongcen - many thanks for highlighting it works on Ubuntu 18.04 as well.
@BarryDeng - many thanks for highlighting it works on Ubuntu 20.04 as well.
The Parallels Guest Tools from version 15 aren't compatible with linux 5.6 and above. I wrote a quick and dirty patch to update the kernel modules. The instructions are mostly the same as above. Use at your own risk, I am not an experienced kernel developer and mistakes in kernel modules could potentially corrupt data inside the VM. (you'll know if something's wrong when ubuntu pops a dialog about an "internal error")
Here are summarized instructions for the preparatory steps, there are more details above:
prl-tools-lin.iso
(inside of the .app directory) and move it outprl_mod.tar.gz
in thekmods
directory, extract it.prl_mod.tar.gz
We're now ready to apply the patch. Here the instructions diverge from those above:
patch -p1 < parallels-15-guest-tools-patch-for-linux-5-6.patch
I have tested it on ubuntu 20.04 (focal) and the modules load without error. The graphic drivers work. Clipboard sharing might not be working, and I haven't tested folder sharing.