instead of ubuntu i used fedora. i posted a mini guide of sorts about my experience with that here
i mentioned how i added the truenas samba share to fedora.
for networking i used the bridge which i setup for my docker containers. so probably do what stux suggested