VM file sharing on NAS, security compared to VM sharing on Host

This is a beginner’s general question about VM file sharing concepts.

Setting up a new TrueNAS scale home server, will use SMB. Clients will include some VM on my daily driver, some of which may move to other hardware.

Wondering how the security of a VM, in particular the shared filespace, compares to when the VM is sharing with its Host.

Some VM may be moved to TrueNas based apps, and new ones may be added.

Using SMB on TrueNas allows much more specific settings, as well as opening things up to the network. I’ve wondered about the sharing between a VM with shared filespace just with its host. Have used VirtualBox and now using qemu/kvm.

Even just pointers to content elsewhere to read / view would be appreciated.

SMB is the better sharing protocol if you want multiple VMs/Hosts/Apps to access the same data, but have different privileges. The clients can all be on the networks. Security level depends on administrator and can include AD.

Local ZFS datasets are good if one VM or App wants to access the specific data. The TrueNAS admin controls access.