TrueNAS Host Can't Access Services running off a Virtual Machine

theprez

Explorer
Joined
Oct 18, 2014
Messages
72
Having a strange problem that I've spent days on. As fas as I can tell, there's something in the default setup/routing/firewall that is blocking the ability for the actual TrueNAS host to be able to access services that are running on a Virtual Machine within the same box.

Example:

TrueNAS Host:
Statically Assigned 192.168.0.100/24
DNS pointing to VM IP Address also on the 192 subnet
This machine cannot reach (ping) or get requests from the DNS server via shell nslookup even though the DNS server is correct in /etc/resolv.conf

VM Host:
Statically Assigned 192.168.0.200/24
Running DNS Server
Other LAN machines can communicate with this VM with no problem

As a workaround, if I slap another NIC into the box, point the VM to this NIC via passthrough and assign it the same IP address all works fine. However, this isn't a good long term solution and makes me wonder what other services may have difficulty being accessed between the TrueNAS host and the VM.

Any ideas what's occurring here?

A quick search found this link provided by @morganL in Nov 2021 but it's 404'ing: https://www.truenas.com/docs/scale/virtualization/accessingnasfromvm/

Thanks
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Top