FreeNAS and VMs questions

I want to use Windows as host and at the same time I want the machine to be a NAS.

I plan to run FreeNAS on HyperV or VMware to direct control the HDD. It is passable to do it without losing a lot of performance.


I want to use OpenCL on this machine, but due to some reasons, those programs can only run on Win. However, it said that the VirtualBOX provided by FreeNAS is not suitable for Windows. As a result, I want to run FreeNAS on HyperV or VMware.

Can we make a reverse? Windows runs on the VM on FreeNAS or both FreeNAS and Win are on VMs?


His question is very similar to mine.
https://forum.teksyndicate.com/t/new-project-how-to-make-a-freenas-vm-render-machine/88350


I found a post on freenas website and he said that it is passible to run freenas on VM

Hardware going to use

  • Intel Xeon E5-2650v3
  • DDR4 ECC 32GB@2133
  • ASRock X99E-ITX/ac
  • R9 Fury Nano
  • 5x 4TB HDD
  • some SSDs

do not do this unless you have a way to pass through a sata controller to the Freenas vm (iommu) . Read this

1 Like

Performance shouldn't be an issue. If it's possible to pass the hard drive controller through to the VM that will probably work better for freenas as i've heard it doesn't really like working with virtual disks. Your motherboard and cpu will need to support it though.

But I wouldn't recommend it. You say you have to run windows, can you not run something else and virtualize windows instead? Also, if you don't need ZFS there's no reason why you can't just use windows as a NAS.

Hyper-V can pass through disks although I'm not sure that it has very good BSD guest support.

passing though discs might not be enough though, im assuming it just maps the disc to a file and not pass through the actual sata controller which is needed for zfs to work properly

EDIT: you absolutely have to pass through the sata controller (as in iommu) and not just map the disc to a file for zfs to work properly.

99% sure it passes the disk through as you have to offline the disk on the Hyper-V host for it to work.

if its passing through individual discs, its not actually passing them through (as in assigning the actual disc to the vm) its just mapping the disc blocks to a file and giving it to the vm. You cant pass through a disc to a vm because its not on the pcie bus. U can only pass through the sata controller (which is on the pcie bus) that has access to the disc.

This is highly worth a read in regards to virtualisation of FreeNAS. Specifically points 6 + 7