Instantly share code, notes, and snippets.

Embed
What would you like to do?
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15

Preparation

  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

We have to modify some files:

  • Go to kmods directory (cd ~/Desktop/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)

Changing file 1/3

  • Go to "prl_eth/pvmnet/" (cd ~/Desktop/parallels_fixed/kmods/prl_eth/pvmnet) directory
  • Open "pvmnet.c" file in a text editor
  • Edit line 438:
MODULE_LICENSE("Parallels");

to

MODULE_LICENSE("GPL");
  • Save

Changing file 2/3

  • Go to "prl_tg/Toolgate/Guest/Linux/prl_tg/" (cd ~/Desktop/parallels_fixed/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg) directory
  • Open "prltg.c" file in a text editor
  • Edit line 1535:
MODULE_LICENSE("Parallels");

to

MODULE_LICENSE("GPL");
  • Save

Changing file 3/3

  • Go to "prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/" (cd ~/Desktop/parallels_fixed/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze)
  • Open "prl_fs_freeze.c" file in a text editor
  • in line 212 you will find a function "thaw_timer_fn":
void thaw_timer_fn(unsigned long data)
{
   struct work_struct *work = (struct work_struct *)data;
   
   schedule_work(work);
}

Change it to:

void thaw_timer_fn(unsigned long data)
{
   struct work_struct *work = (struct work_struct *)data;
   
   schedule_work(work);
}

void thaw_timer_fn_new_kernel(struct timer_list *data)
{
   struct work_struct *work = data->expires;
   
   schedule_work(work);
}

Then change a line 220 from:

DEFINE_TIMER(thaw_timer, thaw_timer_fn, 0, (unsigned long)&(thaw_work));

to

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
DEFINE_TIMER(thaw_timer, thaw_timer_fn_new_kernel);
#else
DEFINE_TIMER(thaw_timer, thaw_timer_fn, 0, (unsigned long)&(thaw_work));
#endif

Zip it back

  • Go to kmods directory (cd ~/Desktop/parallels_fixed/kmods) and zip: tar -zcvf prl_mod.tar.gz . dkms.conf Makefile.kmods
  • Now you should see "prl_mod.tar.gz" file in this directory

Install!

  • Go one level up (cd ../ or cd ~/Desktop/parallels_fixed) and install it by running sudo ./install

In case of problems with Sharing Folder try to sudo chmod +x /usr/bin/prlfsmountd. (Suggested by @macdoor - Thanks!)

First two changes are hacks, changing licensing type and i cannot post complete, built package. Third file change was needed as backward incompatible changes were released in version 4.15 of the Linux kernel, on November 2017 by Linus. https://github.com/torvalds/linux/blob/master/include/linux/time.h

@ArtrezZhao

This comment has been minimized.

Copy link

ArtrezZhao commented May 15, 2018

It works! Many thanks

@innodron

This comment has been minimized.

Copy link

innodron commented May 15, 2018

Worked like a charm. Thanks!

@ghost

This comment has been minimized.

Copy link

ghost commented May 15, 2018

Easy to follow, step-by-step. You're good at this!

@xcray

This comment has been minimized.

Copy link

xcray commented May 16, 2018

Works very well on Kali 2018.2, Thanks Very Much!

@trus0und

This comment has been minimized.

Copy link

trus0und commented May 16, 2018

This worked great for me. Many thanks!!

@PinkFrosty

This comment has been minimized.

Copy link

PinkFrosty commented May 16, 2018

Thank you!!! It worked on Fedora 26 kernel 4.16.7.100.fc26.x86_64

@Lykan-sec

This comment has been minimized.

Copy link

Lykan-sec commented May 16, 2018

Works very well, Thank you!!!

@gouez

This comment has been minimized.

Copy link

gouez commented May 16, 2018

thx

@arumel

This comment has been minimized.

Copy link

arumel commented May 16, 2018

This worked for me in Fedora 27 and kernel 4.16. Thanks!

@fasterliu

This comment has been minimized.

Copy link

fasterliu commented May 16, 2018

Thank you! It works very well on Ubuntu 18.04 LTS.

@wpwoodjr

This comment has been minimized.

Copy link

wpwoodjr commented May 17, 2018

Thanks works great on Ubuntu 18.04!

@LinXunFeng

This comment has been minimized.

Copy link

LinXunFeng commented May 17, 2018

Thank you! But, Unable to share file,has anyone ever encountered such a problem?

@alexander-yakushev

This comment has been minimized.

Copy link

alexander-yakushev commented May 17, 2018

Thanks! Got my mouse back.

@xaljox

This comment has been minimized.

Copy link

xaljox commented May 18, 2018

It worked partly for me. The resolution is now OK, first after upgrading my Ubuntu 16.04 to 18.04 resulted in a fixed 800x600 display when booted from parallels. After the described fix, this was Ok. But The shared folders with my Mac do not work. The documents and Downloads etc are not accesible.

@macdoor

This comment has been minimized.

Copy link

macdoor commented May 20, 2018

after installed Parallels Tools, use this command, share folder should be okay.
sudo chmod +x /usr/bin/prlfsmountd

@d-helios

This comment has been minimized.

Copy link

d-helios commented May 21, 2018

Thanks!
It's works.

@jakubgg

This comment has been minimized.

Copy link

jakubgg commented May 21, 2018

Amazing! Works like a charm. Thank you very much!

@tuanhuudl

This comment has been minimized.

Copy link

tuanhuudl commented May 21, 2018

Thank! So Much

@SiNaPsEr0x

This comment has been minimized.

Copy link

SiNaPsEr0x commented May 21, 2018

you are a boss!

@Xaositek

This comment has been minimized.

Copy link

Xaositek commented May 21, 2018

Worked like a charm!

@aaronkampmeier

This comment has been minimized.

Copy link

aaronkampmeier commented May 22, 2018

Spent hours searching for a fix and finally found this! Thanks!

@yogoo

This comment has been minimized.

Copy link

yogoo commented May 23, 2018

So great, works perfectly. Thanks!

@aleohl

This comment has been minimized.

Copy link

aleohl commented May 23, 2018

Thanks, rather odd that this isn't fixed by Parallels. I mean the software isn't cheap.

@dpb657

This comment has been minimized.

Copy link

dpb657 commented May 23, 2018

Let me start with saying thank you.

Also changing the licensing of their modules is not something Parallels will do lightly. Just getting the corporate lawyers to agree even if they wanted to make take months.

Tarring the files back up can be done as:
tar --exclude prl_mod.tar.gz -zcvf prl_mod.tar.gz .

@KageShiron

This comment has been minimized.

Copy link

KageShiron commented May 26, 2018

Thanks! It works on Kali.

@ntamvl

This comment has been minimized.

Copy link

ntamvl commented May 29, 2018

It works! Thank you so much! <3

@diimdeep

This comment has been minimized.

Copy link

diimdeep commented Jun 10, 2018

Works!

@wudi

This comment has been minimized.

Copy link

wudi commented Jun 13, 2018

It works! 👍

@kishanpatel97

This comment has been minimized.

Copy link

kishanpatel97 commented Jun 16, 2018

Thank you this works!

@vnijs

This comment has been minimized.

Copy link

vnijs commented Jun 23, 2018

Anyone got this working with Linux Mint 19? https://blog.linuxmint.com/?p=3581

@opresco

This comment has been minimized.

Copy link

opresco commented Jun 27, 2018

Thank you, Rudolf!

@ghost

This comment has been minimized.

Copy link

ghost commented Jul 2, 2018

Sorry Rudolf, but with the new update of linux-headers, parallels tools won't work! Please fix this issue

@dvska

This comment has been minimized.

Copy link

dvska commented Jul 5, 2018

Wasn't lucky for Linux Mint 19. Enjoying 800x600 on Retina display :)

@databill

This comment has been minimized.

Copy link

databill commented Jul 6, 2018

It does not work for Fedora 28.

@stickystyle

This comment has been minimized.

Copy link

stickystyle commented Jul 6, 2018

Just installed Ubuntu 18.04 on Parallels 13, the stock tools installed fine now without any of these patches.

@joshvickerson

This comment has been minimized.

Copy link

joshvickerson commented Jul 17, 2018

This worked perfectly to install Parallels tools in the Elementary OS 5 beta on Parallels 12! Such an easy fix, so annoying they're holding it behind a paid upgrade. Thanks so much, @rudolfratusinski!

@SiNaPsEr0x

This comment has been minimized.

Copy link

SiNaPsEr0x commented Aug 3, 2018

help with 13.3.1 43365 with new kernel 4.17 this fix not work :(

@ashokbugude

This comment has been minimized.

Copy link

ashokbugude commented Aug 7, 2018

Hi Thanks, I was able to install Parallel tools in ubuntu 18.04
But
the shared folders from Mac (Host OS) are not mounted in 'Parallel Desktop' folder of ubuntu.
The Parallel Desktop folder is blank. Can I know if there is any hack to share the files between linux and mac

@tresf

This comment has been minimized.

Copy link

tresf commented Aug 9, 2018

They've patched this per https://forum.parallels.com/threads/parallels-tools-ubuntu-budgie-18-04.344138/#post-840483

Update Parallels (Control Center, Parallels Desktop Menu, Check for Updates), when VM comes back online, unmount the CD, remount the CD and try again.

@NicolaeCasir

This comment has been minimized.

Copy link

NicolaeCasir commented Aug 21, 2018

OMG.. Thank you, Man!!!!

@kennylai1997

This comment has been minimized.

Copy link

kennylai1997 commented Aug 25, 2018

It works on PD12!!!
Thank you very much!!!

@brittanymanuel-cs

This comment has been minimized.

Copy link

brittanymanuel-cs commented Aug 30, 2018

Thanks very much, worked for me on Parallels 12 on MacBook Air (2014) with Ubuntu 18.04.

@tiusender

This comment has been minimized.

Copy link

tiusender commented Sep 2, 2018

This worked flawlessly, thank you very much!

@tonyb3

This comment has been minimized.

Copy link

tonyb3 commented Sep 13, 2018

Thanks you so much.

@abizit

This comment has been minimized.

Copy link

abizit commented Sep 14, 2018

Works like a Charm!!! Thanks !!!

@ajm-asiaa

This comment has been minimized.

Copy link

ajm-asiaa commented Oct 4, 2018

Thank you! It works with Parallels 12 on ubuntu 18.04.

@memset0

This comment has been minimized.

Copy link

memset0 commented Oct 27, 2018

thanks

@schwarzeni

This comment has been minimized.

Copy link

schwarzeni commented Oct 31, 2018

awesome!!!

@mromanelli9

This comment has been minimized.

Copy link

mromanelli9 commented Nov 7, 2018

Awesome work!! It worked for me too.
Parallels Desktop 13.1.0 for Mac and Ubuntu 14.04.5

@jklakoff

This comment has been minimized.

Copy link

jklakoff commented Nov 11, 2018

Thank you, rudolfratusinski. This worked perfectly. Thank you for taking the time to document this in a clear and concise manner. This was easy to follow and accomplished exactly what I needed.

@jinbeomhong

This comment has been minimized.

Copy link

jinbeomhong commented Nov 13, 2018

AWESOME!

@vampire321

This comment has been minimized.

Copy link

vampire321 commented Nov 29, 2018

THANK YOU! It helps me a lot!

@Zeta611

This comment has been minimized.

Copy link

Zeta611 commented Dec 16, 2018

Brilliant!

@AbnerZheng

This comment has been minimized.

Copy link

AbnerZheng commented Dec 26, 2018

It works! Thank you.

@huynhjabao1997

This comment has been minimized.

Copy link

huynhjabao1997 commented Jan 4, 2019

Thanks. My Problem has been solved!

@TommyTew

This comment has been minimized.

Copy link

TommyTew commented Jan 26, 2019

THIS MAN IS A GENIUS!!!!!

@wkirkham

This comment has been minimized.

Copy link

wkirkham commented Feb 3, 2019

This solve all of my problems with Parallels and UBUNTU. I was stuck with a small, low resolution window on a large monitor. Reinstalling the Parallel Tools fixed this, plus Dropbox and Google Drive are showing up on the screen.

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