NFS (Network File System) — сетевой протокол доступа к доступ к файлам и файловой системе NFS-сервера, популярный в семейства ОС Linux/ UNIX, а также различных системах хранения. Microsoft также, не желая отставать от конкурентов, внедрила базовый функционал NFS сервера еще в Windows Server 2003 R2. В последующих версиях серверных платформ Microsoft возможности встроенного NFS Windows сервера расширялись, появлялся новый функционал и средства управления. NFS сервер в Windows Server 2012 – очередная веха в развитии данной технологии.
Что же нового предлагают нам разработчики Microsoft в данном продукте? Новые возможности NFS сервера в Windows Server 2012:
- Поддержка стандарта NFS v4.1. Поддержка последней версии NFS 4.1 – одно из основных новшеств Windows Server 2012. По сравнению с NFS v3 этот протокол обеспечивает повышенную безопасность, производительность и совместимость, полностью реализуя все аспекты RFC 5661.
- Производительность «из коробки». Благодаря использованию новой транспортной инфраструктуры RPC-XDR, оптимальная производительность NFS сервера может быть достигнута сразу «из коробки» без необходимости тонкой настройки параметров системы. Оптимальная производительность достигается за счет автоматически настраивающегося кэша, разделения рабочих процессов на пулы и динамическое управление пулами, основанное на их нагрузке.
- Упрощенное развертывание и управление. Данный факт достигнут за счет:
- — более 40 командлетов PowerShell для настройки сервера NFS и управления общими папками
- — простого графического интерфейса управления, позволяющего одновременно управлять как SMB, так и NFS шарами, а также настройками скрининга файлов и файловой классификации.
- — фиксации RPC порта (порт 2049) для простоты настройки файерволов
- — нового провайдера WMI v2
- — упрощенной идентификации за счет плоского файла мапинга
- Улучшения в NFSv3. За счет быстрой отправки клиентам уведомлений о сбоях монитором NSM (Network Status Monitor), старые NFS клиенты лучше и быстрее обрабатывают процедуру failover, что означает меньшее время простоя.
Итак, NFS сервер в Windows Server 2012 значительно улучшен с точки зрения простоты развертывания, масштабируемость, стабильность, доступность, надежность, безопасности и совместимости. Общие папки могут быть одновременно доступны по протоколам SMB и NFS, что означает возможность использования Windows Server 2012 в качестве хранилища в гетерогенных сетях.
Далее мы разберем сценарий развертывания и управления сервером NFS в Windows Server 2012.
Установка NFS сервера в Windows Server 2012
NFS сервер в Windows Server 2012 можно установить с помощью GUI и Powershell. Чтобы установить NFS сервер с помощью графического интерфейса, откройте консоль Server Manager и внутри роли файлового сервера (File and Storage Services) отметьте компонент Server for NFS.
После окончания установки компонента NFS, сервер необходимо перезагрузить.
Установка этой же роли с помощью Powershell также не вызывает затруднений, просто выполните команду:
Add-WindowsFeature "FS-NFS-Service"
Настройка общей папки NFS в Windows Server 2012
Далее мы покажем, как с помощью установленной нами роли создать NFS шару (общую папку) на сервере Windows. Создать NFS шару можно опять несколькими способами: с помощью графического интерфейса или Powershell.
Создание общего каталога NFS с помощью консоли Server Manager
Откройте консоль Server Manager, перейдите в раздел Share management (находится внутри роли File and Storage Services).
В контекстном меню запустите мастер создания нового общего каталога- New Share…
Выберите тип шары NFS Share — Quick
Далее нужно указать местоположение каталога на диске и путь, по которому должны подключатся удаленные NFS клиенты.
Затем необходимо задать тип аутентификации NFS клиентов: возможно, задействовать как Kerberos- аутентификацию, так и анонимную.
Предположим, в качестве потребителя создаваемого NFS ресурса будет выступать сервер виртуализации ESXi, в котором возможность аутентифицировать NFS соединения отсутствует (ESXi не поддерживает NFSv4). Поэтому тип аутентификации будет No Server Authentication, отметим также опции Enable unmapped user access и Allow unmapped user access by UID/GID.
Чтобы немного обезопасить создаваемую NFS шару от доступа сторонних лиц, ограничим доступ к NFS ресурсу по IP адресу клиента.
Host: 192.168.1.100
Language Encoding : BIG5
Share Permissions : Read/Write
Allow root access : Yes
Далее осталось проверить, что на уровне NTFS пользователь, в которого мапится подключающийся юзер, имеет доступ на чтение/запись (если решено задействовать анонимный доступ, придется для пользователя Everyone дать полные r/w права на уровне NTFS).
Как создать NFS шару с помощью Powershell
Создадим новую NFS шару:
New-NfsShare -Name "NFS " -Path "d:\shares\nfr" -AllowRootAccess $true -Permission Readwrite -Authentication sys
Разрешим доступ к шаре для IP адреса 192.168.1.100 и зададим кодировку BIG5 (возможность просмотра содержимого NFS шары для клиента ESXi).
Grant-NfsSharePermission -Name “NFS” -ClientName 192.168.1.100 -ClientType host -LanguageEncoding BIG5
Созданную NFS шару можно использовать, например, как NFS-datastore в среде виртуализации VMWare vSphere, или для доступа к данным с других Unix-like клиентов. Как смонтировать NFS шару в Windows — клиентах описано в этой статье.
In this guide we will show you how to install NFS Server on Windows Server 2019. NFS (Network File System) is one of the most commonly used file-based storage systems often used to access files over a network. It is a popular protocol for sharing files over the LAN on Linux, Unix, and Windows platforms. You can mount the remote directory on the local system as if they were locally mounted. It allows you to group resources onto centralized servers on a network for easy sharing. NFS server has a right on the shared directory and can give specific permission based on the client’s requirement.
Advantages of NFS (Pros)
- It provides centralized storage for all users that will decrease the workload for the administrator in terms of backups.
- Allows users to access their files from any remote PC.
- With NFS, you can keep all users’ accounts on the central NFS server. This way you can mount all user’s home directories from the NFS server to their local system.
- All data and user accounts could be kept and maintained in one place.
In this post, we will explain how to install NFS server on Windows server 2019. We will also explain to install the NFS client and mount the NFS share on the client machine.
Install NFS Server on Windows Server 2019
in order to install the NFS Server Role in Windows Server 2019. Follow the below steps to perform the installation:
Step 1 – Log in to the Windows server 2019 as an administrator user, press the Windows key, search for Server Manager and open it as shown on the following page:
Step 2 – Click on Add Roles and Features button. You should see the following screen:
Step 3 – Click on the Next button. You should see the Select Installation Type page:
Step 4 – Select Role-based or feature-based installation and click on the Next button. You will be asked to select the destination server as shown on the following screen:
Step 5 – Select the server you want to install NFS server and click on the Next button. You will be asked to select the Role in the following screen:
Step 6 – Expand File and Storage Services then again expand File and iSCSI Services then check the “Server for NFS” box and click on the Next button. You should see the Select Feature page:
Step 7 – Click on the Next button. You will be asked to confirm the installation as shown on the following screen:
Step 8 – Confirm all settings and click on the Install button to start the installation.
Once the installation has been finished, you will need to restart your system to apply the changes. Once your system is restarted, you can proceed to create an NFS share.
Create an NFS Share
After installing the NFS server, you will need to create an NFS share folder that your want to export to all clients. Follow the below steps to create an NFS share folder named nfsshare inside the C drive:
Step 1 – Open the Server Manager as shown in the following screen:
Step 2 – In the left pane, click on the File and Storage Services. You should see the following screen:
Step 3 – Select the Shares then click on the TASKS menu and click on New Share. You should see the following screen:
Step 4 – Select NFS Share-Quick and click on the Next button. You should see the following screen:
Step 5 – Select Type a custom path, define your nfsshare directory and click on the Next button. You should see the following screen:
Step 6 – Provide your NFS share name and click on the Next button. You will be asked to select the authentication method on the following screen:
Step 7 – Specify the authentication method and click on the Next button. You should see the following screen:
Step 8 – Click on the Add button to specify the share permission. You should see the following screen:
Step 9 – Provide the IP address of the client machine, provide read/write permission and click on the Add button. You should see the following screen:
Step 10 – Click on the Next button. You should see the following screen:
Step 11 – Confirm all settings and click on the Create button to create an NFS share. Once the NFS share has been created, you should see the following page:
Step 12 – Click on the Close button to exit from the wizard.
At this point, NFS share is created. You can now proceed to install the NFS client on the client machine and mount the NFS share.
Install NFS Client on Client Machine
In this section, we will show you how to install the NFS client on the client machine. Follow the below steps to install the NFS client on the client machine:
Step 1 – Open the Server Manager as shown in the following screen:
Step 2 – Click on Add Roles and Features. You should see the following screen:
Step 3 – Click on the Next button. You should see the Select Installation Type page:
Step 4 – Select Role-based or feature-based installation and click on the Next button. You should see the destination server selection screen:
Step 5 – Select the server you want to install NFS client and click on the Next button. You should see the Select Role screen:
Step 6 – Click on the Next button. You should see the following screen:
Step 7 – Check the box “Client for NFS” and click on the Next button. You should see the following screen:
Step 8 – Confirm the Installation selections and click on the Install button to install the NFS client.
Once the NFS client has been installed, you can proceed to the next step.
Mount the NFS Share on the Client Machine
Now, you will need to mount the NFS share from the NFS server machine to the client machine. You can mount it using the mount.exe command:
Open the PowerShell with Administrator privileges and run the following command:
mount.exe 104.245.35.28:/nfsshare E:\
Where: 104.245.35.28 is the IP address of the NFS server and nfsshare is the name of the NFS share.
Once the NFS share is mounted. Open the File Explorer and check if NFS share is mounted or not. You should see your mounted share on the following screen:
Install NFS Server on Windows Server 2019 Completed
In the above post, we explained how to install the NFS server and NFS client on Windows Server 2019. We also explained how to mount the NFS share from the server machine to the client machine.
Introduction
NFS (Network File System) is one of the most widely used protocols for sharing files across a network, enabling computers to access files remotely as if they were on the local system. It is commonly used in Linux/Unix environments but has also found its way into Windows Server installations. As organizations continue to build heterogeneous IT environments, understanding how to set up and use NFS in Windows Server 2025 is more important than ever.
This blog post will provide a complete guide on how to install, configure, and use NFS on Windows Server 2025, discuss its key features and characteristics, and outline when and why you should choose NFS for your file sharing needs.
Table of Contents
What is NFS
NFS (Network File System) is a protocol developed by Sun Microsystems in 1984 that allows a computer to access files over a network as if they were part of its local storage. Initially designed for UNIX-based systems, NFS has become a standard protocol for shared file systems, especially in Linux/Unix environments. Over time, support for NFS was extended to Windows and other platforms, making it a cross-platform file-sharing protocol.
Key Characteristics of NFS:
- File Sharing over the Network: NFS allows files stored on one computer to be accessed over a network by other computers as though they were local files.
- Network Transparency: With NFS, users can seamlessly access remote files without needing to know the physical location of those files.
- Scalable: NFS allows for easy scaling of storage across multiple machines without the need for complicated configurations.
Features and Characteristics of NFS
Centralized Storage
NFS allows for centralized storage of files that can be accessed by multiple clients across a network. This reduces redundancy and simplifies data management.
Ease of Configuration
NFS is relatively easy to set up and configure, especially on Windows Server 2025, making it accessible even to less experienced administrators.
Cross-Platform Compatibility
NFS allows files to be shared across different platforms (Linux, UNIX, and Windows), enabling diverse environments to work together seamlessly.
Security and Authentication
Windows Server 2025 supports Kerberos authentication for secure access to NFS shares. This ensures that only authorized users and systems can access the shared files.
Performance
NFS is generally considered lightweight, but it’s important to note that the performance can depend on the network, server, and hardware specifications. It offers good performance for most standard workloads.
Scalability
NFS supports the addition of more clients and servers without significant changes to the network infrastructure. This makes it a scalable solution for businesses of all sizes.
Support for Different NFS Versions
Windows Server 2025 supports NFSv3 and NFSv4. NFSv4 includes improved features like stateful operations, security improvements, and better support for firewalls.
When to Use NFS?
NFS is an excellent choice for a wide range of use cases, particularly when you need to share files across mixed environments (Windows, Linux, UNIX). Here are some scenarios where you might want to use NFS:
Sharing Files Between Windows and UNIX/Linux Systems
If your organization uses both Windows and UNIX/Linux systems, NFS allows seamless file sharing between these diverse environments. NFS’s cross-platform compatibility means it can integrate Windows Server 2025 with UNIX/Linux-based servers.
2. Centralized File Storage
If you want to centralize the storage of files, NFS is a good solution. You can mount remote NFS shares onto Windows Server 2025, ensuring all files are stored in one place, easily accessible by multiple systems.
3. Simplified Configuration
For environments where file sharing simplicity is critical, NFS is a straightforward solution. Unlike more complex file-sharing methods, NFS can be quickly configured and maintained.
4. Integration with Virtualized Environments
In virtualized environments (such as VMware), NFS is a reliable storage protocol for shared storage. Windows Server 2025 can use NFS to store virtual machine files and configuration data.
5. Cost-Effective Storage Solutions
NFS provides an affordable solution for businesses looking to implement shared network storage without investing in expensive storage hardware.
Step-by-Step Tutorial: Installing and Configuring NFS in Windows Server 2025
Now, let’s dive into the process of setting up NFS on Windows Server 2025. Follow these steps to install and configure NFS for file sharing.
Install the NFS Server Feature
Open Server Manager:
Click on the Start button and open Server Manager.
Add Roles and Features:
In Server Manager, click on Manage in the top-right corner, and then select Add Roles and Features.
Select NFS Server Feature:
On the Select server roles screen, expand:
File and Storage Services
File and iSCSI Services. Check the box for Server for NFS. If any required features are needed, it will prompt you to add them. click Add Features. Click Next.
Wait for Installation:
The Select features screen may already have some default features selected you don’t need to add anything here unless specifically required.
Just click Next. On the Confirmation screen:
Review the selections. Optionally check Restart the destination server automatically if required. Click Install.
Wait for the installation to complete. It may take a few minutes. Once done, click Close. At this point, Server for NFS is installed, and you can now proceed to configure NFS shares on your Windows Server.
Configure NFS Server
Open NFS Configuration:
After installation, open Server Manager again, go to the Tools menu, and select Services for Network File System.
Start NFS Server:
Find the NFS Server service in the list and make sure it is running. If it is not, right-click and select Start.
Open Server Manager > File and Storage Services > Shares.
Click Tasks > New Share.
Select NFS Share – Quick or NFS Share – Advanced, depending on your needs.
Choose NFS Share Type. You’ll now see several options for types of shares:
NFS Share – Advanced: Allows more customization (e.g., permissions, quotas, etc.).
NFS Share – Quick: Simplified setup, default options.
For most purposes, select NFS Share – Quick, then click Next.
You’ll be asked to choose where to create the NFS share. Select an existing folder or create a new one.
In our case we set the path to: C:\Shares\vmorecloud_share
Then click Next.
Configure Authentication and Permissions
Authentication:
Choose No server authentication (AUTH_SYS) for standard NFS access.
Specify Permissions:
Click Add to define which hosts can access this NFS share.
In the permission entry:
Enter hostname or IP address of client (e.g., 192.168.119.145
).
Choose access type:
- Read-Only
- Read-Write
- Check or uncheck root access as needed.
For basic setups, choose Read-Write and disable root access for security. Click Next.
Configure NFS Client Access
Allow NFS Client Access
To allow remote clients (Linux or Windows) to mount the shared folder, go to the Share settings and specify the IP addresses or hostnames of the client machines.
You can configure NFS to allow access to specific machines or networks by using IP-based access control.
Adjust Firewall Settings
If you are using Windows Firewall, ensure that the firewall allows inbound traffic on the NFS port (2049). You may need to create a rule in the Windows Firewall settings to enable this traffic.
Enable NFS Client Feature
Go to Control Panel > Programs > Turn Windows features on or off.
Scroll down and enable:
Services for NFS
Client for NFS
Click OK and restart if required.
Open Command Prompt as Administrator and run:
On a Windows Client
Open Command Prompt as Administrator.
Mount the Share
mount \\<Server_IP>\vmorecloud_share Z:
Example:
mount -o nolock \\192.168.1.10\sharedFolder Z:
This mounts the NFS share as drive Z.
Verify Access
Open File Explorer. Navigate to *Z: *. You should see the contents of the shared NFS folder.
On a Linux Client
Install NFS Client (if not already installed). On Ubuntu/Debian open the terminal and type this command.
sudo apt-get install nfs-common
Create a Mount Point
This is the directory where the remote NFS share will be mounted.
sudo mkdir -p /mnt/nfs_share
Mount the Share
sudo mount -t nfs <Server_IP>:/nfsdata /mnt/vmorecloud_share
Verify the Setup
Check Mounted Shares
On the client machine, verify that the NFS share is accessible by navigating to the mounted drive or folder. Type the following command:
df -h | grep nfs
Or list the contents.
ls /mnt/nfs_share
Test File Access
Try creating, editing, and deleting files on the NFS share to ensure proper permissions are set.
Make the Mount Persistent
Edit /etc/fstab
and add:
192.168.1.10:/nfsdata /mnt/vmorecloud_share nfs defaults 0 0
Conclusion
By following this step-by-step guide, you’ve learned how to install and configure NFS on Windows Server 2025. NFS is a powerful and cost-effective solution for file sharing, particularly in mixed-OS environments. Its ease of configuration and cross-platform compatibility make it an attractive choice for organizations that need centralized storage and seamless access across Windows, Linux, and UNIX systems.
Whether you’re looking to integrate NFS into your existing virtualized infrastructure, need centralized file storage, or want to simplify file-sharing across a network, NFS on Windows Server 2025 is a robust choice.
Remember: NFS may not be suitable for every scenario, particularly in environments where performance and security are the highest priorities.
Windows Server 2016 предоставляет возможность настройки и установки сервера NFS, что позволяет обмениваться файлами между различными операционными системами. Это особенно полезно, если в вашей организации используются разные ОС, такие как Windows, Linux или macOS, и вам необходимо совместное использование файлов между ними.
NFS (Network File System) — это межплатформенная файловая система, которая позволяет клиентам подключаться к удаленным ресурсам, расположенным на сервере NFS. С помощью сервера NFS на Windows Server 2016 вы сможете совместно использовать файлы с устройств, работающих на разных операционных системах, без необходимости копирования файлов с одной ОС на другую.
Настройка сервера NFS на Windows Server 2016 довольно проста и не требует особых навыков. В данной статье рассмотрим шаги по установке сервера NFS на Windows Server 2016 и его конфигурации для обеспечения совместного доступа к файлам на разных ОС.
Установка и настройка сервера NFS в Windows Server 2016 может быть полезным для организаций, которые хотят улучшить совместную работу различных ОС. Необходимость взаимодействия между операционными системами возникает во многих сферах деятельности, и настройка сервера NFS позволит сократить время и упростить процесс обмена файлами между ними.
Установка Windows Server 2016
Для начала установки Windows Server 2016 требуется произвести загрузку образа операционной системы. Для этого можно воспользоваться официальным источником, например, сайтом Microsoft. После загрузки образа следует записать его на установочный носитель, такой как DVD или флеш-накопитель.
После подготовки установочного носителя необходимо вставить его в соответствующий привод или порт USB и запустить компьютер. При загрузке компьютера возможно потребуется указать загрузочное устройство, чтобы начать установку с носителя. Понадобится нажать соответствующую клавишу (например, F2 или Del) для входа в BIOS и настроить загрузку с выбранного носителя.
После успешной загрузки установочного носителя появится стартовый экран установки Windows Server 2016. На этом экране можно выбрать язык и другие настройки, а затем нажать кнопку «Установка».
Далее следует ознакомиться с лицензионным соглашением и принять его условия, нажав на кнопку «Согласен». После этого появится окно выбора типа установки: обновление существующей операционной системы или чистая установка. Для установки Windows Server 2016 на новый диск следует выбрать чистую установку и нажать кнопку «Далее».
На следующем экране можно выбрать разметку диска и создать разделы. Рекомендуется выбрать «Пользовательская разметка» и создать необходимые разделы. Для этого следует нажать кнопку «Дископератор» и выполнить необходимые действия. После разметки следует выбрать нужный раздел для установки и нажать «Далее».
После этого начнется установка операционной системы, которая может занять некоторое время. Во время установки можно указать регион, клавиатуру и другие настройки. После завершения установки Windows Server 2016 будет перезагружен и готов к использованию.
Важно помнить, что процедура установки операционной системы может отличаться в зависимости от конкретной версии и лицензионных условий.
Подготовка сервера для работы с NFS
Конфигурация и установка службы NFS на Windows Server 2016 требует нескольких предварительных шагов. Прежде чем начать установку NFS сервера, необходимо удостовериться, что ваш сервер соответствует необходимым требованиям и настроен правильно. В этом разделе мы рассмотрим основные этапы подготовки сервера к работе с NFS.
1. Установка операционной системы
Первым шагом является установка операционной системы Windows Server 2016 на ваш сервер. Убедитесь, что вы используете правильную версию операционной системы, и выполните все необходимые обновления и настройки.
2. Включение службы NFS
Следующим этапом является включение службы NFS на сервере. Для этого откройте «Управление компьютером» и перейдите на вкладку «Службы и приложения» -> «Службы». Найдите службу «Стандартный сервер файловых систем NFS» и установите ее статус в «Автоматический».
3. Создание и настройка общего каталога
Прежде чем настроить службу NFS, необходимо создать общий каталог, который будет доступен для NFS клиентов. Выберите директорию на вашем сервере, где будут храниться файлы, и создайте новую папку. Затем откройте свойства папки, перейдите на вкладку «Общий доступ» и разрешите доступ к папке для «Всех» пользователей.
4. Настройка прав доступа к NFS
Для обеспечения безопасности и контроля доступа к общим ресурсам необходимо настроить права доступа к NFS. Откройте службу «Стандартный сервер файловых систем NFS» и перейдите на вкладку «Права доступа». Установите необходимые права доступа для каждого пользователя или группы пользователей.
После завершения всех этих шагов сервер будет полностью подготовлен к работе с NFS. Теперь вы можете продолжить с установкой и настройкой NFS сервера на Windows Server 2016.
Установка и настройка роли сервера файлов и хранилищ
Для установки и настройки роли сервера файлов и хранилищ на Windows Server 2016 следуйте инструкциям ниже:
Шаг | Описание |
1 | Откройте Server Manager (Менеджер сервера), нажав соответствующую иконку на панели задач или выбрав это приложение в меню «Пуск». |
2 | В левой панели выберите «Управление» (Manage) и затем «Добавить роли и компоненты» (Add Roles and Features). |
3 | Нажмите кнопку «Далее» (Next) в появившемся окне «Мастер добавления ролей и компонентов» (Add Roles and Features Wizard). |
4 | Оставьте выбранной опцию «Установка базовой роли сервера файлов и хранилищ» (Install the File and Storage Services role). |
5 | Нажмите кнопку «Далее» (Next) и пройдите дальнейшие шаги мастера, выбрав необходимые опции и параметры. |
6 | После завершения установки роли сервера файлов и хранилищ, вернитесь в Server Manager и откройте «Менеджер файлов и хранилищ» (File and Storage Services Manager) из левой панели. |
7 | В менеджере файлов и хранилищ выберите «Дисковые пулы» (Disk Pools) и создайте новый пул дисков, если требуется. |
8 | Настройте шары файлов (File Shares), добавляя папки и настраивая разрешения доступа для пользователей. |
9 | Проверьте настройки и доступность сервера файлов и хранилищ, используя клиентские компьютеры или другие методы проверки. |
После завершения установки и настройки роли сервера файлов и хранилищ, вы сможете использовать Windows Server 2016 в качестве надежного и мощного сервера для обмена файлами и хранения данных в вашей сети.
Создание шары NFS
Шаг 1: Запустите «Диспетчер сервера» на вашем сервере Windows Server 2016.
Шаг 2: В левой панели выберите раздел «Услуги файлов и хранилища» и щелкните правой кнопкой мыши по «Серверам сети», затем выберите «Добавить сервера сети».
Шаг 3: В открывшемся окне выберите «Добавить сервера на других доменах или в этом домене» и нажмите «Далее».
Шаг 4: Введите имя или IP-адрес вашего NFS-сервера и нажмите «Добавить», затем «Далее».
Шаг 5: Щелкните правой кнопкой мыши на добавленном NFS-сервере и выберите «Создать шару».
Шаг 6: Введите имя для вашей шары в поле «Имя шары» и выберите путь к расположению данных. Можете также задать параметры доступа для различных пользователей.
Шаг 7: Нажмите «Применить» и «ОК» для создания шары NFS.
In this article, I will explain how you can install and configure an NFS Server on a Windows 2019 Server. I will also show you the steps to create an NFS shared folder and mount the shared folder on Linux clients.
What is the Network File System (NFS)?
Network File System (NFS) provides a file-sharing solution that lets you transfer files between computers running Windows Server and other non-Windows operating systems such as Linux or UNIX using the NFS protocol.
NFS in Windows Server includes Server for NFS and Client for NFS. A computer running Windows Server can use Server for NFS to act as an NFS file server for other non-Windows client computers.
Client for NFS allows a Windows-based computer running Windows Server to access files stored on a non-Windows NFS server.
Understanding Test lab:
For this, we will use the virtual test lab created in VirtualBox.
- WS2K19-DC01: Domain Controller and DNS
- UBUNTU1804: Ubuntu OS, NFS client.
Install Server for NFS role service in Windows Server 2019:
To install the Server for NFS role service in Windows Server 2019, follow the below steps:
1. Open Server Manager. Click on Tools and select Add Role and Features.
2. On the Before you begin page, click Next.
3. Select Role-based or feature-based installation and click Next.
4. Select a server from the server pool on which you want to install the Network File System for Server role service, click Next.
5. On select server roles page, expand File and Storage Services, expand File and iSCSI Services. Select Server for NFS checkbox.
6. A new window will pop up, click on Add Features to include required features and management tools needed by the NFS server.
7. Make sure that the Server for NFS role service is selected. Click Next.
8. On select features, click Next.
9. Click Install and complete the installation process.
10. Click Close to finish the installation.
How to Create an NFS Shared Folder on Server 2019:
After installing the Server for NFS on Windows Server 2019, the next step is to create an NFS shared folder by using the File and Storage Services console.
11. On the Server Manager Console, click on File and Storage Services.
12. Click on Shares. Right-click in the empty area and select New Share.
13. On Select the profile for this share, select NFS Share – Quick profile. Click Next.
14. To configure a specific folder as NFS shared folder, select the checkbox Type a custom path and type the path for the specific folder you’d like to set as a shared folder. Click Next.
15. Verify share name, local path and remote path for NFS shared folder. Click Next.
16. Specify the Authentication methods as per your requirement.
17. To set up the NFS share permissions, click Add button.
18. Specify the Hosts you’d like and assign the access permissions from the drop-down menu.
- Host: 172.18.72.103 (IP address of Ubuntu VM)
- Share Permissions: Read/Write
19. Click on Add.
20. Using the same steps, you can add permission for other Hosts as well. Click Next.
21. Specify NTFS permission. As we are just testing NFS sharing, we are going with default permission. Click Next.
22. Review the selections, click on the Create button.
23. Click on the close button after verifying the successful creation of the NFS shared folder.
24. Verify the NFS shared folder under the shares list. Access the local path of the NFS shared folder. Create one text file and put some text under it.
Mount the NFS shared Folder on Linux Client (Ubuntu Machine):
25. On the Ubuntu machine, verify the local IP address and network connectivity with the NFS server.
26. To mount an NFS shared folder on a Linux machine, open terminal. Type command: mkdir /data
This command will create one directory name data under the root directory.
27. Type command:
Syntax: mount -t nfs <NFS-Server-IP>/<NFS-Shared-Folder-Name> /<Mount-Point>
For example, to mount an NFS shared folder named share1 of the NFS server that is configured with IP address 172.18.72.5, the folder should be mapped on the /data mount point.
In our case command will look like:
mount –t nfs 172.18.72.5:/share1 /data
28. Verify the content of the text file which we have created earlier on the NFS server.
In this blog post, we have learned the steps on how to install and configure NFS in Windows Server 2019.
I hope, you enjoyed it. Thank you for reading.
Video Guide: Installing and Configuring NFS Server role in Windows Server 2019
Post Views: 5,976