I know most people on this forum use KVM/VFIO for GPU passthrough, but I thought I’d give this a shot:
if tl;dr,
then skip;
I’m thinking of migrating my homelab from a handful of Sandy and Ivy Bridge E3s and Core i5/i7s to a single Ryzen ESXi Windows desktop (GPU passthrough) / FreeBSD file server (since Ryzen supports ECC) and a trio of old Thinkpads T520s to save power but still maintain high availability.
I’m not willing to ditch ESXi for KVM because I’ve tested them side-by-side for months and made my decision - I want the single-pane-of-glass management and high-availability capabilities of vSphere for which in KVM there is no parallel (plus, ESXi smokes KVM in terms of resource management - #FlameWar#BringItOn ).
I know I could go with Epyc, but I’m more attracted to the Ryzen 1) because I’m cheap and 2) because its single-theaded speed is considerably faster than any Epyc processor I could conceivably afford.
Right now my machines idle around 100w each so I’m consuming up to 400w power just having them sit on, add another 200w or so when they’re being utilized - I noticed max power draw at the wall for a x399 w/ 1950x according to Anandtech.com was under 320w and idles around 95w, so that’d be a real power savings.
end skip;
Anyway, I guess the question I’m wanting to ask is:
Do you use Ryzen + x399 for your ESXi homelab? Which motherboard? Which version of ESXi?
Do you use GPU passthrough (for a desktop type system)? Specifically, which GPUs have you tried, what did you have to do to get it to work?
What problems can I foresee running into if I go this route?
Any help would be much appreciated. Thanks!
Edit: I stand corrected: https://www.ubuntu.com/openstack — I guess this is like vSphere for KVM? Maybe I will check it out after allllll…
Disclaimer: I don’t run GPU pass-through yet, don’t run ESXi on Ryzen yet, but admin ESXi/vSphere at work and have been looking into the GPU pass-through thing under KVM for my shiny new Ryzen 2700x…
The first problem i can see is that i doubt what you’re planning to do has been done much before, and documentation/support will be sparse. If you’re on nvidia, getting around Nvidia’s anti-VM stuff in the driver may be trickier with ESXi than with KVM - i think you need to configure KVM to lie to the VM guest about being a VM for the driver to install, and may not be able to do that with ESXi.
I would suggest the most supported/easier route would be to run Windows as host OS (ugh, i know), just add more RAM to it and virtualize ESXi inside of workstation (this is a VMware supported thing) if required for lab purposes (guessing you’re wanting to mess with vmotion, etc.). Doing it that way means you can snapshot your whole ESXi lab inside of workstation… if that’s a thing you want to do.
Bear in mind that your power savings of say 100w only end up being 2.4kw/h per day, or likely around 24-48 cents per day depending on what you pay for power. So if power saving for running cost is a thing… it will take quite some time to pay that hardware off.
Be aware that ESXi licenses with all the fruit aren’t cheap, and if you’re running an eval license its every 60 (or 120? i forget) days you will need to do a rebuild every time the license expires, which gets annoying.
Also be aware that if you’re planning to vmotion off the new ryzen/threadripper based host to an intel box it won’t work. Base arch needs to be the same/similar for ESXi vmotion to work.
I already have the homelab, I’m looking into migrating:
I know it’s not easy. I’ve made some (cheap) purchases for the idea already: I’ve tried both ESXi 6.5U1 and KVM+VFIO on an i7-2600 on a Supermicro C7Q67 with both a GT 740 and an AMD S9000 (which is made for virtualization) and both OpenSUSE and Ubuntu 16.04 LTS, but the platform lacks ACS and I think that is the main problem.
Ryzen or LGA 2011-v3 or newer Intel seem like better candidates for GPU passthrough, but there’s still pitfalls to fall into - I am fairly confident it would be much easier than what I’ve already attempted
Your point about the power savings is well taken. It’s definitely a low cost/benefit return (investment?) but I pay my girlfriend rent and she takes care of the power bill, so she’s been griping about how the bill has gone up since I put the homelab together.
I tried using Hyper-V on Win 2016 with RemoteFX but it had major performance issues for my TV watching software. I even bought a (now useless) RDP license (grumble) for it (anyone wanna buy a 50-device license?). I think Hyper-V is little more than an afterthought for Microsoft, they include it because they can, not because they’re passionate about it, supporting it with massive resources, or building out their business model around it (I’ve been in MS management meetings before, they’re more focused on Azure and Office365 since they’re their primary revenue drivers).
Why don’t you want to use ESXi? You already know it from work, might be easier. Are there any specific reasons you’d rather go with KVM? Base ESXi (not vCenter/vSphere) is 100% free (you probably know that).
Here’s the only thread I’ve found where someone has done it (and it was on X399 boards):
Wanna try it and let me know how it goes on your AM4 board? Is it the new X470? Those are very attractive.
My main reasons for not using ESXi for this would be that it is very much not what VMware have aimed the product at. Finding someone else who has done this successfully at all will be tricky, let alone with your specific hardware.
You’ll also get no support for the free/eval version of ESXi and the paid licenses for it are very expensive.
Yeah, i’m aware the single instance is free, but really unless you’re going for vCenter i really don’t see the ESXi management web ui as superior to what you’d get with KVM really. And the 6.5 web UI at least has various UI bugs that can bite you in the ass in a big way. I edited a VM for example (just one example, but the severe type of bug) and it silently changed my VM’s virtual network segment on me - noticed because the server went off-line… really, if the single pane of glass thing is the selling point for ESXi (without vCenter), imho you’re better off with KVM.
You say you want the HA features of ESXi, but you won’t get that without a vCenter license HA/vmotion/etc. is a paid feature that you need to connect your boxes to a vCenter to use) and multiple boxes?
Also, looking-glass won’t work with ESXi, and i’d personally really prefer to use a single monitor and get the accelerated windows VM from a Linux desktop personally.
Yeah, i’m on x470 myself (Taichi non ultimate) but really not interested in giving ESXi a shot (sorry), i built this box to do looking glass under KVM and really should get that sorted out first (currently just running windows until i’m happy everything i stable there, before i go down the IOMMU rabbit warren under linux - literally built it 5 days ago and am sorting memory timings, etc.).
I really did consider threadripper for the longest time, but the kicker was my old PC died, i wanted to buy last weekend, and Threadripper 1900Xs were out of stock locally. I didn’t want to pony up the cash for more than 8 cores. The extra memory slots were the big selling point for me (also, i’m dual vega 64 on an 850 watt psu. its fine normally but i’d probably want a bigger PSU on X399 too).
I used to run KVM on one of them as a kind of comparison and side-by-side the ESXi host could run several more VMs without any noticable performance issues, KVM host started to choke out after 4 Windows VMs (both C206 boards with E3-1230v2 and 32GB ram).
I am sure part of it is just all the variables - choices for host file systems (was using ZFS), choices for vHD images (some qcow2s, mostly RAWs), the host OS (was OpenSUSE Tumbleweed), so, so many tunables, different packages being updated here and there instead of all together. I think ESXi has much better continuity / cohesion for its single stated purpose.
That’s not to say I didn’t like it. I will probably try it again with OpenStack for management to see what the ‘single pane’ looks like on the other side (although, it will probably just be in a VM…)
Cool, well good luck with that! Hope it works out well for you.
Ahh… ZFS could have had a big performance impact on your disk IO unless you tuned it for VM storage. Would have also wanted to chew a heap of your memory for itself.
If you do try KVM on linux again, i’d suggest maybe not using ZFS for the VM storage, for a more like for like comparison. VMFS doesn’t really do any of the stuff ZFS does, so you’re kinda kneecapping the linux option a bit by using it (at least for performance comparison).
If we weren’t talking display adapter pass-through, i’d gravitate towards ESXi as well personally. But that’s a core concern, so…
I can confirm that this works. I had a Geforce running for several months on ESXi 6.5 with that parameter in my .vmx file before I migrated to a Ryzen.
I would not recommend a Radeon for GPU passthrough. Though AMD does not put artificial limitations on its drivers, the Radeon reset bug bit me hard. This causes a situation where your VM is only stable the first time you boot it up. A subsequent soft boot may not work, and if it does your VM may be unstable. You then have to reboot the whole host. An AMD card will work fine as your host GPU and configuration may be simpler with different GPU vendors, especially on KVM.
I made the mistake of buying a pre-built Dell Ryzen desktop. The IOMMU groups and the Radeon RX 580 that the system came with were hardly ideal for GPU passthrough. ESXi 6.5 and 6.7 were both unstable and while GPU passthrough was possible, the USB controllers were dumped in with a bunch of other devices into a single IOMMU group. KVM bypasses this by allowing you to pass through individual USB devices (incl. mice and keyboards) instead of the whole controller.
I’m using either my S9000 (not radeon) or a GT 740 - or both. Leaning toward the Nvidia since it uses like 25w and has 3 outputs. Thanks for the tip BTW I will avoid Radeon if I buy something new (hope I don’t have to).
That’s a bummer even 6.7 was unstable. Are there any of the old fixes for it while it still PSOD’ed you could try? What about updating the BIOS, is there a newer AEGES revision out you could try? I think those have an effect on IOMMU groups sometimes.
It didn’t pink screen. It just became unresponsive, both the passthru VM and the web gui. UEFI is up to date. Dell doesn’t have much interest in making this system Linux/ESXi compatible; it’s a gaming system designed to run Windows. I’ve seen them say on their community forums effectively, sorry we don’t care if Linux works on this box or not; it’s not designed for that use case.