so if you have proxmox set up and want to access another server that has a network share setup, you can do that. this is through nfs sharing or smb sharing. i will walk through nfs sharing as that is what i have configured. the process is almost similar between nfs and smb. firstly, to lay the land, i am using truenas as my nfs server. inside of truenas, i created an nfs user and assigned it a password, and unchecked the smb user box. i also do not create a home directory for this user. next i create a dataset inside the storage pool and also create an nfs share.
inside the dataset, you will want to change the permissions with an access list, and this will be used to change the owner and group to that nfs user created from earlier.
then you will go into the nfs share and change those permissions. the main change will be to change the maproot user and group to the new user created. this will map root to that user. there is more configuration if you like, such as limiting this nfs share to a subnet or certain ip addresses. i like to do this as it restricts the share to my proxmox nodes.
once this is done within truenas, the nfs side is complete, now onwards to proxmox.
the setup for proxmox is fairly easy. once logged in to the web gui, go to datacenter tab and click on storage. from there click add and on the drop down, click on nfs. from here enter the id you want to assign to the share, i do the name of the nfs share from truenas. next type in the server ip address, and if everything was done right… the export option should populate with the directory path of the nfs share in truenas. now you can choose which content you want inside this path; vm disks, containers, templates, iso images, backups, whatever fits your needs. also ensure that enable check box is checked.
once you press add, it will initialize the nfs share and it will be added to your storage. this will be reflected in your left tab and be sure to verify that it sees all of the storage.