Create a gist now

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.

Show comment
Hide comment
@ArtrezZhao

ArtrezZhao May 15, 2018

It works! Many thanks

It works! Many thanks

@innodron

This comment has been minimized.

Show comment
Hide comment
@innodron

innodron May 15, 2018

Worked like a charm. Thanks!

Worked like a charm. Thanks!

@brianschell

This comment has been minimized.

Show comment
Hide comment
@brianschell

brianschell May 15, 2018

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

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

@xcray

This comment has been minimized.

Show comment
Hide comment
@xcray

xcray May 16, 2018

Works very well on Kali 2018.2, Thanks Very Much!

xcray commented May 16, 2018

Works very well on Kali 2018.2, Thanks Very Much!

@trus0und

This comment has been minimized.

Show comment
Hide comment
@trus0und

trus0und May 16, 2018

This worked great for me. Many thanks!!

This worked great for me. Many thanks!!

@PinkFrosty

This comment has been minimized.

Show comment
Hide comment
@PinkFrosty

PinkFrosty May 16, 2018

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

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

@Lykan-sec

This comment has been minimized.

Show comment
Hide comment
@Lykan-sec

Lykan-sec May 16, 2018

Works very well, Thank you!!!

Works very well, Thank you!!!

@gouez

This comment has been minimized.

Show comment
Hide comment

gouez commented May 16, 2018

thx

@arumel

This comment has been minimized.

Show comment
Hide comment
@arumel

arumel May 16, 2018

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

arumel commented May 16, 2018

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

@fasterliu

This comment has been minimized.

Show comment
Hide comment
@fasterliu

fasterliu May 16, 2018

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

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

@wpwoodjr

This comment has been minimized.

Show comment
Hide comment
@wpwoodjr

wpwoodjr May 17, 2018

Thanks works great on Ubuntu 18.04!

wpwoodjr commented May 17, 2018

Thanks works great on Ubuntu 18.04!

@LinXunFeng

This comment has been minimized.

Show comment
Hide comment
@LinXunFeng

LinXunFeng May 17, 2018

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

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

@alexander-yakushev

This comment has been minimized.

Show comment
Hide comment
@alexander-yakushev

alexander-yakushev May 17, 2018

Thanks! Got my mouse back.

Thanks! Got my mouse back.

@xaljox

This comment has been minimized.

Show comment
Hide comment
@xaljox

xaljox 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.

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.

Show comment
Hide comment
@macdoor

macdoor May 20, 2018

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

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.

Show comment
Hide comment
@d-helios

d-helios May 21, 2018

Thanks!
It's works.

Thanks!
It's works.

@jakubgg

This comment has been minimized.

Show comment
Hide comment
@jakubgg

jakubgg May 21, 2018

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

jakubgg commented May 21, 2018

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

@tuanhuudl

This comment has been minimized.

Show comment
Hide comment
@tuanhuudl

tuanhuudl May 21, 2018

Thank! So Much

Thank! So Much

@SiNaPsEr0x

This comment has been minimized.

Show comment
Hide comment
@SiNaPsEr0x

SiNaPsEr0x May 21, 2018

you are a boss!

you are a boss!

@Xaositek

This comment has been minimized.

Show comment
Hide comment
@Xaositek

Xaositek May 21, 2018

Worked like a charm!

Worked like a charm!

@aaronkampmeier

This comment has been minimized.

Show comment
Hide comment
@aaronkampmeier

aaronkampmeier May 22, 2018

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

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

@yogoo

This comment has been minimized.

Show comment
Hide comment
@yogoo

yogoo May 23, 2018

So great, works perfectly. Thanks!

yogoo commented May 23, 2018

So great, works perfectly. Thanks!

@aleohl

This comment has been minimized.

Show comment
Hide comment
@aleohl

aleohl May 23, 2018

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

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.

Show comment
Hide comment
@dpb657

dpb657 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 .

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.

Show comment
Hide comment
@KageShiron

KageShiron May 26, 2018

Thanks! It works on Kali.

Thanks! It works on Kali.

@ntamvl

This comment has been minimized.

Show comment
Hide comment
@ntamvl

ntamvl May 29, 2018

It works! Thank you so much! <3

ntamvl commented May 29, 2018

It works! Thank you so much! <3

@diimdeep

This comment has been minimized.

Show comment
Hide comment

Works!

@wudi

This comment has been minimized.

Show comment
Hide comment
@wudi

wudi Jun 13, 2018

It works! 👍

wudi commented Jun 13, 2018

It works! 👍

@kishanpatel97

This comment has been minimized.

Show comment
Hide comment
@kishanpatel97

kishanpatel97 Jun 16, 2018

Thank you this works!

Thank you this works!

@vnijs

This comment has been minimized.

Show comment
Hide comment
@vnijs

vnijs Jun 23, 2018

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

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.

Show comment
Hide comment
@opresco

opresco Jun 27, 2018

Thank you, Rudolf!

opresco commented Jun 27, 2018

Thank you, Rudolf!

@LucaTom15031995

This comment has been minimized.

Show comment
Hide comment
@LucaTom15031995

LucaTom15031995 Jul 2, 2018

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

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.

Show comment
Hide comment
@dvska

dvska Jul 5, 2018

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

dvska commented Jul 5, 2018

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

@databill

This comment has been minimized.

Show comment
Hide comment
@databill

databill Jul 6, 2018

It does not work for Fedora 28.

databill commented Jul 6, 2018

It does not work for Fedora 28.

@stickystyle

This comment has been minimized.

Show comment
Hide comment
@stickystyle

stickystyle Jul 6, 2018

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

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.

Show comment
Hide comment
@joshvickerson

joshvickerson 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!

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.

Show comment
Hide comment
@SiNaPsEr0x

SiNaPsEr0x Aug 3, 2018

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

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

@ashokbugude

This comment has been minimized.

Show comment
Hide comment
@ashokbugude

ashokbugude 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

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.

Show comment
Hide comment
@tresf

tresf 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.

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.

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