Anyone else using Mac minis as VM hosts for self hosting? My Friendica server is a Linux VM on a Mac Mini in my living room. The VM is bound to a VLAN tagged network interface so it’s completely firew
Anyone else using Mac minis as VM hosts for self hosting? My Friendica server is a Linux VM on a Mac Mini in my living room. The VM is bound to a VLAN tagged network interface so it’s completely firewalled off from the rest of my network. Also got a second Linux VM on the same box for hosting local stuff on my main VLAN (HomeBridge/etc).
I feel like they’re really nice platforms for this, if not the cheapest. Cheaper than one might think though; I specced up an equivalent NUC and there wasn’t a lot of difference in price, and the M2 is really fast.
"I specced up an equivalent NUC and there wasn’t a lot of difference in price, and the M2 is really fast."
You must be putting a lot of stock in the CPU and 10G Ethernet. Because the pricing on storage and RAM, which are much more important resources in most self-hosting scenarios, differ an extreme amount since you can't upgrade the RAM in the M-chip Minis. They also cap out at 32 GB which isn't bad but half of what say AM4 can do. Power Efficiency is of course also great on the M-series chips which is worth something.
If we're purely talking Intel NUCs then the i7s and i9s do get expensive but so does the M2 pro. M2 is absolutely faster than i5 and i3 but I can't really imagine a use case where that would matter for self-hosting?
Other than that I agree with your post. No way you get more for your money as soon as you start going beyond the base configuration which is still 8 GB RAM /256 GB SSD in 2023/24 by the way.
Sure, it's a compact and very power efficient device and having 10 GbE built-in for a reasonable price uplift (decent PCIe 10 GbE cards aren't much cheaper) is great. But to be honest an Intel NUC or even desktop parts with low-end motherboards aren't exactly power suckers when mostly idle.
And then SSD storage and RAM pricing is like a quarter compared to what Apple charges for it, if even that. And you have the choice of going for ECC RAM on supported platforms, which is great for a file server for example.
OS compatibility is a big one as well, you can basically choose between macOS and Asahi Linux and while the latter is probably okay for self-hosting purposes, I prefer more stable and long-supported distros like Debian.
Well not really, I'm not the one working on making a native M* chip Linux (but those guys are indeed insanely crazy, they are reverse engineering Mac, writing hardware specs and even correcting bugs for Apple).
It's just another cool geek project like you could do with a pi, and ofc have bonus geek point for having an Apple silicons run Linux natively.
Plus, I will be so glad to resell my huge 18kg supermicro server.
@Skunk Nice. I’m happy with the M2 running MacOS and just spinning up Linux VMs in UTM as needed. It seems to handle them without breaking a sweat and, for self hosted stuff, having the VM bridged to a VLAN tagged interface gives me that extra reassurance without having to have the whole machine on that interface.
If the baddies compromise the Friendica server, I can just Remote Desktop into the Mac and nuke the VM. Bye bye.
Yup it's probably what I'll end up doing if I can't find my refurbished M1 (and I already own an M2 mostly used to fly long hauls flights on Xplane 12).
But I'll wait till they launch the mini M3 to see what becomes available on the second hand market, then simply VM until Asahi Linux is mature enough.
Seems slightly unnecessary unless you have loads lying around, I'm still using a 10 year old dual core i3 and it doesn't sweat running 60 services, and I can expand the storage much more than a Mac mini.
@BornDeranged Honestly, moving stuff to the cloud is trivial. Everything is in containers and I can just setup the nginx reverse proxy that’s also running on the VLAN to redirect to the cloud. Job done.
Just to add to the Asahi Linux chorus - I'm self hosting a bunch of things, not on VMs but installed on the actual OS, and it's been incredibly fast and reliable. I do have thorough offsite backups happening because one should, but loving it so far.
I've been thinking more and more about getting a Mac Mini specifically for this as well. They're silent, not too power hungry and more than powerful enough, and I would just love scripting in Swift on there 😆 (but maybe that's just me).
How long have you had it setup like this? And what's your experience been so far?