How to mount a path into my VM

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
Is there a way to mount a path (not a zvol) from TrueNAS into the VM?
I tried set up a NFS share but can't seem to add it to the VM.

Thank you!
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
Have you created a Bridge on your host?
without the Bridge the host is completly isolated from your vms and you cant mount smb or nfs shares inside your vm
 

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
Sorry, I was a bit short in my description.

Here is what I did so far:
I created a bridge br10, it is active and has the IP 192.168.199.2/24 without adding any network adapters as members (that share is only for the VM)
To the VM I have added a NIC (using virtio) and attached it to br10. The NIC is visible and activated within the VM with 192.168.199.3/24.

From the truenas host, I can ping the bridge but not the ip of the VM. The other way around I can ping from the VM the adapter I created (obviously) but not 192.168.168.2 on the bridge.
 

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
after rebooting the truenas host, I can mount the NFS share. Next step is figuring out how to set the permissions.
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
glad it works now.
Permissions are set on the Truenas side. You have to set the permissions on the Dataset you want to share.
 

tobo

Dabbler
Joined
Feb 6, 2015
Messages
32
will continue later today. Thank you for your help!
 
Top