- 29 Sep 2022
- 1 Minute to read
- Print
- DarkLight
How to configure NFS on Windows Server
- Updated on 29 Sep 2022
- 1 Minute to read
- Print
- DarkLight
The following guide shows how to configure your NFS volume on Windows Server.
Windows does not support NFSv4.
If you need a file-sharing solution for Windows we recommend using CephFS which is compatible with both Windows and Linux
Prerequisites
- An NFSv2 or NFSv3 share to connect to.
- Make sure that the IP address of the server you're connecting from is whitelisted in the NFS volume exports on the NFS server.
- Administrator logins to the Windows Server you'll be configuring.
Install the NFS Client
Method 1 - Using the GUI
If you're comfortable using a Powershell terminal, we recommend using method 2 instead.
Connect to your Windows server via RDP or your preferred method.
In the server manager, click Manage then 'Add Roles and Features'.
Choose 'Role Based or Feature Based installation'
On the server selection page click next.
On the server roles page click next.
Tick the 'Client for NFS' feature and then click Next.
Then click 'Install'.
Once complete you should see 'Installation Succeeded' and then you can continue to mounting the NFS volume.
Method 2 - Using Powershell
Simply type the following command into an administrator powershell terminal:
Install-WindowsFeature -Name NFS-Client
Once complete it will look like this:
Desktop Version Installation
If you're using a Desktop version of Windows, you can install using the following command, run in an Administrator powershell terminal:
Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly, ClientForNFS-Infrastructure -Online -NoRestart
Connect to the NFS share
Once the NFS client is installed, you can connect to the NFS share by running the mount command in powershell.
Format: mount -o username \\ip.address.of.server\sharename drivename:
Example:
mount -o anon \\10.0.0.1\share Z: