CaedenV
Dabbler
- Joined
- Jul 25, 2017
- Messages
- 15
TLDR version:
I want to run FreeNAS as a VM on ESXi with drive passthrough, but am having difficulties; How robust is the new VM support in FreeNAS 11, and would it work to run FreeNAS as a VM host for Windows and Linux machines?
Long version:
So.... Over the summer I had a big beautiful motherboard drop in my lap (Gigabyte GA-x79-UP4) with 10 SATA ports (+2 eSATA ports!), and it came with a 4-core i7, but I can upgrade to an 8 core Xeon chip for cheap, and when combining ram I am at ~50GB of DDR3 (with a max of 65GB).
I was able to migrate/reinstall from my old AMD A10 FreeNAS box successfully with minimal issues, but as 'just a file server' this is kind of a waste of hardware, so my thought is to play with fire and run ESXi 6.5 host and then run FreeNAS as a VM with VT-d enabled to pass most of the HDDs through to the FreeNAS VM.
At least, it seemed like a good idea at the time hahahaha
First issue was that while the Marvel SATA controlers are recognized, they are not supported; Enabled 'community device support' via a SSH session, and got that bit working
Second issue appears to be a known bug with my particular motherboard. When VT-d is enabled, the HDDs do not show up in ESXi at all. When VT-d is disabled the drive show up, but I cannot pass them through to a VM directly.
So here is my setup:
8 HDDs (soon to be 12!)
-Intel controller has 6 3TB drives, and they all work just fine
-Marvel1 currently has 2 3TB drives, but will be adding another 2 drives shortly
-Marvel2 will have 2 smaller 1TB drives that I want to use as drive space for housing VMs
When running FreeNAS this is no big deal because it does all of the RADI/ZFS in software, so being on multiple controllers works just fine. Option #1 is using the on-board RAID controllers to create several small RAIDs, and then present them as data pools to FreeNAS... but I would loose a lot of drive space to redundancy. Not all bad... but not ideal either. I could do a RAID5 on the 6 Intel drives, and a RAID 5 on the Marvel, and still have 2 drives of redundancy that I have now... but just 1 redundancy per pool which scares me a bit (some of my drives are consumer grade from when I started this project a few years ago... I am on borrowed time on those devices). Plus, I am not a fan of making a mess of the pools. I would prefer to have 1 large pool of drives with redundancy... like the big ZFS that I have been using up until now.
Plus, from what I am reading, ESXi does not have very good software RAID driver support, so this may not work in the first place as I am not running a 'real' RAID controller.
Option #2 is to somehow make pools and present them to FreeNAS
Perhaps 1 pool per physical drive, and then have ZFS on the FreeNAS side? But I have no idea if 'that is a thing' or how FreeNAS would react to that. Or I could create one big pool of all 10 drives which FreeNAS uses... but my understanding of pools (admittedly limited) is that it does not do any form of RAID or redundancy.
Option #3
I just Redid my friend's FreeNAS box (which all my data is backed up on, and why I can afford to play with mine right now) I noticed there is a VM option in FreeNAS 11. So perhaps I don't use ESXi at all, and instead use the VM capabilities of FreeNAS itself. Perhaps not as fun and sexy as ESXi... but if it can run a few small game servers, and perhaps 2-3 Windows/Linux VMs, then I think it would be 'good enough' for now.
The ultimate goal is to be able to use my box for more things. The purpose is mostly to learn stuff... but on the cheap. I want to run a linux VM as a DC so I can learn more computer management options for work. I have a bunch of ubiquity APs that need an always-on windows host as a controller. I would like to spin up the occasional game server (for Minecraft and the like). If I get really ambitious then I would like to set up a security camera server (Milestone is free for up to 8 cameras I think). If FreeNAS's VM hosting is up for these kinds of tasks then great; but I really want to use ESXi just for exposure and learning that system if possible.
Anywho, any thoughts or ideas would be much appreciated!
Thanks for the help!
I want to run FreeNAS as a VM on ESXi with drive passthrough, but am having difficulties; How robust is the new VM support in FreeNAS 11, and would it work to run FreeNAS as a VM host for Windows and Linux machines?
Long version:
So.... Over the summer I had a big beautiful motherboard drop in my lap (Gigabyte GA-x79-UP4) with 10 SATA ports (+2 eSATA ports!), and it came with a 4-core i7, but I can upgrade to an 8 core Xeon chip for cheap, and when combining ram I am at ~50GB of DDR3 (with a max of 65GB).
I was able to migrate/reinstall from my old AMD A10 FreeNAS box successfully with minimal issues, but as 'just a file server' this is kind of a waste of hardware, so my thought is to play with fire and run ESXi 6.5 host and then run FreeNAS as a VM with VT-d enabled to pass most of the HDDs through to the FreeNAS VM.
At least, it seemed like a good idea at the time hahahaha
First issue was that while the Marvel SATA controlers are recognized, they are not supported; Enabled 'community device support' via a SSH session, and got that bit working
Second issue appears to be a known bug with my particular motherboard. When VT-d is enabled, the HDDs do not show up in ESXi at all. When VT-d is disabled the drive show up, but I cannot pass them through to a VM directly.
So here is my setup:
8 HDDs (soon to be 12!)
-Intel controller has 6 3TB drives, and they all work just fine
-Marvel1 currently has 2 3TB drives, but will be adding another 2 drives shortly
-Marvel2 will have 2 smaller 1TB drives that I want to use as drive space for housing VMs
When running FreeNAS this is no big deal because it does all of the RADI/ZFS in software, so being on multiple controllers works just fine. Option #1 is using the on-board RAID controllers to create several small RAIDs, and then present them as data pools to FreeNAS... but I would loose a lot of drive space to redundancy. Not all bad... but not ideal either. I could do a RAID5 on the 6 Intel drives, and a RAID 5 on the Marvel, and still have 2 drives of redundancy that I have now... but just 1 redundancy per pool which scares me a bit (some of my drives are consumer grade from when I started this project a few years ago... I am on borrowed time on those devices). Plus, I am not a fan of making a mess of the pools. I would prefer to have 1 large pool of drives with redundancy... like the big ZFS that I have been using up until now.
Plus, from what I am reading, ESXi does not have very good software RAID driver support, so this may not work in the first place as I am not running a 'real' RAID controller.
Option #2 is to somehow make pools and present them to FreeNAS
Perhaps 1 pool per physical drive, and then have ZFS on the FreeNAS side? But I have no idea if 'that is a thing' or how FreeNAS would react to that. Or I could create one big pool of all 10 drives which FreeNAS uses... but my understanding of pools (admittedly limited) is that it does not do any form of RAID or redundancy.
Option #3
I just Redid my friend's FreeNAS box (which all my data is backed up on, and why I can afford to play with mine right now) I noticed there is a VM option in FreeNAS 11. So perhaps I don't use ESXi at all, and instead use the VM capabilities of FreeNAS itself. Perhaps not as fun and sexy as ESXi... but if it can run a few small game servers, and perhaps 2-3 Windows/Linux VMs, then I think it would be 'good enough' for now.
The ultimate goal is to be able to use my box for more things. The purpose is mostly to learn stuff... but on the cheap. I want to run a linux VM as a DC so I can learn more computer management options for work. I have a bunch of ubiquity APs that need an always-on windows host as a controller. I would like to spin up the occasional game server (for Minecraft and the like). If I get really ambitious then I would like to set up a security camera server (Milestone is free for up to 8 cameras I think). If FreeNAS's VM hosting is up for these kinds of tasks then great; but I really want to use ESXi just for exposure and learning that system if possible.
Anywho, any thoughts or ideas would be much appreciated!
Thanks for the help!