Gentoo on M1 with Parallels-Tools / graphic acceleration?

NielsD4

Bit poster
Dear all,

i've installed Gentoo arm64 with xorg, KDE and such stuff, but im unable to get the Parallels org driver for X / GL or similar acceleration working manually.
Parallels-Tools does not install out of the box - I had to comment "check_required_packages()" and copy an init script manually, because it "can't find a package manager" in the installer script to get it running through.

Kernel drivers seems loaded:
prl_tg
prl_fs
prl_notifier
(seems there is no prl_vid in current parallels-tools installer anymore?)

but if I try to use the OpenGL switcher script:
$prl-opengl-switcher.sh --on

I get an error:
/usr/lib/parallels-tools/tools/tools32/lib/libGL.so.1.0.0 not found in the path

seems the script does use i386 tools path instead of "tools-arm64" and no libGL.so.* is in
.../tools/tools-arm64/lib/
(there is only a libPrlWl.so.1.0.0)

Any ideas or hints?
Which "package manager" could I install on Gentoo to get the installer working? If the installer is not ready for gentoo on M1 so far - would be nice if done by Parallels soon...ß)

many thanks,


niels.
 
I've gotten Gentoo installed on Parallels M1, one key was to ensure virtio_gpu was built into the kernel so console messages are available early in the boot process (the architecture seems to favor kernel output going to serial lines for whatever reason) - after setting VIDEO_CARDS="virgl" and emerging the graphics stack and desktop environment of choice, it fires up with MESA GL and near-native performance
 
many thanks for some hints.

with 17.x it seems easy to get an accelerated X installed (VIRTIO_GPU and virgl video card selected).
I run my Gentoo without Parallels-Tools which works well for me so far - but it would be nice if Parallels could at least some kind of basic or "beta" support for Gentoo with the Paralells-Tools installer, using generic ways to build / install the Parallels kernel modules and daemons (i.e. without scripts / systems configs).


Thanks to you all,

niels.
 
many thanks for some hints.

with 17.x it seems easy to get an accelerated X installed (VIRTIO_GPU and virgl video card selected).
I run my Gentoo without Parallels-Tools which works well for me so far - but it would be nice if Parallels could at least some kind of basic or "beta" support for Gentoo with the Paralells-Tools installer, using generic ways to build / install the Parallels kernel modules and daemons (i.e. without scripts / systems configs).


Thanks to you all,

niels.
Parallels Tools installs on gentoo without any problem, but on older kernels, it doesn't work with 6.5 versions
 
Parallels Tools installs on gentoo without any problem, but on older kernels, it doesn't work with 6.5 versions
no,

here we go:

Kernel is a "brand new" 6.5.5

(Then provide install media by virtual CD-ROM by click on "Install Parallels Tools" to VM)

"An error occurred when installing Parallels Tools. Please go to /var/log/parallels-tools-install.log for more information."
In the log file:

"none of supported package managers are found on this system"
If i look into the sources, the installer expects one of a selection of disctribution specific package manager but not gentoos software manager portage. Gentoo - by default - does not work with packages... Same happens - as expected - with GUI installer version btw.

So if it works on your Gentoo installation, which which package manager does it run?

many thanks,

niels.
 
Just in case anyone else comes across this, the solution for me was to make a very small modification to the installer.

First off, I have installed plasma-meta and all dependencies on a clean install (literally haven't installed anything else). Some things this pulls in may be required to successfully install Parallels Tools. On top of this, make sure you have dkms and hplip installed, as I believe these are dependencies. Finally, make sure your kernel supports loading modules.

After installing the pre-reqs, copy the contents of the Parallels Tools CD to somewhere writable, then edit ./installer/install-cli.sh. Find "check_required_packages()" around about L269. Make this method return $E_NOERROR immediately, then just run the installer as normal and reboot (./install). This'll get your kernel modules installed, however the /etc/init.d/prltoolsd script isn't openrc compatible. To fix this, I created /etc/init.d/parallels with the following contents:
Code:
#!/sbin/openrc-run

start()
{
        ebegin "Starting Parallels tools"
        /etc/init.d/prltoolsd start
        eend $?
}

stop()
{
        ebegin "Stopping Parallels tools"
        /etc/init.d/prltoolsd stop
        eend $?
}

Swap out the script using:
Code:
rc-update del prltoolsd
rc-update add parallels default

You should be good to go.
 
Back
Top