- download the disk image (vmdk) from ESXi
- use e.g.
qemu-imgto convert the image to raw, possibly on your desktop machine - create virtual machine in TrueNAS with a virtual disk of suffcicient size
- that will give you a zvol in ZFS for the virtual disk
- use
ddto write the raw image to the zvol (after copying the image to TrueNAS)
This works for both TrueNAS CORE and CE.
I am not at home atm, so I cannot check - possibly qemu-img is installed on TrueNAS CE, already, and you can copy over the vmdk, then convert on TrueNAS. I doubt the tool is present on CORE, but might be mistaken.