Virtualize TrueNAS

Hi smione, hi everyone
Well, I solved it, but you have to be tricky with Hyper V. The recipe turns out to be the following:

  1. To have static IP for virtual TrueNAS you’ve got to use same net mask for the static IP as for other devices on your network although /24 is recommended
  2. As you’ve advised External virtual switch has to be properly set up. But you have to set it up when VM is shut down Otherwise you get an internal (host machine) static IP that works only until you have to reboot it. And there will be not warnings or anything, it just wouldn’t work.
  3. Now I’m thinking of how to get TrueNAS working when there is no Internet, as it becomes not accessible from internal WiFi mesh network. although it has internal IP (from the WiFi router).
  4. Plus I’ve created couple of SMB shares and during copying to trueNAS I get only 0.9 GB of free RAM left (out of 16) in the TrueNAS dashboard, what makes me now wonder whether I need or not to install more RAM.

This is a feature.

TrueNAS uses unused memory as cache.

And you would probably benefit from more.

Right. Thanks for the info.

I’m currently copying files at about 50 MB/sec (TrueNAS shows around 400 Mb/s incoming speed), and I believe this is pretty low speed.
Although its over WiFi. but with a link at 800 Mbit/sec.
TrueNAS utilizes currently 4 CMR 5400 HDDs. RaidZ2. Plus NVMe for SLOG.

Will extra RAM increase the copying speed ?

SLOG is unlikely to be any use—it is NOT a write cache.
The drives should be faster than that.
The WiFi link is a weak spot: You’re already at half the theoretical maximum.
Then there’s SMB itself.

1 Like

Looked at this thread to see if I could help, but unfortunately HyperV isn’t my forte… But I saw this comment of other hypervisors you were looking at, and thought I’d at least add my 2 cents on it, along with some other personal input

I used to use ESXi until they dropped support for my Dual Xeon E5-2690v3 processors. Was a good clean experience. Unfortunately they stopped offering free individual licenses in 2024 as well.

I did try out Proxmox for a while, and its not bad, but there were just a lot of minor bugs that irritated me.

I ended up settling on XCP-ng, which I’ve been using for about 2 years now, with TrueNAS Scale being virtualized, running about 20 apps on it, and then another 11 VMs setup for various purposes. It’s free, like proxmox, and is based on XenServer.

I’m also maxing out my R/W speeds over gigabit LAN, 113MB/s Read and Write from my desktop.

I will say that I’m not super sure of the perfomance impact of RaidZ2, as I run in a Raid10 (Stripe + Mirror) config, as I find it more easily expandable, and in my experience the parity calculations can cause performance degredation.

Good luck!

1 Like

Thank you for the input.
Yeah, I chose Hyper V and currently deployed besides TrueNAS couple of Docker containers and one Windows VM.
So looks like I’m currently stuck with Hyper V )

Finally, installed the system.
(TrueNAS 24.10.2.1 under Proxmox 8.3)
There is no visible perfonmance degradation I can see…

Just an FYI for those who think it’s easier to revert when virtualizing… Consider using zpool checkpoint command on Scale. Can’t be much easier. If you revert to a checkpoint (super fast), you are right back where you were before the checkpoint. I find that the easiest way.

man zpool-checkpoint

This is mainly to point out for any readers of the thread.

3 Likes

I’ve set up everything, but when I try to create another Windows VM in Hyper V, and utilize a virtual disk on Truenas - it says that Hyper V doesn’t have read/write rights.

Althoght the necessary SMB share / folder is created and connected, and I can create new folders there. ACL are also setup (as I can create folders a copy and delete filies in it).

Exactly right. I run Proxmox on my server, and pass through an HBA to TrueNAS. TrueNAS operates exactly as if it was on bare metal as far as these drives go. As far as degrading performance, I will take the 1% hit to performance just to not have to use TrueNAS for managing VMs. I also don’t really use the TrueNAS apps function either. Rsyncd is the only app I installed through the TrueNAS web interface. I installed the portainer agent through the command line, and I set up all my docker containers using Portainer Stacks and my own docker compose files. I simply bind mount to my TrueNAS datasets. I use TrueNAS to simply manage storage, where it shines. and I use other tools where TrueNAS falls short.

1 Like

No, Hyper-V is a type 1 Hypervisor. So a native or bare-metal hypervisor

Hyper-V is not installed on windows!

Enabling Hyper-V feature converts the host Windows OS into a virtual machine that then runs as a “root partition”

1 Like