Skip to content

Comment on Show HN: Lume – OS lightweight CLI for MacOS and Linux VMs on Apple Silicon

Comments

Can you use to launch an Intel VM on Apple Silicone and visa versa? I’m interested in doing this so I can compile C++ applications for different architectures on MacOS. Do you know of any other “easy” methods?

I don't believe the built in virtualization framework supports emulation, but you can do this with QEMU. An easy way to get started is with UTM:

https://mac.getutm.app

I tried UTM - didn't like it, inconsistent, shows a black screen and you don't know what's going on. Use qemu instead.

You can do this without virtualization/emulation, pass ‘-arch x86_64’ or ‘-arch arm64’ to clang. Or both, for a universal binary. And on Apple Silicon, you can test them both thanks to Rosetta.

It should be possible. I did this in the early 90's... I had a windows vm running on a powerpc Mac, writing x86 assembly for college class.

I sometimes use Docker for this, assuming you are talking about running Linux on x86-64.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.