Skip to content

Instantly share code, notes, and snippets.

@mag911
Last active May 9, 2024 13:32
Show Gist options
  • Save mag911/1a5583a766467d6023584d738cee0d98 to your computer and use it in GitHub Desktop.
Save mag911/1a5583a766467d6023584d738cee0d98 to your computer and use it in GitHub Desktop.
Parallel Tools fix for Ubuntu 20.04, 19.04, 19.10, 18.04

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.

mag@bloss.io www.bloss.io

@cgnl
Copy link

cgnl commented May 9, 2024

I just wanted to comment how to get Parallels tools working in Parallels 18.1.1 because it was very annoying that it didn't install in my Kali Linux guest VM.

I tried the tutorial mentioned earlier, but it directs to what is now a small web installer of the Parallels Trial, that does NOT include Parallels Tools in the DMG.

How to get copying and pasting to work in a Kali guest VM using version of Parallels 18.1.1:

  • Download the latest offline installer of Parallels 19.3 with this URL: https://download.parallels.com/desktop/v19/19.3.1-54941/ParallelsDesktop-19.3.1-54941.dmg?experience=enter_key
  • Mount the DMG and extract the latest Parallels Tools ISO from /Volumes/Parallels Desktop 19/Parallels Desktop.app/Contents/Resources/Tools
  • Overwrite the Parallels Tools ISO in your installed package in /Applications/Parallels Desktop.app/Contents/Resources/Tools/
  • Install Parallels Tools succesfully in the guest VM.
  • (Optional) Disable automatic updates of Parallels Tools in the config.pvs of your VM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment