Ubuntu or TruNAS for New Server?

I have been running Unraid for a little over 1 year now but I am currently looking to move to Ubuntu/Ubuntu Server.

I have converted all my docker containers in docker-compose files and have used ansible playbooks to set up configuration/create users for all the services.

I still need to learn ZFS, Samba (SMB shares), and VM’s (maybe proxmox?)

My question is I’ve seen a little bit about TruNAS in the past and I’m wondering if there is any reason I should give it some consideration or if I should just continue down my Ubuntu/Ubuntu Server path?

For context one of the main reasons I wanted to move away from Unraid was the booting from usb/none of my changes persisting on the OS. I also wanted to use the traditional user/permission system for linux. (managing access based on users, running apps with individual users, etc.)

Plus I just thought it would be fun/cool to try out plain linux and it also seems less bloated to me.

I’m open to any thoughts or suggestions.

If you want to learn, go for Ubuntu Server and install ZFS, SMB, etc. yourself. Learning and using everything via the terminal is a great way to be ready for everything in the future.

If you just want a “just works” storage/virtualization server, go for TrueNAS or Proxmox.

Proxmox is very easy and fast on the virtualization side of things. That’s what it was built for. Proxmox is not designed to be a storage server. But you can use ZFS from the CLI and make an SMB/NFS server VM/Container, e.g. with Cockpit to get a nice WebUI.

Proxmox uses local storage transparently and you don’t really need to interact with it. Just select storage on VM creation, done.

A dedicated hypervisor is nice. Because from there, you can just create as much VMs as you like and run whatever you like to run. A solid and flexible foundation.

Proxmox + Ubuntu Server VM? You don’t always have to choose, you can take both as well :slight_smile:

2 Likes

It doesn’t seem normal that your changes to Unraid wouldn’t persist on reboot. I’ve been using Unraid for years and have never had that problem.

@Exard3k
I think I will install proxmox on another machine this weekend and play around with that.

I’ve never used it before but it is probably a good choice since I do want an easier way to spin up VMs if I every want/need to play with something new.

If all goes well I will run proxmox with ubuntu/ubuntu server VMs (1 for storage and another for applications probably).

One question I do have is how would the storage access work between VMs? If I have zfs pools set up in 1 vm how would I access it from other VMs? Would it be over the network or is there a way to pass those resources to other VMs inside proxmox?

Thanks for the advice!

1 Like

For these I more so mean things like using cron or other general changes in linux. Usually you can just make these changes on any linux OS but since unraid boots off a usb I ended up having to use plugins to achieve things like this.

Unraid has been great and I would definitely recommend for anyone starting out. I don’t think I would have made it this far without starting there first but at this point I want to try out explore some other options where I have more control. Could be fun and I’ll also learn some new stuff along the way I’m sure.

Thanks for the feedback!

Proxmox then do it all!

I did install proxmox over the weekend and have been playing with it since, I think this will be the plan going forward.

I was able to pass through each hard drive individually to an ubuntu VM and create a zpool there but I also just purchased an LSI 9305 16i so that I can just pass the entire card through. (Plus this will future proof if/when I want to get an HL15 case from 45 drives/homelab)

I have to say though proxmox is absolutely amazing so far. Just needed to get over the hardware passthrough hurdle but every past that has been smooth sailing so far.

1 Like

Did you go with Ubuntu or Ubuntu Server?

I’m familiar with Ubuntu through work, but not Ubuntu Server, and don’t know if I’d really need to go US over the original Ubuntu. What did you go for in the end?

ubuntu server is almost the same thing als ubuntu. Except it doesn’t have the gui and all the applications because you don’t need it for a server.

I’ve ran an ubuntu server for some time, all the commands work the same way and its quite stable.

If resources are not an issue, TrueNas Scale seems nice, but not under 8GB of ram, also if you want to go with any distro barebones like ubuntu/debian/etc you need to keep in mind that most of your maintinance will be done manually via ssh, and if you expirience storage pool issues, you’re responsable for reporting and stuff before its too late. In order for people to suggest good option for your usecase, be more precise with intended use. in any case barebones uses ~50% less ram tho and boots a lot faster even on spinning rust :slight_smile:

I recently heard something indicating that TrueNAS makes sharing directories & files between docker containers more difficult. Is this accurate? (Did I misunderstand something?)

Full disclosure. I have not used “TrueNAS” since back when it was called FreeNAS, and it has changed significantly since then.

All of that said, TrueNAS is more of a special purpose NAS install. You can get it to run various containers and VM’s, but that’s not really what it is designed for. It is intended to be a standalone install that does nothing but NAS.

It has a pretty web based interface, that can make managing ZFS easier for a beginner who has command-line phobia, but other than that, it might hold you back a bit.

I’d argue you could do more with a Linux server install. It is more flexible than a cut down, minimalistic FreeBSD implementation focused on NAS.

As long as you don’t have great discomfort in using the command line, ZFS is pretty easy to manage from the command line, and there are example commands for everything if you just google.

The only issue you are likely to run into with ZFS on Ubuntu is if you use an LTS release of Ubuntu (which you should for a server) and then decide that you need a newer kernel than shipped with that release, and opt to install it using the Hardware Enablement stack.

The issue that occurs is as follows.

ZFS lives both in kernel space (as a Kernel driver module) and in user space (the ZFS management tools)

If you update the kernel beyond what your Ubuntu release shipped with, this may result in a newer OpenZFS kernel module. This in turn may result in your ZFS management tools packages having an older version than your kernel driver. In some cases this is not a problem at all. In other cases that can cause issues. I guess the point here is that mismatched ZFS management tools and kernel drivers are an untested configuration, and thus while likely fine most of the time, can on occasion result in unpredictable results.

You mention some VM’s and containers and Proxmox. Honestly, I think that is a better idea for what you intend to do. Proxmox is really designed to run on top of ZFS, has good supported tools for booting from ZFS pools, and setting up ZFS pools to host your VM’s and containers on.

Proxmox - just like Ubuntu - is based on Debian, so the console experience is very similar to Ubuntu, but the team purposefully manages things like ZFS versions, tools for booting from ZFS pools, etc. etc.

I have been using Proxmox for years, and would highly recommend it.

Edit: DOH. I just realized I replied to a very old thread…

1 Like

I think necroing threads like this is good for culture. Don’t think too much of it! The idea that only the past week can be discussed is something pushed by social media, and not how humans work.

Your response was well thought out but consider the intentions behind the original thread. The user was so inexperienced that trying both was the correct answer. Consider that hand holding the ignorant doesn’t lead to fruitful results. It’s the sort of question that is asked like “what should i eat for desert? icecream or pizza?” This question makes no sense, and should be thrown away.

Also assigning different vms different drives instead of creating a pool is all time top 10 insane misuse of hardware and software. it’s really funny and should be celebrated.