HNHacker News
TopNewBestAskShowJobs

binsquare

1,123 karma · joined October 1, 2019

working on smolmachines.com
submissionscomments
binsquare··on Ask HN: What are you working on? (May 2026)
I'm working on building a virtual machine that has the fast boot and portability of containers.

It's called a smol machine free and oss, https://github.com/smol-machines/smolvm

binsquare··on Introducing Stage: Engineers deserve a better code review platform
I can see this growing to replace github
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Yes, the exact use case I'm targeting.
binsquare··on KV Cache Compression 900000x Beyond TurboQuant and Per-Vector Shannon Limit
You're right, thanks for the correction
binsquare··on KV Cache Compression 900000x Beyond TurboQuant and Per-Vector Shannon Limit
Incredulous claims and unreviewed paper.

Attention really is all you need.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
pretty light weight!

About the same size as the docker image to be honest. Join the discord and I'm happy to give you a white glove experience with onboarding :)

https://discord.gg/E5r8rEWY9J

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Wsl2 runs a Linux vm so it definitely feasible and has the api's necessary.

It is on the roadmap, but frankly I haven't used Windows in a decade. I would love for a contributor to take that on as part of the free and open source spirit.

Sounds like it could be you? :)

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Smolvm is free and open source, help me build the integration with proxmox - I'm not familiar with it
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
probably, don't see why not based on cursory glance.

will look into it

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
it was a tongue in cheek response :), completely fair take
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
lxc/lxd are ~container managers, the kernel is still shared like docker containers. It runs on linux & needs to run in a linux virtual machine on macOS.

smolvm is a virtual machine with the ergonomics of containers like packaging and distributing, kernel is not shared. You'd run containers inside of smolvm.

Also, smolvm runs ontop of both kvm for linux and apple's hypervisor for macOS. So it's cross platform.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Their idea is actually more akin to cloning and a more refined implementation is used in Lambda's snapstart: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html

So directionally yes. But it relies on kvm. I focus on portability i.e. cross platform for local macOS and linux, so that is not top of mind for me right now.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
it has directory mounts - so access the same files: https://github.com/smol-machines/smolvm/blob/main/AGENTS.md?...

It also has file copy from host to inside the guest: https://github.com/smol-machines/smolvm/blob/70c97930dda5a92...

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
not enough and too much at the same time
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
uhh sort of different things.

smol machines is a virtual machine that has properties and ergonomics of containers. It's not an ai project, it's designed to run any software inside.

docker sandbox sounds like it's running ai stuff inside of a microvm.

So if you need to use a virtual machine - use smol machines.

If you need a to run coding agents, use smol machines still because agents are just software.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
unikraft's internals are not open source so I can't say.

But smol machines are not an implementation of unikernel - it's basically just the linux kernel but slimmed down. So, more compatible with most software.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
thanks, it's my hand traced over and then made pretty.
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
kata containers is a container runtime that focuses on running containers inside a vm.

smolvm is a vm with some of the properties & ergonomics of containers - it's meant as a replacement for containers.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Will build a free open source self serve orchestration to enable subsecond vm vending

But should be easy for anyone to build their own integration with existing as well like nomad.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
This does that.

I'm trying to do away the model of cpu and memory tbh.

Virtio- balloon dynamically resizes based on memory consumed.

CPU is oversubscribed by default

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Yeah it's feasible, I don't have windows to test. Can you help? :D
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
No special programming tricks were used.

Linux was built in the 90s. Hardware improved more than a 1000x. Linux virtual machine startup times stayed relatively the same.

Turns out we kept adding junk to the linux kernel + bootup operations.

So all I did was cut and remove unnecessary parts until it still worked.

This ended up also getting boot up times to under 1s. The kernel changes are the 10 commits I made, you can verify here: https://github.com/smol-machines/libkrunfw

There's probably more fat to cut to be honest.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
netBSD, I love that focus on a minimal and simple, reproducible binaries.

You'll see that philosophy in this project as well (i hope).

freeBSD focuses on features, which is great too.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
no relation, they build a sandboxing service using firecracker.

I build a virtual machine that is an alternative to firecracker and containers.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
those images are pulling from the public docker registry.
binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
i run a custom fork of libkrun, libkrunfw (linux kernel), etc etc: https://github.com/orgs/smol-machines/repositories

Got a lot of questions on how I spin up linux VM's so quickly

Explanation is pretty straight forward.

Linux was built in the 90s. Hardware improved more than a 1000x. Linux virtual machine startup times stayed relatively the same.

Turns out we kept adding junk to the linux kernel + bootup operations.

So all I did was cut and remove unnecessary parts until it still worked. This ended up also getting boot up times to under 1s.

Big part of it was systemd btw.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
For myself, I'd estimate ~50%

Not useful for things it hadn't been trained on before. But now I have the core functionality in place - it's been of great help.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
Security is a broad topic.

Here's how my perspective:

smolvm operates on the same shared responsibility model as other virtual machines.

VM provides VM-level isolation.

If the user mounts a directory with the capability of symlinks or a host OS with a path for guest software that is designed to escape - that is the responsibility of the user rather than the VM.

Security is not guaranteed by using a specific piece of software, it's a process that requires different pieces for different situations. smolvm can be a part of that process.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
sandboxing is one of the features of virtual machines.

I'm building a different virtual machine.

binsquare··on Show HN: Smol machines – subsecond coldstart, portable virtual machines
yeah, it's analogous to Electron.

Electron ships your web app bundled with a browser.

Smol machines ship your software packaged with a linux vm. No need for dependency management or compatibility issues because it is baked in.

I think this is how Codex or Claude Code should be shipped by default, to avoid any isolation issues tbh

← PreviousPage 5 of 11Next →