farcaller · @farcaller
121 followers · 1524 posts · Server hdev.im

Ha, so there's basically a in nix. I need to get my hands on that.

#tinyvmm #nixcon

Last updated 1 year ago

farcaller · @farcaller
115 followers · 1398 posts · Server hdev.im

2/3 I had a recent look at and I don't remember half of what makes it work. Is it an extremely compact and efficient VM manager? Yes. Does anyone care about it being such? Not at all. Even the concept of embedding cloud-hypervisor into the single binary failed, because it's more hassle than it's worth.

So what do I write for fun? for binaries, for exploratory coding. Go's easy to get up and running and has fast build times. Python comes with ipynb and polars.

#tinyvmm #go #python

Last updated 1 year ago

farcaller · @farcaller
96 followers · 1071 posts · Server hdev.im

@virtulis yeah, docs are non-existent at the time. Actually, I should make myself a note to author some because that thing was running pretty stable for me for a while.

#tinyvmm

Last updated 1 year ago

farcaller · @farcaller
87 followers · 768 posts · Server hdev.im

@raito I don't think it's one-size-fits-all , really. Like, I wouldn't want nix-based setup to manage my whole kubernetes cluster declaratively, works much much better for that. But I would want nix to manage argo itself because the abstractions are better.

Same for VMs. I don't want nix to manage the because running VMs is often an imperative process. I'm fine with the "state". Not everything can be declared in a pure way.

But still, nix is so good for so many things.

#argocd #tinyvmm

Last updated 1 year ago

farcaller · @farcaller
62 followers · 358 posts · Server hdev.im

Migrating Forward: farcaller.net/migrating-forwar

I was thinking about a simple way to support model migrations in and here's what I came up with.

#blog #tinyvmm

Last updated 1 year ago

farcaller · @farcaller
61 followers · 357 posts · Server hdev.im

No combination of networkctl {reload,renew,reconfigure} got me to convince its dhcp server to re-read the static assignments.

Good that I already wrote a dhcp server in rust.

smh.

#tinyvmm

Last updated 1 year ago

farcaller · @farcaller
61 followers · 335 posts · Server hdev.im

Wrote some more details on my issues with today: farcaller.net/the-woes-of-netw

#networkd #tinyvmm

Last updated 1 year ago

farcaller · @farcaller
61 followers · 332 posts · Server hdev.im

Me: trying to debug an obscure but where SOMETIMES curl http://somehost would timeout but it would mostly work ok most of the time.

Soooooooo... if you tell networkd to reload over dbus, you'll momentarily lose the network connectivity. And was doing that every 10s becasue I thought it's a cheap way to make sure the configs are up-to-date.

For fuck's sake.

#tinyvmm

Last updated 1 year ago

farcaller · @farcaller
27 followers · 109 posts · Server hdev.im

I got mostly working before the end of the year \o/

github.com/farcaller/tinyvmm is my new vm manager, replacing github.com/google/vmregistry. I got rid of libvirt, qemu, dnsmasq, and pretty much everything; tinyvmm is a single binary operation! (technically it requires cloud-hypervisor in the MVP, but that will go away).

I struggled with a *simple* VM setup over the years and I'm finally happy to have something that does the only thing and plays nice with the rest of the system.

#tinyvmm

Last updated 2 years ago

farcaller · @farcaller
26 followers · 94 posts · Server hdev.im

Eventually I settled on "reinventing the k8s's apiserver model" and reconciliation for my thing. While it's not much practical to do reconciliation and instead I *should* reply on {system,network}d doing the right thing, the last couple weeks clearly demonstrated I have to babysit those. Besides, I'd have to reconcile nftables either way, and there's still a dns server to consider.

Looking at my code circa 2017 (github.com/google/vmregistry) it's clear I did learn a couple new tricks

#tinyvmm

Last updated 2 years ago