Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Parallel Tools fix for Ubuntu 19.04, 19.10, 18.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

( @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.

mag@bloss.io www.bloss.io

@LucaTomei1995

This comment has been minimized.

Copy link

LucaTomei1995 commented Jun 8, 2019

Ctrl+tab don't work for switch applications

@mag911

This comment has been minimized.

Copy link
Owner Author

mag911 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

ChaseVoid commented Jun 9, 2019

Awesome. thanks

@LucaTomei1995

This comment has been minimized.

Copy link

LucaTomei1995 commented Jun 9, 2019

@mag11 And sorry how can I fix this?

@mag911

This comment has been minimized.

Copy link
Owner Author

mag911 commented Jun 10, 2019

@LucaTomei195 you lodge a support call with Parallels.

@andyrudoff

This comment has been minimized.

Copy link

andyrudoff 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

adflet999 commented Jun 10, 2019

excellent! many thanks for this

@RoderickdeRuijter

This comment has been minimized.

Copy link

RoderickdeRuijter commented Jun 13, 2019

Awesome, Thanks!!

@Sumaid

This comment has been minimized.

Copy link

Sumaid 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

ldir-EDB0 commented Jun 14, 2019

Very useful, short, sweet, simple fix.

@kapersoft

This comment has been minimized.

Copy link

kapersoft commented Jun 14, 2019

Thanks! It worked like a charm!

@Sumaid

This comment has been minimized.

Copy link

Sumaid 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

kapersoft 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

Sumaid 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

kapersoft 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

katter 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

mag911 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

Sumaid 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

mag911 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

phaibin commented Jun 20, 2019

It worked, thanks!

@profaj

This comment has been minimized.

Copy link

profaj 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

mblataric 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

nlykkei 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

Carl-Gustaf 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

nisnevich commented Jul 10, 2019

Thank you very much! It helped a lot.

@mag911

This comment has been minimized.

Copy link
Owner Author

mag911 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

alexander-somov 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

mag911 commented Jul 11, 2019

@alexander-somov nice! 👍

@RadianceL

This comment has been minimized.

Copy link

RadianceL commented Jul 26, 2019

It works! thanks!

@redsox4886

This comment has been minimized.

Copy link

redsox4886 commented Aug 1, 2019

Thanks! did the trick!

@leiha

This comment has been minimized.

Copy link

leiha commented Aug 2, 2019

🙏

@muthukumarse

This comment has been minimized.

Copy link

muthukumarse 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

dunagan5887 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

wumfi 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

marcosperalta 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

sebastienkb 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

@keeboard

This comment has been minimized.

Copy link

keeboard commented Sep 12, 2019

Amazing!

@wjy000

This comment has been minimized.

Copy link

wjy000 commented Sep 26, 2019

very good! Thinks!

@sigseg5

This comment has been minimized.

Copy link

sigseg5 commented Oct 15, 2019

It worked, thanks!

@parrycima

This comment has been minimized.

Copy link

parrycima commented Oct 18, 2019

it worked. thanks. gud guide!

@VirtualL

This comment has been minimized.

Copy link

VirtualL commented Oct 19, 2019

Working well on UBUNTU MATE (19.10)
Thank you

@7feilee

This comment has been minimized.

Copy link

7feilee commented Oct 21, 2019

Drag and drop wont work. We should chmod 777 prl* after chmod 777 *.sh.

@mag911

This comment has been minimized.

Copy link
Owner Author

mag911 commented Oct 22, 2019

Many thanks to all of you for your ongoing comments.
@7feilee - if you've found that that works, cool! I'll update the guide.
@VirtualL - many thanks for indicating it works on 19.10 as well.

@exohuman

This comment has been minimized.

Copy link

exohuman commented Oct 23, 2019

Thank you for this nice fix and good instructions!

@Javihache

This comment has been minimized.

Copy link

Javihache commented Oct 23, 2019

I still cannot share folders between the VM and MacOS... Also cannot share the clipboard. am I the only one?

@parrycima

This comment has been minimized.

Copy link

parrycima commented Oct 24, 2019

I still cannot share folders between the VM and MacOS... Also cannot share the clipboard. am I the only one?

No you are not. Even i cannot.

@7feilee

This comment has been minimized.

Copy link

7feilee commented Oct 24, 2019

@ebissolo

This comment has been minimized.

Copy link

ebissolo commented Oct 24, 2019

Worked fine with Parallels 10.4.0 and Ubuntu 19.04:

https://github.com/PreetPatel/parallels-tools-linux

@parrycima

This comment has been minimized.

Copy link

parrycima commented Oct 24, 2019

Worked fine with Parallels 10.4.0 and Ubuntu 19.04:

https://github.com/PreetPatel/parallels-tools-linux

Not working with Parallels 14 Ubuntu 19

@7feilee

This comment has been minimized.

Copy link

7feilee commented Oct 25, 2019

@parrycima

This comment has been minimized.

Copy link

parrycima commented Oct 25, 2019

my vm just works fine with copy and paste(ctrl + shift + c/v), doesn't have the drag and drop feature. Do you meet the problem. parrycima notifications@github.com 于2019年10月25日周五 上午12:25写道:

Worked fine with Parallels 10.4.0 and Ubuntu 19.04: https://github.com/PreetPatel/parallels-tools-linux Not working with Parallels 14 Ubuntu 19 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://gist.github.com/1a5583a766467d6023584d738cee0d98?email_source=notifications&email_token=AEOG7Q5ZN7Q24YAJSTYDG5TQQHEA5A5CNFSM4HWHGYA2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF3CBY#gistcomment-3064860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOG7QZHHULYQ7YRJZFQDE3QQHEA5ANCNFSM4HWHGYAQ .

Copy | Paste and Drag & Drop work well. But File sharing not work, Also not work the Coherence mode

@Koongcen

This comment has been minimized.

Copy link

Koongcen commented Oct 29, 2019

It also worked on 18.04, thanks!

@cg94301

This comment has been minimized.

Copy link

cg94301 commented Nov 1, 2019

Worked for me too on 18.04. thanks so much!!

@joelquatro

This comment has been minimized.

Copy link

joelquatro commented Nov 4, 2019

You are awesome! Worked like a charm on 18.04. So grateful!

@w1013d27

This comment has been minimized.

Copy link

w1013d27 commented Nov 12, 2019

my vm just works fine with copy and paste(ctrl + shift + c/v), doesn't have the drag and drop feature. Do you meet the problem. parrycima notifications@github.com 于2019年10月25日周五 上午12:25写道:

Worked fine with Parallels 10.4.0 and Ubuntu 19.04: https://github.com/PreetPatel/parallels-tools-linux Not working with Parallels 14 Ubuntu 19 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://gist.github.com/1a5583a766467d6023584d738cee0d98?email_source=notifications&email_token=AEOG7Q5ZN7Q24YAJSTYDG5TQQHEA5A5CNFSM4HWHGYA2YY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF3CBY#gistcomment-3064860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOG7QZHHULYQ7YRJZFQDE3QQHEA5ANCNFSM4HWHGYAQ .

Copy | Paste and Drag & Drop work well. But File sharing not work, Also not work the Coherence mode
Sharing file is also ok!

Screen Shot 2019-11-13 at 12 03 00 AM

then
sudo mount -t prl_fs home /mnt/
ubuntu19.10 parallel desktop 14.2

@iWeslie

This comment has been minimized.

Copy link

iWeslie commented Nov 18, 2019

It works for Manjaro too. Thanks too much🤩

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.