My Dream System (I think)

Status
Not open for further replies.

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Mark, you are a true Bridge Builder,
congrats on your success and thanks for
taking the time to document your experiences.
Thanks. I plan to document this better but I was able to use my friend Google to find a lot of help. I'm sure I'm missing something and I hope to figure that out before I place the system back in the basement, although IPMI is working very well, it's just the unforeseen things that I'm waiting to bite me.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Very nice, congrats:)

-Whats the reason you go for 64 Gigs Ram?
-Any thoughts invested in a backup strategy yet? (For VMs as I assume you have a plan for data:))
This is a bit tricky with passthrough since the easy "snapshot / in place copying" will not work for VMs with pass through... On the other hand its only the boot drive & config that needs to be saved and thats probably easily recreated...

I am still waiting for the mainboard so only theoretical musings on my end;)
The reason for 64GB is because I plan to use this platform for more than FreeNAS and Sophos. FreeNAS takes a solid 16GB of RAM, it currently does not free anything up and from a stability point of view, that is ideal for me. Any other VM will consume a small amount of RAM but after I've installed a few more VMs, maybe even another FreeNAS for testing purposes, all my RAM will be gone. Of course I still have VMWare Workstation and I'll likely be using that as well since it does work well on my machine. Lastly I'm upgrading the RAM because the RAM was somewhat cheap compared to other sources and it all passed the RAM test so I wanted to buy it while I could. $114 for a 16GB stick of certified ECC RAM isn't too bad.

As for backups, the only thing important to me is some of the data on my FreeNAS system and that gets manually backed up to DVD media. If I lose a VM, I'll not be happy about it but I can reconstruct it. And I practice what I preach, I do maintain backups of my FreeNAS and Sophos configuration files so I can easily restore my system, but of course it will take time to do it. I have not looked into any other backup solution for ESXi but if I can backup my 256GB SSD, that would be the most important thing to do from a recovery aspect. Guess I need to look into that a bit as it would save me a lot of time. As for recreation, it's the little settings that will likely get lost so I will need to write those down regardless.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Gives you a new appreciation for all the layers of complexity going on, doesn't it. Also some better insight into why it is so easy for people to fail, especially if they're not as thorough as you appear to be.
Thankfully I don't mind taking my time and learning about this stuff. I think the final thing to configure is the UPS which means I need to drag that thing out of the basement and get it to work properly ensuring ESXi shuts things down correctly and then hopefully when power is restored, maybe the system powers back up? I'm not sure about the last one, I think that will still be a manual operation to power on the motherboard once the UPS knows power is good again. I'm sure there is a solution for this, I might just need Google's help.
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Lastly I'm upgrading the RAM because the RAM was somewhat cheap compared to other sources and it all passed the RAM test so I wanted to buy it while I could. $114 for a 16GB stick of certified ECC RAM isn't too bad.

Hm thanks for the hint - It's got down 20 bucks here as well since i bought mine ... might actually upgrade to 64 as well while its cheap - which brand/modell did you pick in the end ? I have a set of M391A2K43BB1's here but couldnt test them yet so I wonder if you might have the same:)
 
Last edited:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996

ChriZ

Patron
Joined
Mar 9, 2015
Messages
271
Regarding your 256GB ssd: Why don't you consider a mirror? It would offer extra piece of mind.
 

Frallan

Dabbler
Joined
Feb 2, 2016
Messages
11
I'm also running FreeNAS under ESXi as of yesterday and so far it's been working as I'd expected. I'm using a m1015 in passthrough mode and the VMXNET3 network interfaces.

I found this link to contain a lot of useful information which helped me get started https://b3n.org/freenas-9-3-on-vmware-esxi-6-0-guide/. Specifically I've copied the storage network idea which I will use for ESXi as well as additional VMs.

I'm on the lookout for a suitable UPS and I assume that ESXi doesn't have the xHCI issues that FreeNAS suffers from so I'll be able to use a USB UPS.
 

WBos

Dabbler
Joined
Feb 25, 2016
Messages
18
I got a nice piece of hardware laying around for this, but it makes to much noise :)
DELL PE2900 with 8 x 146Gb SAS drives, Dual Xeon E5450 and 32GB ECC Mem.
Already installed ESXi 6 on it, with my own home usable infra (SOPHOS UTM9 Home edition, W2k8 with DHCP and DNS en VM FreeNas)

I don't want to play alot with it, and now i'm just building my dedicated NAS (6x3TB in RaidZ2 config) presenting a ISCSI Datastore towards ESX to move the VM's to a bit more secure layer.
In that way, i keep the play's vm's on the ESX disks, worth loosing.

I dont see the point of combining those two.. performane wise, keep it seperated, unless you just wanna play :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Regarding your 256GB ssd: Why don't you consider a mirror? It would offer extra piece of mind.
Mirroring the SDD would require me to use the motherboard RAID feature and to be honest, I have great piece of mind just using the single SSD. I'd just like to ability to quickly restore my system in the event of a failure. I will likely adopt the same thing I'm sure most admins do, backup the ESXi host configuration file and separately backup the VMs. But to be honest, I can just backup all the configuration files for my VMs, well FreeNAS, Sophos, and of course the ESXi Host. Each one of those can be rebuilt quickly (within reason). The only VMs I would actually need to backup are Ubuntu and Windows where you really need a full backup of the VM. There are several free tools to automatically backup VMs.

I'm also running FreeNAS under ESXi as of yesterday and so far it's been working as I'd expected. I'm using a m1015 in passthrough mode and the VMXNET3 network interfaces.
What I don't understand is the way the VMXNET3 network interface is meant to work. I'm a bit lost when I read about it because I think it's for an internal network interface within the ESXi host, not for external NIC interfaces. I'd like to understand this better. I too found that link you provided above and read though it. Maybe I'm ignorant but I'm not grasping VMXNET3. If VMXNET3 is just an internal network, then how do I connect to the outside world. I'm sure it works but I don't see it based on what I've read. Maybe more research is required. I can see how the faster interface would help out local VMs accessing data faster.
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215
What I don't understand is the way the VMXNET3 network interface is meant to work.
It is just how you choose to emulate the network adapter on the Virtual Machine. Traffic is routed to the virtual switch and then out to the real network adapters attached/assigned to said virtual switch.

Here is the link they provide on the different types of emulated NICs: https://kb.vmware.com/selfservice/m...nguage=en_US&cmd=displayKC&externalId=1001805

I run a mix of emulated adapters for VMs, although I don't actually recall why right now.. :)
upload_2016-3-1_17-6-33.png
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
That helps me a lot, visuals work for me. Also, I have already decided to rebuild the ESXi server after I get back from a 2 week long vacation. Looks like when my RAM shows up, it will have to wait.

So with respect to rebuilding the ESXi system, I originally used a custom build of ESXi which has drivers for the SATA add-on cards I installed, however I don't really need that and to simplify restoring in case of a drive failure, I think I'll just use the standard ISO and then the update to 6.0U1b. Then I'll use the VMXNET3 as well and plan my network connections out better.

And I have been able to backup the ESXi host configuration file, it was very easy. Now I need to figure out a way to automate this, looking at a cron job maybe but saving the data to a specific location will be the difficult part as it doesn't appear with the Free version, that I can specify a destination. Eh, more to look up.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
I don't know how you are backing up the ESXi configuration file, but one method is to use the vSphere PowerCLI on your Windows workstation. It uses Powershell under the hood.

I've been using it for several years. I also use it to apply patches to the free version of ESXi.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
What I don't understand is the way the VMXNET3 network interface is meant to work. I'm a bit lost when I read about it because I think it's for an internal network interface within the ESXi host, not for external NIC interfaces. I'd like to understand this better. I too found that link you provided above and read though it. Maybe I'm ignorant but I'm not grasping VMXNET3. If VMXNET3 is just an internal network, then how do I connect to the outside world. I'm sure it works but I don't see it based on what I've read. Maybe more research is required. I can see how the faster interface would help out local VMs accessing data faster.

You may not want to use the vmxnet3 driver; the benefits over the E1000 are not that great and sometimes there are strange issues with vmxnet3. I guess it is better these days.

In both the case of the vmxnet3 and the E1000, you are dealing with emulated hardware as @Mirfster points out. You are talking to a virtual network switch that's built into ESXi (possibly one of several virtual switches). Normally a VM has no idea what physical port might be involved in communications - or even if there IS a physical port!

So let's say I have a virtual E1000
network.GIF


on that machine named "freebsd-81r-amd64-lab1". It thinks it is a local untagged 1Gbps ethernet on an E1000. In fact, the ESXi vSwitch will put it on vlan 803, and it uplinks out of the host to one of our two core 10G/40G switches.

Now, if there was another machine right next door to it on the same host that it was talking to, it might well get several Gbps (I've seen 4-5 pretty easily) out of that "1Gbps" E1000 interface. There's nothing in the hypervisor that deliberately limits the speed to 1Gbps. It will also happily exceed 1Gbps out those 10Gbps ethernet uplinks, and if the switch on vmnic5 were to crash while it was pumping out data, the switch on vmnic3 would take over very rapidly and there would be barely a blip in network throughput. The vmxnet3 and E1000 interfaces are just there because there has to be some sort of mechanism to get data into and out of a VM.

So you may also notice that that's "vSwitch3"; it is pretty normal for an ESXi box to have multiple vSwitches and multiple network interfaces in a more complex environment.

A vSwitch that has no physical adapters associated with it can only communicate with other VM's on the local host. This is also useful in some scenarios. For example, if you were creating a firewall environment, you might have a three-legged pfSense box that had one interface connected to vSwitch0, which has a physical interface on it that attaches to your cable modem, and then an interface that connects to vSwitch1 which is a place where you can attach VM's in a DMZ, and then vSwitch2 which connects to the other physical interface. You can then attach VM's you want only visible internally to vSwitch2, and VM's doing Internet services (OwnCloud, etc) on the vSwitch1 DMZ net.

So you really need to imagine that your virtualization host actually represents another ethernet switch (or several) and that your VM's attach to those.

But the vSwitches won't actually do switching between the physical interfaces, so it isn't possible to go get a quad port GbE card and stick it in your ESXi and attach all the physical ports to a single vSwitch to get rid of a physical ethernet switch. :-/

Now that you've hopefully got a better idea of how that works, I'll also mention that you can do PCI passthru of a physical network interface in many cases. This obviously avoids the whole vSwitch mechanism and has other pros and cons.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I don't know how you are backing up the ESXi configuration file, but one method is to use the vSphere PowerCLI on your Windows workstation. It uses Powershell under the hood.

I've been using it for several years. I also use it to apply patches to the free version of ESXi.
I'll look into that. Right now I have used the vim-cmd to make a backup of the ESXi host configuration file. It was pretty easy actually.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
@jgreco I appreciate all the time you took to write that up and it does help quite a bit and explains a lot. I don't mind using the E1000 interface, it works for me right now without issue so you have me thinking that it's fine to leave it. I will be starting all over and well documenting everything I do and then I'll post it so I can obtain feedback on what might be an issue or concern with respect to stability. But the first thing I will do is verify I can restore my host config file. Taking someones word that it "should" work is not the same as doing it yourself to ensure it does work and I know how to do it. Nothing will happen anytime soon since I'm about to head out on vacation so I'm not going to mess with the system until I return, however I will try to plan everything out just to make it all go smoothly.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Feel free to use whatever interface works, of course. The experience here has involved ESXi 4.0, 4.1, 5.5, and 6.0, and early on we discovered that the vmxnet stuff had some odd issues, but then again we do capital-C Complex networking here. Whatever you pick is likely to be fine.

As for recovering the ESXi host config file, there's relatively little value in that unless you've done a lot of customization. The more important bits are actually the virtual machine files themselves (.vmx) which are typically stored with the VM. These contain the critical bits that describe the virtual machine.

It is kind of like FreeNAS, in that a typical lightweight install of FreeNAS can quickly be rebuilt by an import of the pool followed by some minor configuration work. Obviously if you've got a much more complex FreeNAS configuration, that rapidly becomes onerous, and the same is true of ESXi. You may consider this an argument to avoid overcomplicating your ESXi configuration. :smile:
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Thankfully I don't mind taking my time and learning about this stuff. I think the final thing to configure is the UPS which means I need to drag that thing out of the basement and get it to work properly ensuring ESXi shuts things down correctly and then hopefully when power is restored, maybe the system powers back up? I'm not sure about the last one, I think that will still be a manual operation to power on the motherboard once the UPS knows power is good again. I'm sure there is a solution for this, I might just need Google's help.
Assuming the MB allows it (and they all do nowadays) the main thing is selecting a UPS with a configurable shutdown delay, that definitely still shuts down when line power returns before it shuts down, and with a configurable switch on delay when power is restored. The UPS manufacturers seem to have got their restrictive practices act together, and I think these features are only available in top of range models nowadays. Then make sure NUT can configure these characteristics. It definitely works with some 10+ year old APC SmartUPSs, but it seems that mostly these features aren't even documented in sales literature nowadays. But you need all that to safely allow the machine to come back on automatically. Maybe someone has actually checked some recent UPSs.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Yea, I think it's a safe bet my UPS will not shut itself down but that is okay, it will shut down when the battery gets too low. As for if it will power back on on it;s own, I'm almost certain it will not but again that is okay, have finger, will travel.

As for the NIC stuff, I have some testing to do to see what I like and to see if the vmxnet3 is a reliable and maybe the desired method. But to be honest, I can play with the vmxnet3 at anytime, I don't need to do that today.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Yea, I think it's a safe bet my UPS will not shut itself down but that is okay, it will shut down when the battery gets too low. As for if it will power back on on it;s own, I'm almost certain it will not but again that is okay, have finger, will travel.

As for the NIC stuff, I have some testing to do to see what I like and to see if the vmxnet3 is a reliable and maybe the desired method. But to be honest, I can play with the vmxnet3 at anytime, I don't need to do that today.
Doesn't ESXi support serial UPSes?
 

ChriZ

Patron
Joined
Mar 9, 2015
Messages
271
It is really strange to me that most UPSs will not turn on after power is restored.
I have a cheap one connected to one of my PCs and when power is restored it does turn on again, even if it previously has shut itself down due to low battery.
That cheap UPS is connected with a serial cable. Is this a factor for this?
 
Status
Not open for further replies.
Top