This starts with a technical preamble, but ends with a solution if you want FUSE2 installed properly before installing Parallels Tools. Doing this will allow macOS to properly share folders with Kali Linux VM. Otherwise the solution originally described in this post will primarily enable keyboard/mouse and copy/paste integration.
While the above solution does allow for the install to complete, it results in Parallels Tools having partial/broken functionality. FUSE enables userland programs to export filesystems to the Linux kernel. FUSE2 vs. FUSE3 have breaking differences in their implementation. So in this case, the above solution essentially tricks the installer into thinking the proper FUSE library is present on the system, when it is not. You might as well have simply made the check_libfuse2() function simply return 0. FUSE2 (libfuse.so.2) is needed if you want macOS to be able to share folders with the Kali Linux VM.
When you look at the library dependencies for the prl_fsd binary (which handles file sharing between host and guest OS), you can see it needs libfuse.so.2. Tricking the installer by tweaking pm.sh doesn't make the prl_fsd binary functional:
Code:
──(parallels㉿kali)-[/usr/bin]
└─$ readelf -d ./prl_fsd
Dynamic section at offset 0xca10 contains 32 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libfuse.so.2]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1]
Newer releases of Kali do not include FUSE2 in its package index. However, it can install safely alongside FUSE3. As Kali does not advise adding the Debian repository as it will likely cause issues with package management, you can instead simply download the Debian package and install it manually.
Important: This will install the version 2.9.9-9+b2 from the Debian package index, which at the time of this writing is the latest version available. You should first check the index for a newer version and adjust the commands below before executing:
https://ftp.debian.org/debian/pool/main/f/fuse/
x86_64:
Code:
wget https://ftp.debian.org/debian/pool/main/f/fuse/libfuse2t64_2.9.9-9+b2_amd64.deb
sudo apt install ./libfuse2t64_2.9.9-9+b2_amd64.deb
arm64:
Code:
wget https://ftp.debian.org/debian/pool/main/f/fuse/libfuse2t64_2.9.9-9+b2_arm64.deb
sudo apt install ./libfuse2t64_2.9.9-9+b2_arm64.deb
After install libfuse2t64, you will be able to successfully install Parallels Tools without needing to modify the installer itself, and macOS folder sharing will work as expected along with the other capabilities the tools offer.
Hope this helps!