Live data from Hacker News

Running GUI Linux in a virtual machine on a Mac

developer.apple.com

61–70 of 206 posts

Re: Running GUI Linux in a virtual machine on a Mac

#61
post #57
post #49

Earlier quoted context omitted.

You can do this in UTM, it's a GUI that wraps QEMU.

Has anyone seen a guide to installing OpenBSD on M1 Mac using UTM?

No, but given that UTM is a graphical wrapper around QEMU would this be a worthy substitute? https://codeofconnor.com/running-an-arm64-openbsd-virtual-ma...

Re: Running GUI Linux in a virtual machine on a Mac

#62

Earlier quoted context omitted.

Our solution was to run Linux native on all dev machines. Docker really is a Linux tool and it works much better under Linux. We were running JetBrains IDEs and doing mostly Go, Python and JS development, so the switch was pretty easy and painless. The switch also dramatically reduced developer time spent solving Mac/Linux incompatibilities in tooling, and let us focus more on our product. Overall we accelerated deve…

I swear I'm not trying to be facetious, not trying to stir the same old tired "hurrr year of the linux desktop" shit... I have to ask: you accelerate development by 1 day/week, but do your devs lose any time with the accumulation of tiny annoyance such as sorting out bluetooth/audio/hibernation/battery drain?

The things you mentioned can be problematic, unless you buy hardware specifically designed for Linux - then they should work flawlessly (they do for me).

Re: Running GUI Linux in a virtual machine on a Mac

#63

The fact that Apple is working on virtualisation shows that there is a user demand for running alternative OSes on a Mac desktop. And yet, instead of opening up their hardware just a bit (by making available some hardware literature on their ARM SoC) to system developers, they'd rather offer a more convoluted way of running other OSes only on their terms and control. It's all about having control over your personal d…

Apple isn’t “starting to work on virtualization”; it’s been around for several years.

You can also run FreeBSD: https://dan.langille.org/2018/10/02/running-freebsd-on-osx-u...

Re: Running GUI Linux in a virtual machine on a Mac

#64

Does this have to be this complex? Can't I just fire up a VirualBox as I do on Linux and Windows and go ahead?

You can, but running Linux with a graphical desktop on VirtualBox under MacOS has become extremely sluggish in my experience. I don't know whether newer releases of MacOS or VirtualBox itself are to blame. It was much snappier 8 years ago even though I had a significantly slower laptop then.

Re: Running GUI Linux in a virtual machine on a Mac

#65
post #49
post #42

Earlier quoted context omitted.

Maybe I'm missing something, what are the actual commands for running a Linux x64 binary on macOS ARM?

You can do this in UTM, it's a GUI that wraps QEMU.

UTM can use both native Apple Virtualisation and QEMU virtualisaion+emulation. The QEMU one can't make use of the M1/M2 Intel memory translation acceleration the same way native virtualisation can, but it can make use of acceleration on ARM64 workloads.

Re: Running GUI Linux in a virtual machine on a Mac

#67
post #13

So we can finally have docker for Mac that doesn't run egregiously slow?

Our solution was to run Linux native on all dev machines. Docker really is a Linux tool and it works much better under Linux. We were running JetBrains IDEs and doing mostly Go, Python and JS development, so the switch was pretty easy and painless. The switch also dramatically reduced developer time spent solving Mac/Linux incompatibilities in tooling, and let us focus more on our product. Overall we accelerated deve…

> there really are quite a few differences between the GNU userspace and MacOS.

This is why GNU/XNU OS distros should be a thing. I think this would satisfy most that want a fully functional "Linux" on Apple Silicon, being in its entirety OSS plus the ability to gain a fully compliant UNIX specification in stride, at least in practice if not actually registered.

Re: Running GUI Linux in a virtual machine on a Mac

#68

Earlier quoted context omitted.

Our solution was to run Linux native on all dev machines. Docker really is a Linux tool and it works much better under Linux. We were running JetBrains IDEs and doing mostly Go, Python and JS development, so the switch was pretty easy and painless. The switch also dramatically reduced developer time spent solving Mac/Linux incompatibilities in tooling, and let us focus more on our product. Overall we accelerated deve…

I swear I'm not trying to be facetious, not trying to stir the same old tired "hurrr year of the linux desktop" shit... I have to ask: you accelerate development by 1 day/week, but do your devs lose any time with the accumulation of tiny annoyance such as sorting out bluetooth/audio/hibernation/battery drain?

Plenty of tiny (and big) annoyances on any platform. For me personally Linux has by far the least.

Re: Running GUI Linux in a virtual machine on a Mac

#69
post #47
post #17

Earlier quoted context omitted.

The only problem: becoming root doesn't mean you now control the device (you paid for).

I feel like I pretty much have full control over my Mac laptop. Why would you expect to fully control a machine from inside a VM anyway? Sounds like a massive security risk too.

> I feel like I pretty much have full control over my Mac laptop.

https://news.ycombinator.com/item?id=25074959

Post reply on HN