Failed to install Parallels Tools on Ubuntu 20.04 ARM

Discussion in 'Linux Virtual Machine' started by ThomasS93, Jun 29, 2023.

  1. LuisS8

    LuisS8

    Messages:
    3
    fixed by using gcc-12. gcc-11 was the ubuntu default compiler.. so

    ln -sf /usr/bin/gcc-12 /usr/bin/gcc

    after that the tools installed fine...


    Sat Jan 13 11:51:37 EST 2024
    Start installation or upgrade of Guest Tools
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: aarch64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    You are using: cc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    Skipping BTF generation for /usr/lib/parallels-tools/kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/prl_tg.ko due to unavailability of vmlinux
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: aarch64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    You are using: cc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    Skipping BTF generation for /usr/lib/parallels-tools/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/prl_fs.ko due to unavailability of vmlinux
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: aarch64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    You are using: cc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    Skipping BTF generation for /usr/lib/parallels-tools/kmods/prl_notifier/Installation/lnx/prl_notifier/prl_notifier.ko due to unavailability of vmlinux
    warning: the compiler differs from the one used to build the kernel
    The kernel was built by: aarch64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    You are using: cc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
    Skipping BTF generation for /usr/lib/parallels-tools/kmods/prl_fs_freeze/Snapshot/Guest/Linux/prl_freeze/prl_fs_freeze.ko due to unavailability of vmlinux
    Start installation of prl_tg kernel module
    Start installation of prl_fs kernel module
    Start installation of prl_fs_freeze kernel module
    Start installation of prl_notifier kernel module
    DKMS modules were added successfully
    DKMS modules for kernel 6.5.0-14-generic were built successfully
    DKMS modules for kernel 6.5.0-14-generic were installed successfully
    Parallels Guest Tools were installed successfully!
    Please, reboot your OS to finish installation of Parallels Guest Tools.
    2024-01-13T11:51:58-0500: execCmd: ./install --install [0]
    2024-01-13T11:52:03-0500: Guest OS is going to reboot.
     
  2. VedranR

    VedranR

    Messages:
    1
    I can confirm that switching to gcc-12 using command:
    ln -sf /usr/bin/gcc-12 /usr/bin/gcc
    has solved the issue for installing Parallels Tools in Ubuntu 22.04.3 LTS on MacBook Pro M1
     
  3. AaronT15

    AaronT15

    Messages:
    1
    This got it all working for me on an M3 MacBook also trying to install to Ubuntu 22.04.3 LTS
     
  4. MerricksMan

    MerricksMan Bit poster

    Messages:
    2
    Best Answer
    I also confirm: Installation of Parallels tools for Ubuntu 22.04.3 guest VM with Kernel 6.5.x and higher only work properly when installing certain deb-packages in the first place and link onto the right gnu compiler library (Version 12 gcc).

    https://kb.parallels.com/en/113394 is misleading because gcc-12 and dkms are missing in that KB. That should be taken into account by Parallels Support.

    So far my steps to succeed:
    1. Make sure to install the following missing packages first in the Ubuntu VM via Terminal
    sudo apt get install dkms libelf-dev build-essential linux-headers$(uname -r) gcc-12
    2. Relink to gcc Version 12
    sudo ln -sf /usr/bin/gcc-12 /usr/bin/gcc
    check gcc version with: gcc --version
    It should be version 12.x
    3. Start to install/mount Parallels Tools and run install using a terminal
    Menu -> Action -> Install Parallels Tools
    sudo "/media/$USER/Parallels Tools"/install
    Optional: Check install, compile log in another terminal session
    tail -f /var/log/parallels-tools-install.log
    If everythings works out nicely just reboot the VM. Compile errors or missing libraries will be prompted either in the log file or installer.
    sudo reboot
    and you're done.
     
    Mikhail Ushakov and KeyvanE like this.
  5. SarahSp

    SarahSp Bit poster

    Messages:
    4
    Thank you!! Step 2 solved the problem for me. I don't know why it broke, but this has fixed it.
     
  6. allexus.mac

    allexus.mac Junior Member

    Messages:
    12
    Hi
    I have the same problem.
    But...
    sa@vm-host-l:~$ gcc --version
    Команда «gcc» не найдена, но может быть установлена с помощью:
    sudo apt install gcc
    sa@vm-host-l:~$ sudo apt install gcc
    [sudo] пароль для sa:
    Чтение списков пакетов... Готово
    Построение дерева зависимостей... Готово
    Чтение информации о состоянии... Готово
    Уже установлен пакет gcc самой новой версии (4:13.2.0-7ubuntu1).
    Следующие пакеты устанавливались автоматически и больше не требуются:
    fonts-font-awesome freerdp2-x11 libebur128-1 libfreerdp-client2-2t64 libfreerdp2-2t64 libminiupnpc17
    libmusicbrainz5cc2v5 libnatpmp1t64 libneon27t64-gnutls libwinpr2-2t64 transmission-common
    Для их удаления используйте «sudo apt autoremove».
    Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 5 пакетов не обновлено.
    sa@vm-host-l:~$
     

Share This Page