How to setup NFS on Synology NAS for VMware ESXi lab

Synology

I’ve been asked several times how and why I setup my home lab to use NFS on my Synology NAS and thought a post detailing the steps would be best. First the why, when I purchased my Synology DS412+ about two years I recall seeing several people stating NFS was out performing iSCSI (like this post) on the Synology. It was strictly from reading other peoples findings that I started with NFS and have continued to use NFS without any issue. In fact I’ve been very happy with my DS412+ in a RAID 10 setup.

How I setup NFS on the Synology for my ESXi homelab is pretty simple as well.

Configuring Synology NFS access

  1. Log into the Synology DiskStation and go to: Control Panel > File Services – located under “File Sharing”.
  2. NFS is disabled by default so we need to enable it first. Expand NFS Services and check “Enable NFS” and click on Apply.
    synology enable nfs
  3. From the Synology control panel to go “Shared Folder”. A name is the only required step, but I like to give it a description and hide the shared folder from my network places as well as hide files from users without permission. Then click on Ok.
    synology create shared folder
  4. Once your folder has been created, go to the “Permissions” tab and change all users except your admin account to have “No Access“.
  5. Then change to the “NFS Permission” and click on Create and type the hostname or IP address of your ESXi host, then click Ok.
    synology nfs rule
  6. After you have clicked on “Ok” from the step above you will be taken back to the “Edit Shared Folder (FOLDER NAME)”, you can either click on “Create” to add permissions for another ESXi host if needed or click on “Ok” if not, before clicking on “Ok” to close the window be sure to make note of the “Mount Path“.
    synology nfs mount path

That completes the steps on the Synology side of things. You will want to repeat Steps 3 – 6 for each additional NFS share you wish to create. Next we need to add the datastore to the ESXi host.

Note: The above steps was completed using DSM version 5.1-5022 Update 1, your steps may vary if running a different version.

Add NFS datastore(s) to your VMware ESXi host

  1. Log into the VMware Web Client.
  2. Under Inventors click on “Hosts and Clusters”.
  3. Right click on your cluster name and select “New Datastore“.
    vmware new datastore
  4. For Type, select “NFS” then click on Next.
    vmware nfs datastore
  5. Give the NFS datastore a name, type in the IP of your Synology NAS, and for folder type in the “Mount Path” you took note of from step 6 above then press Next.
    vmware nfs name config
  6. Under Host accessibility, select which host(s) you want to add the new NFS datastore then press Next.
    vmware datastore host accessibility
  7. Finally press Finish.

That’s it, quick and easy!

You will may also want to install the Synology NFS VAAI plugin if you haven’t already. This will enable the ability to create thick disks as well as improve cloning tasks.

Similar Posts

  • My VMware ESXi Home Lab Upgrade

    Although the focus in my career right now is certainly more cloud focused in Amazon Web Services and Azure, I still use my home lab a lot.

    For the last 5+ years my home lab had consisted of using 3x Intel NUC’s (i5 DC53427HYE), a Synology NAS for shared storage and an HP ProCurve switch. This setup served me well for most of those years. It has allowed me to get many of the certifications I have, progress in my career and have fun as well.

    At the start of this year I decided it was time to give the home lab an overhaul. At first I looked at the newest generation of Intel NUC’s but really wasn’t looking forward to dropping over $1,300 on just partial compute (I’d still need to be RAM for each of the 3 NUC’s). I also wanted something that just worked, no more fooling around with network adapter drivers or doing this tweak or that tweak.

    I also no longer needed to be concerned about something that had a tiny footprint. I also questioned if I really needed multiple physical ESXi hosts. My home lab isn’t running anything mission critical and if I really wanted I could always build additional nested VMware ESXi hosts on one powerful machine if I needed.

    So in the end, the below is what I settled on. Replacing all of my compute, most of my networking and adding more storage!

    Read More “My VMware ESXi Home Lab Upgrade”

  • My VMware View Windows 7 Optimization Guide

    These are the few steps I do when creating a new "Golden" image. Luckily I don’t have to do these steps all the time as I’ll create the "Golden" image when there is a new upgrade such as when we went from View 4.6 to View 5.0.1. I like to have a new fresh machine using new virtual hardware from the start. You could certainly just upgrade the virtual hardware on the "Golden" image, I just prefer to start clean.

    At any rate, here’s my list. Hopefully someone might find it somewhat useful and maybe even others can improve upon it.

    Preparing a new virtual machine

    1. Create New Virtual Machine – FILE > NEW > VIRTUAL MACHINE (CTRL+N)
    2. Under Configuration select CUSTOM.
    3. Select a Name, Folder, Host, Cluster, and Storage.
    4. Under Guest Operating System select Windows and then Windows 7 32bit under the Version drop down.
    5. Select which Network (VLAN) and under Adapter select VMXNET 3.
    6. Configure disk size to 30GB THIN provisioned.

    Read More “My VMware View Windows 7 Optimization Guide”

  • Synology DS415+ NAS Review

    For the past week I was given the chance to abuse use and review the Synology DS415+ NAS, a NAS which is aimed at small businesses or home users that need extra horsepower (such as a VMware home lab).

    Synology DS415+ NAS

    The Synology DS415+ is the replacement for the Synology DS412+, in fact by looking at the two units you really can’t tell them apart aside from the model number printed on the lower left corner of the hard drive cover plate. The real differences between the Synology DS412+ and Synology DS415+ isn’t on the outside but what’s inside.

    Read More “Synology DS415+ NAS Review”

  • VMware vSphere 7 announced

    VMware vSphere 7

    Some pretty big news coming out of VMware today. The announcement of VMware vSphere 7 to become available May 1, 2020! One of the biggest item coming out of this news so far is that vSphere 7 will come in two options.

    The first being vSphere 7 as we all have known it to be for years and then the second being vSphere 7 with Kubernetes which will be available through VMware Cloud Foundation and is a new generation of vSphere for containerized applications.

    Other notables is that the flash based vSphere client is FINALLY no more! From here on out, only the HTML 5 will exist. vCenter Server on Windows will also finally be put to rest and new deployments of vCenter server will be done using the tried and tested vCenter Server Appliance (VCSA) based on PhotonOS linux.

    Read More “VMware vSphere 7 announced”

  • Synology DSM 5.2-5644 fixes several vulnerabilities and improves stability

    Synology

    Synology has released DSM 5.2-5644 which upgrades PHP to version 5.5.30 that patches several vulnerabilities found in the older version of PHP. In addition DSM 5.2-5644 also improves stability across many different functions such as Btrfs file system, FTP connections, NTP service. DSM 5.2-5644 also takes care of the issue where a DSM critical patch could not be manually uploaded when the system was in a Hybrid HA cluster.

    Read More “Synology DSM 5.2-5644 fixes several vulnerabilities and improves stability”

  • Synology DSM 5.2 exits beta, goes Gold

    Synology

    Synology has just released DSM 5.2-5565 that’s been in beta for a while now but has finally left beta and ready for prime time!

    DSM 5.2-5565 is packed with a load of new features such as Single Sign-On, iSCSI LUN Snapshots along with MANY new packages and package updates. Like Cloud Station now being able to sync files larger then 10GB! DSM 5.2 also introduces support for Docker!

    Read More “Synology DSM 5.2 exits beta, goes Gold”

Leave a Reply to Andy Taylor Cancel reply

Your email address will not be published. Required fields are marked *

12 Comments

  1. good post, thanks!

    Fwiw, i had issues with step 5 (NFS permissions). Ended up having to use * rather than separate individual rules for my two host IPs.

    1. big problem for me as well. I can’t get anything other than * for hosts to get vsphere to mount. This is a security concern I have not been able to find a workaround for.

  2. When I try to add an NFS volume I get “33389)WARNING: NFS41: NFS41ExidNFSProcess:2022: Server doesn’t support the NFS 4.1 protocol” – Looks like vSphere 6U2 uses NFS 4.1 and from what I’m reading Synology doesn’t support that. Has anyone had luck getting it to work or do you end up using NFS3?

    1. Hi Matt, I’m in the same boat. vSphere6.5 and DSM 6.0.2-8451 Update 9. I’m receiving error: “NFS41ExidNFSProcess:2053: Server doesn’t support the NFS 4.1 protocol”. No solution here, I’m backing down to NFS3 until Synology gets their act together or someone finds a proper solution.

  3. I’m trying to created a content library via nfs, getting the following error, any advice would be appreciated
    Content Library Service does not have write permission on this storage backing. This might be because the user who is running Content Library Service on the system does not have write permission on it.

    I’m using vcenter appliance 6.5 btw

  4. It keeps failing for me, I get “Failed to mount NFS datastore SynoDS1 – NFS mount 192.168.0.1:/volume1/ESXi failed: Unable to connect to NFS server. ” despite the fact that I keep telling it the server IP is 192.168.0.250

  5. Mike – I am not getting very far here.

    vCenter is ver 6.5, Synology running DSM 6.1.4 update 1

    I have added 10GB PCI NICs to my RS3617 . The built in NICs are on a 10.0.5.x network at 1GB, the 10GB NICs are on a physically separated 10.0.4.x network. The host is able to ping both the 10GB ports and the 1GB ports on the Synology. I have one volume set up and running with iSCSI connections, and it works, but performance is lacking, and I get a lot of dropped heartbeats which sometimes cause severe problems.

    I have tried to connect a second volume with NFS share set up per your write up, but the operation fails complaining it is “unable to complete Sysinfo operation”.

    I have been trying many combinations of VMFS versions, host IP address, and permissions without any happy faces.

    If you are still monitoring this thread I could use some guidance.

  6. How about performance? Is it actually outperforming iSCSI?
    Can you show some test results?
    And how would you setup iSCSI with multipathing?