Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Parallel Tools fix for Ubuntu 19.04

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

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.

mag@bloss.io www.bloss.io

@LucaTomei1995

This comment has been minimized.

Copy link

commented Jun 8, 2019

Ctrl+tab don't work for switch applications

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jun 9, 2019

The fix I've got here won't make any changes to the Parallel tools functionality like ctrl-tab

@ChaseVoid

This comment has been minimized.

Copy link

commented Jun 9, 2019

Awesome. thanks

@LucaTomei1995

This comment has been minimized.

Copy link

commented Jun 9, 2019

@mag11 And sorry how can I fix this?

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jun 10, 2019

@LucaTomei195 you lodge a support call with Parallels.

@andyrudoff

This comment has been minimized.

Copy link

commented Jun 10, 2019

@mag911 Thanks so much for posting this. Worked great. By the way, when I got to the point of editing the header file, it was named "prlfs.h" (without the underscore).

@adflet999

This comment has been minimized.

Copy link

commented Jun 10, 2019

excellent! many thanks for this

@RoderickdeRuijter

This comment has been minimized.

Copy link

commented Jun 13, 2019

Awesome, Thanks!!

@Sumaid

This comment has been minimized.

Copy link

commented Jun 14, 2019

@mag911 I need to do this inside Ubuntu 19 virtual machine right?
Where are the parallels installation media which need to be copied?
@RoderickdeRuijter @adflet999

@ldir-EDB0

This comment has been minimized.

Copy link

commented Jun 14, 2019

Very useful, short, sweet, simple fix.

@kapersoft

This comment has been minimized.

Copy link

commented Jun 14, 2019

Thanks! It worked like a charm!

@Sumaid

This comment has been minimized.

Copy link

commented Jun 14, 2019

@kapersoft @Idir-EDB0 where are the parallels installation media which need to be copied?

@kapersoft

This comment has been minimized.

Copy link

commented Jun 14, 2019

@Sumaid choose "Actions" --> "Reinstall Parallels Tools: from the top menu when your Ubuntu VM is open. A virtual CD with Parallels tools will mount in your VM

@Sumaid

This comment has been minimized.

Copy link

commented Jun 14, 2019

@kapersoft Thanks, also I don't get dkms.conf Makefile.kmods in kmods directory, what did you do about that?

@kapersoft

This comment has been minimized.

Copy link

commented Jun 14, 2019

@Sumaid Makefile.kmods and dkms.conf are part of the Parallels tools. If you don't have them, try updating to the latest version of Parallels: 14.1.3 (45485)

@katter

This comment has been minimized.

Copy link

commented Jun 14, 2019

Brilliant, thanks! Quick and simple. For me it was "prlfs.h" as well.

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jun 14, 2019

Cheers everyone for your kind words of thanks - I really appreciate it.
@andyrudoff and @katter - many thanks for highlighting the file name correction. 👍
We've been flat-out here trying to get Release 1 of bloss.io out, that the machine has been tied up for days. I've updated this gist based on your findings.
@kapersoft - cheers for helping out as well 👍

@Sumaid

This comment has been minimized.

Copy link

commented Jun 15, 2019

@kapersoft I have those files but not inside kmods directory, they are inside kmods/prl_mod.
So I copied from there and ran instruction
tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods
But in the installation step I am getting error:
Fri Jun 14 23:17:43 PDT 2019
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
make: Entering directory '/usr/lib/parallels-tools/kmods'
Will use compiler CC="cc".
Compiler version "cc (Ubuntu 8.3.0-6ubuntu1) 8.3.0"
cd prl_eth/pvmnet && make CC=cc
/bin/sh: 1: cd: can't cd to prl_eth/pvmnet
make: *** [Makefile.kmods:49: compile] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error during report about failed installation of parallels tools.
Error: failed to install Parallels Guest Tools!

@mag911 please help, I have latest version of parallels.

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jun 15, 2019

@Sumaid - in the root folder of your Parallel Tools installation media is a 'version' file. Open it and paste the result back here. Additionally, on the Ubuntu installation media is a /dists/disco folder, and in there is a Release file. Paste the first 10 lines back here as well.
Personally I think you need to start over from the beginning and check each step. You should be using Parallels 14.1.3 and Ubuntu 19.04 for these instructions to have any hope of working.

@phaibin

This comment has been minimized.

Copy link

commented Jun 20, 2019

It worked, thanks!

@profaj

This comment has been minimized.

Copy link

commented Jun 26, 2019

Unfortunately, while the screen resolution and cursor capture get fixed (I also saw printer sharing notification), neither shared folders nor clipboard sharing work (for me). The system hung at some point, but was fine after restarting.

Chrome started as black rectangles (both Chromium and Firefox were fine though), but it can be fixed (See: https://askubuntu.com/questions/767623/chromium-chrome-window-is-black-in-ubuntu-16-04-18-04).

BTW, I used Keep to pass the link from Linux to the host (as said, could not copy in Ubuntu and paste on the host - iMac 27" Retina).

Shared folders and clipboard are critical for me, so back to VirtualBox (which is much slower, and has a bunch of problems to fix on iMac with 27" retina monitors).

@mblataric

This comment has been minimized.

Copy link

commented Jun 27, 2019

Great fix, thanks.

I actually ended up here because I am having "black screen" issue with running Kubuntu 19.04 on Parallels. I thought installing Parallels Tools might help - but it did not.
Installation is successful, but then on restart, just hangs with black screen.
Tried "nomodeset" - same thing.

Anyone faced this as well?

@nlykkei

This comment has been minimized.

Copy link

commented Jul 8, 2019

Thanks it works, but I don't understand this command:
tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods
What's the point in adding those two extra files, if they are already added by specifying .?

@Carl-Gustaf

This comment has been minimized.

Copy link

commented Jul 9, 2019

I first had the same problem as @Sumaid. After redoing it again it worked fine! Thanks!!

@nisnevich

This comment has been minimized.

Copy link

commented Jul 10, 2019

Thank you very much! It helped a lot.

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2019

@nlykkei

Thanks it works, but I don't understand this command:
tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods
What's the point in adding those two extra files, if they are already added by specifying .?

Whatever is specified on the command line ends up in the root folder of your archive file. So if you did it your way, you would end up with just a folder in the root directory of your tar file called '.'
The command given here in this gist mimics the original, which means your tar file will end up with two files and a folder in the root directory of the archive. I assume that is what Parallels GmbH intended ...

@alexander-somov

This comment has been minimized.

Copy link

commented Jul 11, 2019

The line #include <uapi/linux/mount.h> could be temporarily added into the file /usr/src/linux-headers-5.0.0-20/include/linux/fcntl.h (version in the linux-headers-5.0.0-20 directory name can differ). Then Parallels module successully builds without modifications.

@mag911

This comment has been minimized.

Copy link
Owner Author

commented Jul 11, 2019

@alexander-somov nice! 👍

@RadianceL

This comment has been minimized.

Copy link

commented Jul 26, 2019

It works! thanks!

@redsox4886

This comment has been minimized.

Copy link

commented Aug 1, 2019

Thanks! did the trick!

@leiha

This comment has been minimized.

Copy link

commented Aug 2, 2019

🙏

@muthukumarse

This comment has been minimized.

Copy link

commented Aug 7, 2019

this trick successfully install parallel tools but copy & paste not working across host to VM.
is there any solution to that?

@dunagan5887

This comment has been minimized.

Copy link

commented Aug 8, 2019

The steps above worked for me, unbelievable. Can't thank you enough for sharing this!

@wumfi

This comment has been minimized.

Copy link

commented Aug 11, 2019

@mag911 Thank you very much. Was scratching my head about this one, and after much googling I found a link to this gist on a forum. Works like a charm.

@marcosperalta

This comment has been minimized.

Copy link

commented Aug 14, 2019

It work it for me on the last version of Prls. Just be aware of returning to the kmods folder for making the file compression. haha

@sebastienkb

This comment has been minimized.

Copy link

commented Aug 15, 2019

The line #include <uapi/linux/mount.h> could be temporarily added into the file /usr/src/linux-headers-5.0.0-20/include/linux/fcntl.h (version in the linux-headers-5.0.0-20 directory name can differ). Then Parallels module successully builds without modifications.

This method worked for me - Parallels 14.1.3 and Ubuntu 18.04 as guest.

Thank you @alexander-somov

@KevinVladG

This comment has been minimized.

Copy link

commented Sep 4, 2019

i got permission denied when trying to do the final step in installing the install-cli.sh?

@keeboard

This comment has been minimized.

Copy link

commented Sep 12, 2019

Amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.