Settings

Theme

Create macOS or Linux virtual machines

developer.apple.com

144 points by hugolundin 4 years ago · 51 comments

Reader

dang 4 years ago

Ongoing related thread:

Running Intel Binaries in Linux VMs with Rosetta - https://news.ycombinator.com/item?id=31644990 - June 2022 (25 comments)

tomComb 4 years ago

I was very excited, very briefly, by the title of this post.

Now very disappointed.

  • dang 4 years ago

    Changed now. (Submitted title was "Run full Linux distributions on Apple Silicon")

  • SmellTheGlove 4 years ago

    Same, but I re-read the text:

    Learn how you can use the Virtualization framework to quickly create virtual machines on your Mac. We'll show you how to create a virtual Mac and quickly test changes to your app in an isolated environment. We'll also explore how you can install and run full Linux distributions on Apple silicon, and share how you can take advantage of Rosetta 2 to run x86-64 Linux binaries.

    (emphasis mine) the way that bit reads suggests installing on bare metal too.

    • blumomo 4 years ago

      > We'll also explore how you can install and run full Linux distributions on Apple silicon

      … in a VM on macOS as the host system.

  • paraboul 4 years ago

    Well, Asahi Linux is a thing

    • buran77 4 years ago

      The title and the Apple domain made it look for a second like an officially supported solution to run Linux directly on Apple silicon. This would have been so much more than Asahi Linux.

      The title should have been "Create macOS or Linux virtual machines" but I guess OP chose something that sounds more attractive and "votable".

      • CodeBeater 4 years ago

        Well, not to bash the OP, but a "votable" title does distracts us from a conversation about the actual changes to Mac OS.

        • hugolundinOP 4 years ago

          I might have misinterpreted the session description, but “We’ll also explore how you can install and run full Linux distributions on Apple Silicon” is the sentence that made me post this in the first place.

          Edit: Also, while I agree that the title sounds click baity, it is a quote from the description, that I wanted to highlight. Using the session title wouldn’t have done that. Guess we’ll see, when the session drops tomorrow.

  • olalonde 4 years ago

    Opposite reaction here.

  • lamontcg 4 years ago

    I'm still reasonably excited by the new title of this post.

    Virtualization support is one of the things I've still been missing on the M1.

    • selcuka 4 years ago

      VMware Fusion M1 Tech Preview has been available since last September. Give it a try.

      • karmelapple 4 years ago

        I've desperately been trying to get an account with VMware, and I simply cannot. Every account I've tried making doesn't let me login.

        Is there some trick to letting me give them money?

rvz 4 years ago

Before we get too excited by the title of the article which looks too good to offer what you may think it offers, in reality it is still virtualization with in macOS allowing Linux to be run as a guest and not a full installation.

jasoneckert 4 years ago

Wait... can't we already do this using UTM?!?

gigatexal 4 years ago

"We'll also explore how you can install and run full Linux distributions on Apple silicon, and share how you can take advantage of Rosetta 2 to run x86-64 Linux binaries." That sounds like running Linux on bare metal...

  • kube-system 4 years ago

    Or it is just going to be a video demonstrating this:

    https://developer.apple.com/documentation/virtualization/run...

  • adrianmonk 4 years ago

    It's annoyingly ambiguous. The "on Apple silicon" and "full Linux" strongly suggest it's bare metal. (Why say it that way if it's not?)

    But the title is "Create macOS or Linux virtual machines", which strongly suggests it's not bare metal.

    But sometimes people write titles that only hit the biggest highlights, and the title may not mention everything that's in the video, so it's not impossible that it's Mac VMs, Linux VMs, and Linux bare metal.

    • gigatexal 4 years ago

      Yeah the vagueness is annoying. They let us run windows via boot camp why not let us run Linux on bare metal? A man can dream. But kudos to the asahi Linux folks — they’re doing amazing work.

seemaze 4 years ago

I'd love a supported and streamlined option to provision native macOS VM's. Currently other solutions leave much to be desired.

  • mort96 4 years ago

    UTM doesn't leave that much to be desired does it? I mean something first-party would be nice, but it's not like we're in a terrible state as it is...

saagarjha 4 years ago

For those wondering what's new, you can now attach a GUI now even if you use the Virtualization framework. Previously you'd have to use the lower-level Hypervisor framework and provide your own framebuffer device.

  • ngcc_hk 4 years ago

    Somebody has to write a longer and in-depth essay on the basics for us non-system programmer to know what is going on and what is expected. Wsl1 and wsl2 is under stable, like mvs is. Guess Microsoft and IBM are in the same family tree in this aspects.

    Apple always confuse me. What is this, anyone please.

karmelapple 4 years ago

I'm still keeping my Intel Mac around to run Vagrant nicely with VirtualBox.

Will this let me spin up VMs with VirtualBox again on my M1? If so, oh my gosh sign me up right now.

jldugger 4 years ago

I was expecting something more than full machine emulation I guess. But there's no way apple would publish instruction on replacing macOS with Linux.

  • homarp 4 years ago

    there is https://asahilinux.org/ for that...

    • jldugger 4 years ago

      Agreed, which is why I found the link to apple.com surprising.

      • ngcc_hk 4 years ago

        So do I. I read it totally convinced another ash… linux and then I read the link, it is from apple. Wow.

  • dsl 4 years ago

    > But there's no way apple would publish instruction on replacing macOS with Linux

    They support "replacing" macOS with Windows 10. I haven't personally tested it, but I hear Windows 10 ARM even runs on the M1.

    • terramex 4 years ago

      Windows 10/11 ARM currently only work in virtual machines, Apple does not provide ARM drivers for Windows like they did for Intel editions.

      • Twisell 4 years ago

        To be fair there is no publicly commercialized version of Windows ARM. They only licence OEM.

        So even if Apple wanted to provide ARM driver they probably couldn't for legal reasons. So why should they bother and who can blame them?

    • ramesh31 4 years ago

      >Windows 10 ARM

      RIP, we hardly knew ye.

1024core 4 years ago

What about Windows? Can I run Windows x86 in a VM on M2?

  • ramesh31 4 years ago

    Parallels currently supports it, but for whatever reason it's Windows 11 only.

    • lwkl 4 years ago

      It's because Windows 10 for ARM doesn't boot on Apple Silicon.

  • lynguist 4 years ago

    I tried Windows 10 and Windows 11 on a Mac M1 with UTM and Windows 11 with Parallels.

    I found that Windows 11 ran much better than Windows 10 (it gets stuck) on UTM and I found that Parallels ran much better than UTM.

    So, I’d say yes.

gumby 4 years ago

Dang, title should be “Create macOS or Linux virtual machines”

usrn 4 years ago

This is extremely basic stuff that I would expect any half decent computer to be able to do. I'd be more surprised if it were impossible but I guess this is Apple we're talking about.

  • tempay 4 years ago

    Getting access to Rosetta for VMs could be a big win as I don’t think it was available previously so you were stuck with much slower QEMU based x86_64 emulation.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection