Parallels Tools fail to install after update to Ubuntu 14.04

Discussion in 'Linux Guest OS Discussion' started by VasiliiB, Mar 18, 2019.

  1. VasiliiB

    VasiliiB Bit Poster

    Messages:
    2
    After I've installed a new portion of updates to Ubuntu 14.04 the mouse cursor disappeared both in 32 bit and 64 bit version. I've installed the latest update to Parallels Desktop and it tried to reinstall Parallels Tools, but the installer failed. In /var/log/parallels-tools-install.log I see those problems:
    Code:
      CC [M]  /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.o
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.c: In function 'tg_req_map_user_pages':
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.c:111:2: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [enabled by default]
      got = prl_get_user_pages(
      ^
    In file included from include/linux/scatterlist.h:7:0,
                     from include/linux/dmapool.h:14,
                     from include/linux/pci.h:1232,
                     from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.c:7:
    include/linux/mm.h:1222:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
     long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
          ^
    /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.c:111:2: error: too many arguments to function 'get_user_pages'
      got = prl_get_user_pages(
      ^
    In file included from include/linux/scatterlist.h:7:0,
                     from include/linux/dmapool.h:14,
                     from include/linux/pci.h:1232,
                     from /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prltg_call.c:7:
    include/linux/mm.h:1222:6: note: declared here
     long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
          ^
    
    Full log is attached below. This looks very similar to this problem reported for the nvidia drivers:
    https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1573508

    They've fixed it with that patch:
    http://launchpadlibrarian.net/41524...ntu0.14.04.1_384.130-0ubuntu0.14.04.2.diff.gz

    Please investigate and update the Parallels Tools image to a working one as soon as possible, my work depends on that :(
     

    Attached Files:

    PatrickB16 likes this.
  2. MarkG3

    MarkG3 Bit Poster

    Messages:
    8
    I have the same issues with mouse cursor hidden and tools installer failing with both Ubuntu 16.04 and 18.04... :(
     
  3. SanjuP

    SanjuP Bit Poster

    Messages:
    1
    Please uninstall the latest linux kernel and reboot (mine was 4.4.0-143) and automatically reverted to (4.4.0-142-generic):
    Step 1: sudo apt-get purge linux-image-4.4.0-143-generic, sudo apt-get purge linux-image-4.4.0-143-generic, sudo reboot
    Step 2: verify if the downgrade was successful i.e output of: uname -r
    Step 3: re-install parallels tools.
     
    sam452 likes this.
  4. VasiliiB

    VasiliiB Bit Poster

    Messages:
    2
    Thanks. But please update Parallels Tools image to work with the latest linux kernel (4.4.0-143) so that we're able to keep our system up to date together with installed Parallels Tools.
     
  5. jf1

    jf1 Bit Poster

    Messages:
    7
    This is affecting me as well, should we expect an update?
     
  6. sam452

    sam452 Bit Poster

    Messages:
    25
    My attempt to follow @SanjuP steps returned failure:
    sudo apt-get purge linux-image-4.4.0-143-generic
    The following packages will be REMOVED:
    linux-image-4.4.0-143-generic*
    0 upgraded, 0 newly installed, 1 to remove and 22 not upgraded.
    After this operation, 7,218 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 335781 files and directories currently installed.)
    Removing linux-image-4.4.0-143-generic (4.4.0-143.169) ...
    E: Aborting removal of the running kernel
    dpkg: error processing package linux-image-4.4.0-143-generic (--purge):
    subprocess installed pre-removal script returned error exit status 1
    Errors were encountered while processing:
    linux-image-4.4.0-143-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    This is the log of /var/log/dpkg which I hope is helpful. Not clear to me yet.

    2019-03-26 03:10:05 startup packages purge
    2019-03-26 03:10:05 status installed linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 remove linux-generic:amd64 4.4.0.143.151 <none>
    2019-03-26 03:10:07 status half-configured linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status half-installed linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status not-installed linux-generic:amd64 <none>
    2019-03-26 03:10:07 status installed linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 remove linux-image-generic:amd64 4.4.0.143.151 <none>
    2019-03-26 03:10:07 status half-configured linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status half-installed linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status config-files linux-image-generic:amd64 4.4.0.143.151
    2019-03-26 03:10:07 status not-installed linux-image-generic:amd64 <none>
    2019-03-26 03:10:07 status installed linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:07 remove linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169 <none>
    2019-03-26 03:10:07 status half-configured linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:07 status half-installed linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 purge linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169 <none>
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status config-files linux-modules-extra-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 status not-installed linux-modules-extra-4.4.0-143-generic:amd64 <none>
    2019-03-26 03:10:08 status installed linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:08 remove linux-image-4.4.0-143-generic:amd64 4.4.0-143.169 <none>
    2019-03-26 03:10:08 status half-configured linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:10:30 status installed linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:11:07 startup packages purge
    2019-03-26 03:11:07 status installed linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:11:08 remove linux-image-4.4.0-143-generic:amd64 4.4.0-143.169 <none>
    2019-03-26 03:11:08 status half-configured linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
    2019-03-26 03:11:11 status installed linux-image-4.4.0-143-generic:amd64 4.4.0-143.169
     
  7. PatrickB16

    PatrickB16 Bit Poster

    Messages:
    3
    The problem you are seeing is caused by trying to remove the kernel that the OS is currently using. Instead of trying to uninstall the kernel, you can use grub to select the kernel you want to use at boot. I switched back to .142 with grub and was able to install the tools. Unfortunately, even that is not a perfect solution. There are some tools that won't install and 3d acceleration is still broken. They really need to release a proper fix.
     
  8. sam452

    sam452 Bit Poster

    Messages:
    25
    Yes, thank you.
    How did you get to the grub dialog when starting Ubuntu in Parallels? I've tried multiple combinations of shift, ESC to beat the loading of the kernel to get to choose a different kernel.
     
  9. PatrickB16

    PatrickB16 Bit Poster

    Messages:
    3
    I ran into that as well, but I thought it was just me. I gt around it by modifying the grunt config to always display the grunt loader at boot. To do that:

    1. Start up the guest OS. Once it reaches the login screen, use ctrl + alt + F3 to drop to the command line shell.
    2. Enter your username and password.
    3. On the command line enter
    Code:
    sudo nano /etc/default/grub
    . nano is just my preferred lightweight text editor, you can use whatever editor works best for you.
    4. Look for the line
    and comment it out.
    5. Save your changes and exit back to the command line.
    6. Run the command
    Code:
    sudo update-grub
    to apply your changes. If you are running grub2 you will need to modify that command to sudo update-grub2.
    7. Restart your system using the
    Code:
    reboot
    command.
    8. When the system reboots you should see the grub menu. Select 'Advanced Options' and pick the kernel you want. Keep in mind, you will have to do this every time you boot. If you want to actually change the default kernel, there should be an option in grunt, but I don't know what it is exactly.

    You can also take a look here: https://www.pontikis.net/tip/?id=36 for more info on grunt.
     
    sam452 likes this.

Share This Page