←back to thread

QEMU 10.1.0

(wiki.qemu.org)
302 points dmitrijbelikov | 5 comments | | HN request time: 0.199s | source
1. simonebrunozzi ◴[] No.45043703[source]
Curious: how do people use Qemu the most these days? Dev environment? Running specific apps on a different OS? I don't know... gaming?
replies(3): >>45043949 #>>45046971 #>>45047272 #
2. alexrp ◴[] No.45043949[source]
For Zig we use QEMU to run our module test suites on a broad range of targets that we don't necessarily have real hardware for: https://github.com/ziglang/zig/blob/50edad37ba745502174e49af...
3. nativeit ◴[] No.45046971[source]
Mine is a rather prosaic example, but I'm sure it's not uncommon: Proxmox on leased bare metal servers make for wonderful (small scale, but impressively equipped at ~$100/mo) cheap dev hosting.

If you find yourself limited by the equivalent VPS expense, I discovered that for my use-case (mixed web hosting, dev services, self-hosting) I could squeeze a lot more out of an entry level bare-metal box with ~48GB of RAM, and everything just becomes a VM in Proxmox, and it's still trivially simple to scale/replicate, maintain backups, and tie together with other VPS or cloud services.

The only part that was a bit of a challenge is negotiating NAT for the virtual NICs so you don't need separate IPv4 addresses for each guest. But Proxmox's docs are pretty robust, and I'm sure there are dozens of tuts available now.

4. mdaniel ◴[] No.45047272[source]
I'd suspect a great deal of people are secretly benefiting from qemu when they do $(docker build --platform linux/{arm64,amd64}) courtesy of binfmt_misc and a static copy of qemu

- https://github.com/moby/buildkit/blob/v0.23.2/docs/multi-pla...

- https://github.com/moby/buildkit/blob/v0.23.2/Dockerfile#L16...

- https://github.com/tonistiigi/binfmt/blob/buildkit/v9.2.2-54...

- https://github.com/tonistiigi/binfmt/blob/buildkit/v9.2.2-54... and https://github.com/tonistiigi/binfmt/blob/buildkit/v9.2.2-54...

and let me tell you from first-hand experience, that trying to swap in an updated version of the bundled qemu binary when the static version panics on some mis-emulated instruction is some whooooooo, boy

replies(1): >>45047308 #
5. mdaniel ◴[] No.45047308[source]
Then again, everything in buildkit is designed for maximum opacity, in my experience so I guess it tracks