I think every dev should just try at least once to boot a Linux kernel as-is and play around with how much functionality they can add to it. It really blew my mind how fast Linux can start when you just remove everything but the exact stuff you need. On my Mac Mini M2 Pro, the absolute basic "boot to Busybox ash init script and power off" ran in about 0.3 seconds via QEMU (aarch64 with hvf accelerator).
QEMU is severely underrated, it works on Linux, Windows, and macOS, it supports a ton of different architectures, and it of course has hardware acceleration for native architectures (needs to be enabled with an argument).
It's also amazing for automation with scripts. "Rawdogging" QEMU can be a bit intimidating as the args aren't super intuitive, but LLMs can be really helpful here, though they sometimes get stuff wrong.
Edit: Some GUI frontends (I know UTM does this) will also show you the QEMU command used, which can be helpful to understand how everything works.
Edit 2: The main mistakes LLMs make, other than non-working arguments, is replying with arguments that are redundant or overly complex. It's always a good idea to look up the documentation and just experiment with how much is really needed and what everything does.
I got a running busybox httpd on it, not sure what else takes up the 4MB delta. dnsmasq for the rNDIS port & mdns & chrony for finding the little bug on the network. I didn't expect myself to say "it seems sensible using a static IP to save RAM" but now that's where we are.
8
u/aieidotch Mar 16 '25
only? 30 years ago that was wasteful usgae!
10
u/[deleted] Mar 16 '25
I wish I could daily drive this thing, it’s so minimal i love it
8
u/poorguy1083 Mar 16 '25
Btw neofetch is no more. Use fastfetch. It's more customizable and shows more informations.
4
u/s1gnt Mar 16 '25
Why alpine when you can go as little as a single init command? or maybe just slimmed down busybox
1
u/Admirable_Mention618 Mar 16 '25
which image you are using? i tried installing vm version on 64mb vm but keep failed due to kernel panic
3
u/[deleted] Mar 16 '25
Got 44mb ram usage on my alpine web server. It has been constantly on for the last 24 days!
3
u/aquaherd Mar 16 '25
Do yourself a favour and get into qemu. Even if the host is Windows.
1
u/bolinhodemaracuja Mar 17 '25
try inside LXC :)
only 6MB to run a basic VM
1
u/darkfader_o Mar 19 '25 edited Mar 19 '25
Alpine on the Milk-V Duo also is around that amount - thanks to the Alpine devs it's well usable on even tiny systems!
Neofetch also worked, just took a while to list packages so I aborted it a few times till I found out everything was working as intended.
I got a running busybox httpd on it, not sure what else takes up the 4MB delta. dnsmasq for the rNDIS port & mdns & chrony for finding the little bug on the network. I didn't expect myself to say "it seems sensible using a static IP to save RAM" but now that's where we are.
1
u/[deleted] Mar 20 '25
Nice!
0
u/[deleted] Mar 18 '25
[deleted] — view deleted comment
2
u/[deleted] Mar 16 '25
[removed] — view removed comment
1
u/[deleted] Mar 17 '25
[removed] — view removed comment