7/27/2025
Step-by-Step Guide to Configure TrueNAS with Windows Server 2025 Standard
Prerequisites
Hardware and Software Requirements:
- TrueNAS system (SCALE or CORE, version 13 or later recommended) installed on compatible hardware (minimum 8GB RAM, SSD for boot drive, and sufficient storage drives).
- Windows Server 2025 Standard installed and configured with Active Directory Domain Services (AD DS) and DNS roles.
- Both systems connected to the same network with proper IP addressing (preferably static IPs).
- Administrative credentials for both TrueNAS and Windows Server.
- A Windows client machine for testing access to shares (optional but helpful).
Network Configuration:
- Ensure both TrueNAS and Windows Server are on the same subnet or have routable network connectivity.
- Verify DNS resolution: TrueNAS must resolve the Windows Server’s AD domain name (e.g., example.local).
TrueNAS Version:
- This guide focuses on TrueNAS SCALE 25.04 or TrueNAS CORE 13, as these are recent versions compatible with modern Windows Server environments. If you’re using an older version, consider upgrading.
Windows Server Setup:
- AD domain is fully configured with at least one domain controller.
- DNS server is running on the Windows Server, and the TrueNAS system can query it.
Step 1: Prepare TrueNAS Network Configuration
Access TrueNAS Web Interface:
- Boot your TrueNAS system and note the IP address displayed on the console.
- Open a web browser on a computer in the same network and navigate to http://<TrueNAS_IP> (or https://<TrueNAS_IP> if SSL is enabled).
- Log in with the default credentials (username: truenas_admin or root, password set during installation).
Configure Network Settings:
- Navigate to Network > Global Configuration.
- Set the Hostname to a meaningful name (e.g., truenas01).
- Set the Domain to match your AD domain (e.g., example.local).
- Under Nameserver 1, enter the IP address of your Windows Server’s DNS server (e.g., 192.168.1.10).
- Save changes.
Configure Network Interface:
- Go to Network > Interfaces.
- Edit the active network interface (e.g., en0).
- Assign a static IP address (recommended) or ensure DHCP is providing a consistent IP.
- Example: IP Address: 192.168.1.100, Subnet Mask: 255.255.255.0, Gateway: 192.168.1.1.
- Save and test the configuration by pinging the Windows Server from the TrueNAS shell:
- Go to System Settings > Shell.
- Run ping <Windows_Server_IP>.
- Ensure you get a response.
Verify DNS Resolution:
- In the TrueNAS shell, run:
- bash
- Example: nslookup example.local. Confirm it resolves to the Windows Server’s IP.
- If DNS fails, double-check the DNS server IP in the network settings.
Step 2: Join TrueNAS to Active Directory
Prepare Windows Server AD:
- Log in to your Windows Server 2025.
- Open Active Directory Users and Computers.
- Create a user account for TrueNAS to use for AD binding (e.g., truenas_bind).
- Example: Username: truenas_bind, Password: SecurePass123!.
- Ensure the password does not expire (set “Password never expires” in user properties).
- Optionally, pre-create a computer account for TrueNAS in AD under the desired OU (e.g., OU=Servers,DC=example,DC=local).
Configure Active Directory in TrueNAS:
- In the TrueNAS web interface, go to Credentials > Directory Services.
- Click Configure Active Directory.
- Fill in the following fields:
- Domain Name: Your AD domain (e.g., example.local).
- Bind User: The AD user for binding (e.g., example\truenas_bind).
- Bind Password: The password for the bind user (e.g., SecurePass123!).
- Enable: Check this box to activate AD integration.
- NetBIOS Name: Set to the TrueNAS hostname (e.g., truenas01).
- Site (optional): Specify your AD site if applicable.
- Kerberos Realm: Select the default realm created for your domain (TrueNAS auto-detects this).
- Click Advanced Options for additional settings:
- Ensure Allow Trusted Domains is unchecked unless you have a multi-domain setup.
- Set Verbose Logging for troubleshooting if needed.
- Click Save.
Verify AD Join:
- After saving, TrueNAS will attempt to join the AD domain. This may take a few seconds.
- Check the status under Directory Services > Active Directory. It should show “Healthy” or “Joined”.
- If it fails, check:
- DNS resolution (nslookup example.local).
- Correct bind user credentials.
- Firewall settings on Windows Server allowing TrueNAS to connect (ports 53, 88, 135, 389, 445, etc.).
- In the TrueNAS shell, verify AD integration:
- bash
- This should list AD users. Also, run wbinfo -g to list AD groups.
Step 3: Create a Storage Pool and Dataset
Create a Storage Pool:
- Go to Storage > Pools > Add.
- Select Create new pool and click Create Pool.
- Name the pool (e.g., DataPool).
- Select available disks (e.g., two or more drives for RAID-Z1 redundancy).
- Choose a Vdev configuration (e.g., RAID-Z1 for redundancy).
- Click Create and confirm to erase the selected disks.
Create a Dataset for SMB:
- In the Pools section, click the three dots next to your pool and select Add Dataset.
- Name the dataset (e.g., SMBShare).
- Set Share Type to SMB (this optimizes the dataset for Windows file sharing).
- Under Advanced Options, set Case Sensitivity to Insensitive (recommended for Windows).
- Click Save.
Set Permissions for the Dataset:
- Click the three dots next to the dataset and select Edit Permissions.
- Set Owner to an AD user or group (e.g., example\Administrator or example\Domain Admins).
- Set ACL Type to SMB.
- Apply permissions recursively if needed.
- Click Save.
Step 4: Configure SMB Shares
Enable SMB Service:
- Go to Services > SMB.
- Toggle Enable and check Start on Boot.
- Click Save and start the SMB service.
Create an SMB Share:
- Go to Sharing > Windows Shares (SMB) > Add.
- Click the folder icon to select the dataset path (e.g., /mnt/DataPool/SMBShare).
- Name the share (e.g., DataShare).
- Check Enabled.
- Optionally, enable Access Based Enumeration (ABE) if you want only authorized users to see files/folders (note: ABE may have issues with Windows Server 2025; see troubleshooting below).
- Click Save.
Verify SMB Configuration:
- In the TrueNAS shell, run:
- bash
- This displays the SMB configuration. Ensure the share appears correctly.
Step 5: Configure Windows Server to Access TrueNAS SMB Share
Verify Network Connectivity:
- From the Windows Server, open a Command Prompt and ping the TrueNAS IP:
- cmd
- Example: ping 192.168.1.100.
Map the SMB Share:
- Open File Explorer on the Windows Server.
- Right-click This PC and select Map Network Drive.
- Choose a drive letter (e.g., Z:).
- Enter the share path: \\<TrueNAS_IP>\<Share_Name> (e.g., \\192.168.1.100\DataShare).
- Check Connect using different credentials if needed.
- Enter AD credentials (e.g., example\Administrator and password).
- Click Finish.
Test Access:
- Verify you can access the share and read/write files.
- If access is denied, check:
- Dataset permissions in TrueNAS.
- AD user permissions.
- Firewall settings on both systems (ensure SMB ports 445 and 139 are open).
Step 6: Optional - Configure NFS (Alternative to SMB)
If you prefer NFS over SMB for specific use cases (e.g., faster performance for non-Windows clients):
Create an NFS Share:
- Go to Storage > Pools, select your dataset, and ensure it’s set to Generic share type.
- Navigate to Sharing > Unix Shares (NFS) > Add.
- Select the dataset path (e.g., /mnt/DataPool/SMBShare).
- Add authorized networks (e.g., 192.168.1.0/24).
- Click Save.
Enable NFS Service:
- Go to Services > NFS.
- Toggle Enable and check Start on Boot.
- Save and start the service.
Access NFS on Windows Server:
- Enable the NFS client on Windows Server:
- Open Control Panel > Programs > Programs and Features > Turn Windows features on or off.
- Enable Client for NFS under Services for Network File System.
- Mount the NFS share:
- cmd
- Test access to the mounted drive.
Step 7: Troubleshooting Common Issues
AD Join Fails:
- Ensure DNS settings are correct (TrueNAS must resolve the AD domain).
- Verify bind user credentials and permissions.
- Check Windows Server firewall rules (open ports 53, 88, 135, 389, 445, 464, 636).
SMB Share Not Accessible:
- Verify SMB service is running (Services > SMB).
- Check dataset permissions and ACLs.
- Ensure the Windows Server’s AD credentials have access to the share.
- If using ABE, test with it disabled, as Windows Server 2025 may have compatibility issues.
Slow Performance:
- Use SSDs for storage pools to improve performance.
- Ensure network interfaces are configured for gigabit or higher speeds.
- For NFS, consider enabling RDMA if your hardware supports it.
Windows Server 2025 VM Installation Issues:
- If running Windows Server 2025 as a VM on TrueNAS, ensure VirtIO drivers are injected into the ISO for proper disk detection.
- Use UEFI boot mode for modern hardware and verify the ISO is correctly mounted.
Step 8: Backup and Security
Enable Snapshots:
- Go to Data Protection > Periodic Snapshot Tasks > Add.
- Select the dataset (e.g., SMBShare).
- Set a schedule (e.g., daily snapshots).
- Save to enable automatic backups.
Secure TrueNAS:
- Change the default admin password.
- Enable two-factor authentication (2FA) in System > General.
- Restrict SSH access and use key-based authentication.
Backup AD Data:
- On Windows Server, configure regular backups of AD using Windows Server Backup.
- Store backups on the TrueNAS SMB share for redundancy.
Step 9: Advanced Configuration (Optional)
Replication to Windows Server:
- If you need to replicate TrueNAS datasets to Windows Server 2025, use rsync or a third-party tool, as direct ZFS replication to Windows is not supported.
- Install rsync on Windows Server (e.g., via Cygwin) and configure a task in TrueNAS under Data Protection > Rsync Tasks.
Virtual Machines:
- TrueNAS SCALE supports VMs, so you can run Windows Server 2025 as a VM on TrueNAS if needed. Follow the VM creation wizard in Virtualization > Add VM and use a Windows Server ISO with VirtIO drivers.
TrueNAS Apps:
- Install apps like Plex or Nextcloud on TrueNAS SCALE to enhance functionality. Go to Apps > Discover Apps and follow the setup wizard
Additional Notes
- TrueNAS SCALE vs. CORE: TrueNAS SCALE is Linux-based and supports modern features like Kubernetes apps, while CORE is FreeBSD-based and better for legacy systems. For Windows Server 2025, SCALE is recommended due to its active development.
- Windows Server 2025 Compatibility: Ensure TrueNAS is updated to the latest version (e.g., SCALE 25.04 or CORE 13) to avoid compatibility issues with SMB or AD integration.
- Documentation: Refer to the TrueNAS Documentation Hub for detailed settings