jpprojects

TrueNAS

A NAS (Network-Attached Service) is a kind of server that provides storage for machines on the same network (LAN). This allows multiple machines to share the files and storage. TrueNAS is a Debian-based NAS Operating System that can be locally hosted. It is simple to configure with a browser GUI. TrueNAS can be flashed to dedicated hardware or virutalized. For convenience, this method uses virtualization from Windows 11 (also works on 10). Because of the nature of a NAS, this project has certain hardware requirments:

The following steps detail NAS configuration:


1. Install a VM Platform

VirtualBox is the easiest option, though hypervisors like Proxmox are also great, especially for managing multiple VMs. Download VirtualBox here. Select the “Windows hosts” option.

2. Download TrueNAS SCALE ISO

This is the image of the TrueNAS OS our VM will run. Download the current version and check that it has the .iso extension.

3. Create the Virtual Machine

4. Attach the TrueNAS ISO

While still in the settings, go to the Storage tab. Click the empty optical drive, then click the vlue CD Icon. Select the TrueNAS ISO downloaded in step 2.

5. Start the VM and Install TrueNAS

Start the VM with the Green Go Arrow in the top menu.

The VM console should boot into the TrueNAS installer. Choose the Install/Upgrade option, and select the small OS disk option (not the 100 GB option). Allow the machine to wipe and install, and then set a root password. When it asks about the boot environment choose “BIOS”.

Once it finishes navigate to VirtualBox, then Devices,Optical Drives and finally Remove the ISO. Then, reboot the VM.

6. Access the TrueNAS from your Browser

The TrueNAS VM Console should display an IP address:

The web interface is at: http://192.168.x.x

Open a browser and visit http://<that-ip>. Log in with Username: root and the root password set in step 5.

7. Create a Storage Pool

In the TrueNAS UI, navigate to the Storage page on the left sidebar and click “Pools”. Click “Create Pool” and name it “tank”. Select the big (100 GB) disk. Click Add VDev. Set “Layout” to “Single Disk” and click “Create”. The storage is now ready

8. Create shared folder/dataset

Navigate to Storage, then Pools, then tank. Click “Add Dataset” and name it NASshare. Click “Save”

9. Create SMB Share

In the left sidebar, navigate to “Shares”. In the SMB section, click “Add”. Make sure the path is /mnt/tank/NASshare. Set the name to NASshare. Set “Enable SMB service?” to “Yes”.

10. Connect to the NAS

On Windows, press Win + R. Type \\<TrueNAS-ip> and hit enter. NASshare should display and can be mapped as a drive by right clicking and selecting “Map Network Drive”.


Note : This project benefits from downtime scripting, found on Scripting project page.