I can’t help but feel UTM pushed Apple to deliver this polished of a solution? Pulling this 100% out of thin air though.
Running GUI Linux in a virtual machine on a Mac
91–100 of 206 posts
Re: Running GUI Linux in a virtual machine on a Mac
#92Earlier 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…
What hardware and distro+kernel version are you using? I am trying to do this on a 12th gen. Intel Dell XPS, and to be honest the hardware support isn’t great. I had to install an upstream 5.19 kernel (rather than 5.15 that ships on Ubuntu 22.04). Sill, at least 2-3 times per week the machine fails to wake from sleep and has to be hard rebooted. Meanwhile my M1 Pro Mac 14” MBP routinely goes 3-4 weeks uptime, with re…
Re: Running GUI Linux in a virtual machine on a Mac
#93Re: Running GUI Linux in a virtual machine on a Mac
#94Re: Running GUI Linux in a virtual machine on a Mac
#95previously: https://news.ycombinator.com/item?id=28430196
Re: Running GUI Linux in a virtual machine on a Mac
#96Earlier quoted context omitted.
> But both VMWare and Parallels for example have made ARM on ARM virtualisation releases of their existing x86 on x86 products. Right, but the VMs themselves are not cross platform. ARM Linux won't work in Intel VMWare, and x86 Linux won't work in ARM VMWare. I am sure you knew, or course, but as you pointed out there is confusion below about VirtualBox working on Apple Silicon.
> ARM Linux won't work in Intel VMWare Newsflash: program for one processor's instruction set won't work on another processor.
As you well know, with Rosetta and other technologies (heck, also Wine) that's just not true. With Rosetta you can take any (or most) Mac programs compiled for x86 and just run them on M1 ARM. Support gets even deeper, as with the Rosetta update you will be able to even run x86 binaries inside a hosted ARM virtual machine (!).
So it makes sense for people to be confused as to what's actually supported, and to add the clarification when this is not the case, because some might also expect this could be the case with say Virtualbox.
Re: Running GUI Linux in a virtual machine on a Mac
#97Re: Running GUI Linux in a virtual machine on a Mac
#98Earlier quoted context omitted.
> ARM Linux won't work in Intel VMWare Newsflash: program for one processor's instruction set won't work on another processor.
If only it was that clear cut. As you well know, with Rosetta and other technologies (heck, also Wine) that's just not true. With Rosetta you can take any (or most) Mac programs compiled for x86 and just run them on M1 ARM. Support gets even deeper, as with the Rosetta update you will be able to even run x86 binaries inside a hosted ARM virtual machine (!). So it makes sense for people to be confused as to what's act…
Rosetta takes an instruction stream from another processor and translates it to an instruction stream for another processor - that's exactly what I mean - it needs translation.
Re: Running GUI Linux in a virtual machine on a Mac
#99I can’t help but feel UTM pushed Apple to deliver this polished of a solution? Pulling this 100% out of thin air though.
With Apple, it is all about exerting control and crippling softwares that don't align with their goals. Don't be surprised if Apple suddenly forces developers to only use their virtualisation API on macOS, just like they did for application firewalls (that are no longer allowed to have their own custom kernel extensions for "security" and "stability"). They are slowly squeezing macOS to make it more and more like ios…
Why the "scare quotes"? Sounds totally justifiable. Third party kernel extensions have always have had issues with both security and stability.
Re: Running GUI Linux in a virtual machine on a Mac
#100Does 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.
Huh? It's actually faster than ever, and near native experience.
And the post is not about "how to run" a virtual machine as an end user or dev (for that the way the parent describes is still the suggested way).
It's about how to program running it under the hood if you're a developer who wants to develop something like a program that manages virtual machines or that hosts and runs one.