From Cloud Chaos to FreeBSD Efficiency
https://it-notes.dragas.net/2024/07/04/from-cloud-chaos-to-freebsd-efficiency/
#FreeBSD #jails #bhyve #GCP #AWS #kubernetes #OwnYourData #Linux #NoteHUB
From Cloud Chaos to FreeBSD Efficiency https://it-notes.dragas.net/2024/07/04/from-cloud-chaos-to-freebsd-efficiency/ #FreeBSD #jails #bhyve #GCP #AWS #kubernetes #OwnYourData #Linux #NoteHUB 32 comments
@stefano cool thank you for your answer, I am aware about docker/podman but just briefly googled LXC. In my current job we barely use any containerization. We just use KVM capabilites. The interesting thing on #freebsd is the ability to use #ZFS instead of relying on older filesystems in the #linux ecosystem. This has big implications for #backup strategy et cetera. @samurro @stefano I could be wrong, but ZFS support is no longer a unique feature of BSD. OpenZFS is now a shared codebase and many Linux distros package it. Paired with #zfsbootmenu, it's a fantastic experience. I run zbm (root on zfs) with both a laptop and desktop. I also run a raidz pool on the desktop that replicates to an offsite pool attached to a raspberry pi. Aside from the USB enclosures I've connected to the pi, it's been very stable for years. @ahoyboyhoy @samurro yes, ZFS is working on Linux, too. @patpro Thanks. Not yet - it wasn't suppose to be more than a test - that'll be my next task 🙂 @stefano thank you for the excellent (and entertaining) write up, showing how details always matter and the "cloud hammer" approach is likely the wrong tool. @sourcerer @stefano If I had a PHP stack, I'd be really psyched about trying out https://frankenphp.dev/ -- the ability to smash your entire PHP app and server into a single binary is a great fit for these types of environments. @stefano very interesting post! We've been using FreeBSD for a couple of years now mostly for crucial services (aka too important to ever fail), and I couldn't be happier. On the other hand, looking at what k8s has given us for day to day production workloads, it is mostly the DevOps/GitOps part. Can you apply GitOps principles to the jails based approach you outlined in your blog post? @riaschissl thank you! It can surely be done - but some more manual work, depending on what you need. @stefano for some reason, every time I've tried getting Alpine vms to work on FreeBSD they fail to boot because they can't find the kernel, both with your blog post settings and with the default profile (I was using vm-bhyve at the time). Eventually I gave up and tried Debian, and it worked right away. Never managed to figure out why though. @linus I'm now using UEFI and that is quite reliable. I've had the same problem with some old Alpine Linux releases @linus this is one of my Alpine Linux's vm-bhyve config: loader="uefi" @stefano managed to get uefi boot working at least after installing 'bhyve-firmware', but for some reason after running 'setup-alpine' it looks like it keeps booting from the ISO. do I need to manually disconnect it somehow? on boot, the log lists both "bhyve devices" (img file) and "bhyve iso device" (the alpine iso) @linus yes, you need to remove the iso (just edit the vm .conf file "vm config vmname" and remove the iso ) @release_candidate Alpine Linux is perfectly fine (it's one of my favourite distributions). |
@stefano Interesting to read, I have zero knowledge about #freebsd but it was interesting to read about the tooling used in that ecosytem for the described task. I wonder what would be the difference if you would've come up with a similar solution based on #linux.