Full disclosure. I have not used “TrueNAS” since back when it was called FreeNAS, and it has changed significantly since then.
All of that said, TrueNAS is more of a special purpose NAS install. You can get it to run various containers and VM’s, but that’s not really what it is designed for. It is intended to be a standalone install that does nothing but NAS.
It has a pretty web based interface, that can make managing ZFS easier for a beginner who has command-line phobia, but other than that, it might hold you back a bit.
I’d argue you could do more with a Linux server install. It is more flexible than a cut down, minimalistic FreeBSD implementation focused on NAS.
As long as you don’t have great discomfort in using the command line, ZFS is pretty easy to manage from the command line, and there are example commands for everything if you just google.
The only issue you are likely to run into with ZFS on Ubuntu is if you use an LTS release of Ubuntu (which you should for a server) and then decide that you need a newer kernel than shipped with that release, and opt to install it using the Hardware Enablement stack.
The issue that occurs is as follows.
ZFS lives both in kernel space (as a Kernel driver module) and in user space (the ZFS management tools)
If you update the kernel beyond what your Ubuntu release shipped with, this may result in a newer OpenZFS kernel module. This in turn may result in your ZFS management tools packages having an older version than your kernel driver. In some cases this is not a problem at all. In other cases that can cause issues. I guess the point here is that mismatched ZFS management tools and kernel drivers are an untested configuration, and thus while likely fine most of the time, can on occasion result in unpredictable results.
You mention some VM’s and containers and Proxmox. Honestly, I think that is a better idea for what you intend to do. Proxmox is really designed to run on top of ZFS, has good supported tools for booting from ZFS pools, and setting up ZFS pools to host your VM’s and containers on.
Proxmox - just like Ubuntu - is based on Debian, so the console experience is very similar to Ubuntu, but the team purposefully manages things like ZFS versions, tools for booting from ZFS pools, etc. etc.
I have been using Proxmox for years, and would highly recommend it.
Edit: DOH. I just realized I replied to a very old thread…