Set Up a NFS Server on Windows Server 2012R2

Install NFS File Services

  1. Launch Server Manager.
  2. On the top menu, click Manage.
  3. Click Add Roles and Features.
  4. On the Before you begin screen, click Next.
  5. On the Select installation type screen, ensure Role-based or feature-based installation is selected, and then click Next.
  6. On the Server selection screen, click Next.
  7. On the Select server roles screen, expand File and Storage Services, expand File and iSCSI Services, and then check Server for NFS.
  8. Click Next.
  9. If an Add features that are required for Server NFS dialog box appears, click Add Features.
  10. On the Select feature screen, click Next.
  11. Confirm the installation details, and then click Install.

Configure an NFS Share

  1. Launch File Explorer.
  2. Create a new directory for your NFS share.
  3. Right-click the directory and click Properties.
  4. Select the NFS Sharing tab.
  5. Under the NFS Sharing tab, click the Manage NFS Sharing… button
  6. Check the Share this folder check box.
  7. Enter a name into the Share name text field. This will be used when a user connects to your NFS share.
  8. Click the Permissions button.
  9. Click Add and then enter the IP address or hostname of the client(s) you want to allow connections to. When added, you may also select whether they have readwrite access or read-only access.
  10. Click OK.
  11. Click Apply and then OK.
  12. You now have a simple NFS share hosted on a Windows Server 2012 R2 box.

Connect a Linux Client to the NFS Share

  1. Log onto a Linux server or desktop.
  2. Open a terminal window, if you are in a Desktop version of the operating system.
  3. Create a new directory to mount the Windows NFS share.mkdir /postprod
  4. Mount the NFS share to the new directory.mount.nfs slfileserver01:/postprod /postprod
  5. If the client has readwrite access, test the share by creating a new file.touch file01.txt

Comments are closed.