Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Man is this the case.

I have been trying to figure out how to have a single command to make a Qemu VM on an M2 Apple silicon chip for like a year without much luck.

All I want is to run something like Alpine Linux + Sway WM on Qemu while on macOS or AsahiLinux with one command on cli.

On x86-64 its fairly simple :(



Lima (1) is a project that packages Linux distros for MacOS and executes them via qemu in the backend. Maybe you could solve your problem by launching one of their vms and inspecting the command line it generates. You might find an option you were missing.

(1) https://github.com/lima-vm/lima


I'll check this out. There are many different systems out there like UTM and such, but I want the most basic / minimal amount of dependencies, which will work basically anywhere - which is just QEMU. Not UTM, or maybe parallels, sometimes Lima, for Mac and then virtualbox for windows, and QEMU Linux type of nonsense. Just QEMU should suffice everywhere, and it's much more secure that way.


I think this is basically what Colima is doing, if you’re willing to run docker containers to get it


It would be silly to install Colima for this though.

If the argument is that Colima --calls--> Lima --calls--> {a ton of different things including kubernetes and docker and ...} --calls--> a QEMU command somewhere deep in the code, then the only thing that is required here is QEMU. Not kubernetes or any other junk on top that just adds complexity and potential insecurity.

One QEMU command should be all that's required.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: