Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

@LucaTomei

This comment has been minimized.

Copy link

@LucaTomei LucaTomei commented Jun 8, 2019

Ctrl+tab don't work for switch applications

@mag911

This comment has been minimized.

Copy link
Owner Author

@mag911 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 ChaseVoid commented Jun 9, 2019

Awesome. thanks

@LucaTomei

This comment has been minimized.

Copy link

@LucaTomei LucaTomei commented Jun 9, 2019

@mag11 And sorry how can I fix this?

@mag911

This comment has been minimized.

Copy link
Owner Author

@mag911 mag911 commented Jun 10, 2019

@LucaTomei195 you lodge a support call with Parallels.

@andyrudoff

This comment has been minimized.

Copy link

@andyrudoff 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).

@afletch2020

This comment has been minimized.

Copy link

@afletch2020 afletch2020 commented Jun 10, 2019

excellent! many thanks for this

@RoderickdeRuijter

This comment has been minimized.

Copy link

@RoderickdeRuijter RoderickdeRuijter commented Jun 13, 2019

Awesome, Thanks!!

@Sumaid

This comment has been minimized.

Copy link

@Sumaid 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 ldir-EDB0 commented Jun 14, 2019

Very useful, short, sweet, simple fix.

@kapersoft

This comment has been minimized.

Copy link

@kapersoft kapersoft commented Jun 14, 2019

Thanks! It worked like a charm!

@Sumaid

This comment has been minimized.

Copy link

@Sumaid 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 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 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 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 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 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 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 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 phaibin commented Jun 20, 2019

It worked, thanks!

@profaj

This comment has been minimized.

Copy link

@profaj 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 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 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 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 nisnevich commented Jul 10, 2019

Thank you very much! It helped a lot.

@mag911

This comment has been minimized.

Copy link
Owner Author

@mag911 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 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 mag911 commented Jul 11, 2019

@alexander-somov nice! 👍

@RadianceL

This comment has been minimized.

Copy link

@RadianceL RadianceL commented Jul 26, 2019

It works! thanks!

@redsox4886

This comment has been minimized.

Copy link

@redsox4886 redsox4886 commented Aug 1, 2019

Thanks! did the trick!

@leiha

This comment has been minimized.

Copy link

@leiha leiha commented Aug 2, 2019

🙏

@muthukumarse

This comment has been minimized.

Copy link

@muthukumarse 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 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 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 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 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 keeboard commented Sep 12, 2019

Amazing!

@wjy000

This comment has been minimized.

Copy link

@wjy000 wjy000 commented Sep 26, 2019

very good! Thinks!

@sigseg5

This comment has been minimized.

Copy link

@sigseg5 sigseg5 commented Oct 15, 2019

It worked, thanks!

@parrycima

This comment has been minimized.

Copy link

@parrycima parrycima commented Oct 18, 2019

it worked. thanks. gud guide!

@VirtualL

This comment has been minimized.

Copy link

@VirtualL VirtualL commented Oct 19, 2019

Working well on UBUNTU MATE (19.10)
Thank you

@7feilee

This comment has been minimized.

Copy link

@7feilee 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 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 exohuman commented Oct 23, 2019

Thank you for this nice fix and good instructions!

@Javihache

This comment has been minimized.

Copy link

@Javihache 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 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 7feilee commented Oct 24, 2019

@ebissolo

This comment has been minimized.

Copy link

@ebissolo 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 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 7feilee commented Oct 25, 2019

@parrycima

This comment has been minimized.

Copy link

@parrycima 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 Koongcen commented Oct 29, 2019

It also worked on 18.04, thanks!

@cg94301

This comment has been minimized.

Copy link

@cg94301 cg94301 commented Nov 1, 2019

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

@joelquatro

This comment has been minimized.

Copy link

@joelquatro 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 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 iWeslie commented Nov 18, 2019

It works for Manjaro too. Thanks too much🤩

@ricklamers

This comment has been minimized.

Copy link

@ricklamers ricklamers commented Dec 3, 2019

Also worked on 18.04 for me too!

@SCaptainCAP

This comment has been minimized.

Copy link

@SCaptainCAP SCaptainCAP commented Dec 18, 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.

To be sure which headers directory you should use just cat the /var/log/parallels-tools-install.log and search the headers word. There will be the log on the screenshot with the source directory you should use (/usr/src/linux-headers-5.3.0-24-generic in my case)

image

@BarryDeng

This comment has been minimized.

Copy link

@BarryDeng BarryDeng commented Jan 2, 2020

Worked on Ubuntu 20.04 focal. Awesome!

@rafalyesware

This comment has been minimized.

Copy link

@rafalyesware rafalyesware commented Jan 5, 2020

With parallels 15 & parallels tools 15.1.2.47123, adding that include file breaks the build. But even though my modules build fine without it, I still can't even get clipboard integration working :/

@hebtuerror404

This comment has been minimized.

Copy link

@hebtuerror404 hebtuerror404 commented Jan 31, 2020

Please note that in Ubuntu 19.04, the following command may be required to downgrade the package:
sudo apt-get install libelf1=0.165-3ubuntu1.2

@muyexi

This comment has been minimized.

Copy link

@muyexi muyexi commented Feb 23, 2020

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?

Here it just took a bit longer to start after the fix.

@mag911

This comment has been minimized.

Copy link
Owner Author

@mag911 mag911 commented Feb 23, 2020

@hebtuerror404

This comment has been minimized.

Copy link

@hebtuerror404 hebtuerror404 commented Mar 11, 2020

Working well on 5.3.0-kali2-amd64 !

@KZL1992

This comment has been minimized.

Copy link

@KZL1992 KZL1992 commented Apr 20, 2020

Additionally, I had to modify the following files:
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile:20
DRIVER_DIR ?= $(shell pwd)
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:18
$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules

NB: That is for Ubuntu 20.04 "kernel 5.4.0-21" and Parallels: 14.1.3 (45485).

@tomslominski

This comment has been minimized.

Copy link

@tomslominski tomslominski commented Apr 24, 2020

I agree, looks like those two additional fixes @KZL1992 posted in the last comment are essential under the release version of 20.04. Thanks! 🙂

@ptrofi

This comment has been minimized.

Copy link

@ptrofi ptrofi commented Apr 24, 2020

Just FYI, with Parallels Desktop Pro 15.1.3 (47255), the Parallels Tools installed just fine, without any modifications applied, onto the final release build of Ubuntu 20.04.

@n-thumann

This comment has been minimized.

Copy link

@n-thumann n-thumann commented Apr 24, 2020

Instead of manually patching Parallels Tools, it´s also possible to simply replace your old prl-tools-lin.iso with the one from the most recent one, even if you´re running an older version of Parallels Desktop. For example, I´m running Parallels Desktop 13 with the current Tools ISO from PD 15 and Ubuntu 20.04 is running perfectly fine. You can find a short guide here with several combinations of Kernels, Distributions and Parallels Tools ✌️

@df-a

This comment has been minimized.

Copy link

@df-a df-a commented Apr 30, 2020

If you get a "Package manager is locked" error, you have to unlock apt.

$ sudo rm -rf /var/lib/dpkg/lock
$ sudo dpkg --configure -a

This seems to allow me to install the default parallels tools package normally afterwards as well, no modding required.

At least in focal fossa, can't say the same for other distros as I haven't investigated it.

@df-a

This comment has been minimized.

Copy link

@df-a df-a commented Apr 30, 2020

Just FYI, with Parallels Desktop Pro 15.1.3 (47255), the Parallels Tools installed just fine, without any modifications applied, onto the final release build of Ubuntu 20.04.

Me too first time, but upon subsequent installs it wouldn't want to. First time I did a normal install, and subsequent ones were "minimal" though, that may be the clue yet I have no time to investigate this further.

@dh1tw

This comment has been minimized.

Copy link

@dh1tw dh1tw commented May 1, 2020

Instead of manually patching Parallels Tools, it´s also possible to simply replace your old prl-tools-lin.iso with the one from the most recent one, even if you´re running an older version of Parallels Desktop. For example, I´m running Parallels Desktop 13 with the current Tools ISO from PD 15 and Ubuntu 20.04 is running perfectly fine. You can find a short guide here with several combinations of Kernels, Distributions and Parallels Tools ✌️

Best and easiest hack I've seen so far. Works great in Parallels Desktop 14 with Ubuntu 20.04 🍾 🎉

@gabrieltavaresmelo

This comment has been minimized.

Copy link

@gabrieltavaresmelo gabrieltavaresmelo commented May 2, 2020

Instead of manually patching Parallels Tools, it´s also possible to simply replace your old prl-tools-lin.iso with the one from the most recent one, even if you´re running an older version of Parallels Desktop. For example, I´m running Parallels Desktop 13 with the current Tools ISO from PD 15 and Ubuntu 20.04 is running perfectly fine. You can find a short guide here with several combinations of Kernels, Distributions and Parallels Tools ✌️

Best and easiest hack I've seen so far. Works great in Parallels Desktop 14 with Ubuntu 20.04 🍾 🎉

This link worked perfectly:
https://n-thumann.de/blog/running-newer-linux-kernels-in-older-parallels-desktop-versions/

@bradennapier

This comment has been minimized.

Copy link

@bradennapier bradennapier commented May 6, 2020

I compiled this and many other pieces for Manjaro v20 & Linux 5.6+ into a guide over at the manjaro forums. Thanks for your post as it helped me figure it all out!

https://forum.manjaro.org/t/manjaro-v20-linux-kernel-5-6-w-parallels-tools-guide/140794

@zwithz

This comment has been minimized.

Copy link

@zwithz zwithz commented May 12, 2020

Additionally, I had to modify the following files:
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile:20
DRIVER_DIR ?= $(shell pwd)
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:18
$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules

NB: That is for Ubuntu 20.04 "kernel 5.4.0-21" and Parallels: 14.1.3 (45485).

Thanks, It works for me 😆

@23786

This comment has been minimized.

Copy link

@23786 23786 commented May 12, 2020

Paralles Desktop 15.1.3 on macOS 15.4, Ubuntu 20.04.
After I run the "sudo ./install-cli.sh -i --verbose" command,
It looks like this:

Get:1 http://security.ubuntu.com/.... [xxx kb]
Get:2 http://security.ubuntu.com/... [xxx kb]
...
Get:28 http://security.ubuntu.com/... [xxx kb]
Fetch 7898kb in 30min9s
Reading Package lists..
return code from apt-get update is 0

And there is no output since this.
Is this right or some errors have occurred?

@23786

This comment has been minimized.

Copy link

@23786 23786 commented May 16, 2020

I found a solution which works on my Ubuntu 20.04:
do "sudo apt-get install gcc" and "sudo apt-get install dkms" in terminal.
and then install the Parallels Tools (either install-gui or install.sh) and restart.
Everything is right. you needn't modify anything.

@swchiow

This comment has been minimized.

Copy link

@swchiow swchiow commented May 21, 2020

Additionally, I had to modify the following files:
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile:20
DRIVER_DIR ?= $(shell pwd)
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:18
$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules

NB: That is for Ubuntu 20.04 "kernel 5.4.0-21" and Parallels: 14.1.3 (45485).

Works for me. Thanks @KZL1992 !!

@KZL1992

This comment has been minimized.

Copy link

@KZL1992 KZL1992 commented Jun 1, 2020

In case someone gets the crazy idea of updating Ubuntu with the most recent kernel (currently 5.7 while I am writing).
Here are the additional commands to fix issues for kernel > 5.5.
(from the root of the copied directory "~/parallels_fixed" )

FILELIST="./kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prlfs_freeze_compat.h"
FILELIST="./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_common.h $FILELIST"
FILELIST="./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/prlfs_compat.h $FILELIST"
FILELIST="./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg.c $FILELIST"
FILELIST="./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/super.c $FILELIST"
FILELIST="./kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.c $FILELIST"

for FILE in $FILELIST; do
sed "s/file_operations/proc_ops/g" -i $FILE
sed "s/.write/.proc_write/g" -i $FILE
sed "s/.unlocked_ioctl/.proc_ioctl/g" -i $FILE
sed "s/.open/.proc_open/g" -i $FILE
sed "s/.read/.proc_read/g" -i $FILE
sed "s/.release/.proc_release/g" -i $FILE
sed "s/.mmap/.proc_mmap/g" -i $FILE
sed "s/.llseek/.proc_lseek/g" -i $FILE
sed "/.*.owner.THIS.MODULE./Id" -i $FILE
done

sed '25iKBUILD_EXTRA_SYMBOLS := $(DRIVER_DIR)/../../../../../prl_tg/Toolgate/Guest/Linux/prl_tg/Module.symvers' -i ./kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/Makefile

NB: The main issue is due to a change in a structure of the kernel "file_operations --> proc_ops"
(commit:3dfa92633af3; git diff -w 9ef20389622d 30745068fb39)

Cheers

@CarlBye

This comment has been minimized.

Copy link

@CarlBye CarlBye commented Nov 16, 2020

Additionally, I had to modify the following files:
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile:20
DRIVER_DIR ?= $(shell pwd)
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:18
$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules

NB: That is for Ubuntu 20.04 "kernel 5.4.0-21" and Parallels: 14.1.3 (45485).

thx, it works!!!

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.