Accessing NAS From a VM
2 minute read.Last Modified 2022-09-14 11:41 EDT
If you want to access your TrueNAS SCALE directories from a VM, you must create a bridge interface for the VM to use.
Go to Virtualization, find the VM you want to use to access TrueNAS storage, and toggle it off.
Go to Network and find the active interface you used as the VM parent interface. Note the interface IP Address and subnet mask.
You can also get the IP address and subnet mask by going to Shell and entering
Click the interface. If selected, clear the DHCP checkbox, then click Apply.
Click Add in the Interfaces widget. Select Bridge for the Type and give it a name (must be in brX format). If selected, clear the DHCP checkbox, then select the active interface on the Bridge Members dropdown list. Click Add under IP Addresses and enter the active interface IP and subnet mask.
Click Apply, then click Test Changes. Once TrueNAS finishes testing the interface, click Save Changes.
Go to Virtualization, expand the VM you want to use to access TrueNAS storage, and click Devices. Click more_vert in the NIC row and select Edit. Select the new bridge interface from the Nic to attach: dropdown list, then click Save.
Linux VMs can access TrueNAS storage using FTP, SMB, and NFS.
In the example below, the Linux VM is using FTP to access a home directory for a user on TrueNAS.
Windows VMs can access TrueNAS storage using FTP and SMB.
In the example below, the Windows VM accessing an SMB share on TrueNAS.