Get a Quote     (408) 943-4100               TrueNAS Discord      VendOp_Icon_15x15px   Commercial Support Toggle between Light and Dark mode

Accessing NAS From a VM

  2 minute read.

Last Modified 2022-09-14 11:41 -0400

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.

AccessNASfromVM1

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 ip a.

AccessNASfromVM3

Click the interface. If selected, clear the DHCP checkbox, then click Apply.

AccessNASfromVM2

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.

AccessNASfromVM4

Go to Virtualization, expand the VM you want to use to access TrueNAS storage, and click Devices. Click in the NIC row and select Edit. Select the new bridge interface from the Nic to attach: dropdown list, then click Save.

AccessNASfromVM5

You can now access your TrueNAS storage from the VM. You might have to set up shares or users with home directories to access certain files.

Examples

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.

AccessNASfromVM6

AccessNASfromVM7

Windows VMs can access TrueNAS storage using FTP and SMB.

In the example below, the Windows VM accessing an SMB share on TrueNAS.

AccessNASfromVM8

AccessNASfromVM9

Related Content