What is better for a truenas or OMV server, or maybe a proxmox server, e.g. Dell R740xd with 12 disk bays and 2x Intel Xeon Silver 4114?
Both truenas and OMV seem to me to use relatively little CPU and RAM power, maybe truenas a little more because of the cash. So some power is wasted.
Maybe you can mine connected via ssh and xmrig, but I don't know how it will affect the stability.
In truenas there was an add-on that allowed mining. There are several threads on the forum about digging via ssh and running xmrig and digging.
For me, the compose add-on is missing an example, e.g. a container mining from xmrig.
Truenas, chiacoin doesn't seem to have such an addition to generate coins.
There is also k8s but I have to test it.
In both truenas and OMV (thanks to omv-extras) we can create virtual machines. But they are probably not as efficient as physical machines or containers. Because from what I remember, containers can use physical hardware and virtual machines have a virtualized processor somehow.
You can always use proxmox to connect the disk controller to the HBA and truenas or OMV lives there, and xmrig copies either physically on the server or in a container. I know it's possible, but I don't remember the results - whether they were better or similar to those on pure Debian.
If I have stated something incorrectly, please correct me in the comments.