There is some great documentation already, but no harm adding a bit more detail.
Tested on Ubuntu 22.04.3 LTS & 4CAT 1.38
Solaris and Open Solaris
I recently tried upgradeing MySQL 5.7 to MySQL 8.0 on SPARC kernel zone (KZ) but it failed. Here is some information which may help people in the future.
So, I run our webserver www.dcs.bbk.ac.uk in a Solaris Kernel Zone which using a small MySQL 5.7 database, so after the upgraded failed I moved it to a test system and here is the steps and output which came to the possible workarounds.