5 ms·
Everyone is talking about running a separate Linux dev environment, but I'd actually love to run a separate macOS dev environment in a clean way (i.e. without m
by Toutouxc 6y ago
Everyone is talking about running a separate Linux dev environment, but I'd actually love to run a separate macOS dev environment in a clean way (i.e. without messing with partitions for dualboot, especially on the M1).
I get my stuff from Homebrew, just Rails + MySQL, no Docker, no fancy stuff. I'd love to have a fast macOS VM to run software I don't trust like Zoom or Skype and a second one to run my work projects, so they don't spill over my personal stuff, but AFAIK the virtualization story is still pretty incomplete on the M1 (or is there a way to run an arm64 macOS VM without a gigantic performance hit?).
- kitsunesoba 6y agoIf I recall, VMWare Fusion and Parallels can run macOS VMs with little or no speed hit, under Big Sur. Big Sur added GPU virtualization support so VMs aren’t slow, previous macOS versions lacked this.
- 0x426577617265 6y agoFusion doesn’t work on M1s.
- coopreme 6y agoI’ve been looking for this for a while, not sure when or if it will get done. X86 emulation on an M1… I wonder if there will be a massive hit
- aidos 6y agoBeen dealing with this this week. It’s about a 40x performance hit to run x86 via qemu in our estimates.
- my123 6y agoQemu isn’t representative of anything else perf-wise. You may want to use user-mode emulation too.
- aidos 6y agoI don’t entirely understand your comment (actively looking for solutions for these issues so all info is good). My initial attempt at getting a running system was to install an x86 VM via qemu / utm. It worked but was about 1 /4 speed of my old MacBook. Round 2 was to an arm64 VM via qemu / utm (utm is using qemu here, but I guess it’s almost running purely on the M1?). That’s blazing fast but I don’t have everything I need compiled for it. So I’m recompiling what I can and whatever I can’t I’m then using qemu user mode within the arm VM to run the x86 binaries. The VM itself is really fast, the x86 code, obviously isn’t, but I’ve at least minimised the times I need the emulation. Not sure of a better approach, but as I say, definitely open to hearing what else I can do.
- my123 6y agoYou should try running an Arm64 OS and then using ExaGear (Linux VM) or just run your x86_64 app (Windows). Forget about full system emulation, especially with Qemu’s approach which doesn’t leverage the host MMU. Emulating an MMU alone is very costly perf-wise. That means that you should use an arm64 OS and then use an x86 compat layer on it. For Qemu’s user mode emulation, it doesn’t exactly provide good performance either. But it is still much better than full system emulation.
- aidos 6y agoIsn’t that what I’m doing? Mac OS is arm64, with an arm64 Ubuntu VM, then I’m running qemu in that for specific single x86 processes. To clarify, I’m using UTM to run the VM, so it’s using qemu - but it looks like that doesn’t give you a performance cost in itself.
- my123 6y agoYes that’s what you do, you might want to look at options other than Qemu though for more performance. (I assumed FSE from your 40x worse perf figure, which is a very bad case)
- kitsunesoba 6y agoAhh, so it’s just Parallels then. Don’t yet own an M1 Mac myself, but saw Parallels had made the jump an assumed VMWare followed.
- AzN1337c0d3r 6y agoIMO the graphics performance when running macOS Big Sur VMs under Fusion is better but still atrocious. Not anything like a native experience. Not sure about Parallels.
- Qerub 6y ago3D acceleration is not enabled by default for macOS Big Sur in VMware Fusion because it's not considered stable yet. It's possible to activate by tweaking the vmx file: https://kb.vmware.com/s/article/81657 https://kb.vmware.com/s/article/81657 In Parallels it's on by default but you need to allocate a lot of RAM to the VM: https://kb.parallels.com/en/125105#section6 https://kb.parallels.com/en/125105#section6
- alsetmusic 6y agoJust tested Parallels latest beta on M1 and it couldn’t find an OS on a Big Sur ISO that I’d just created. Doesn’t appear to support virtualizing macOS on M1 yet.
- sscotth 6y agoCorrect. Pinned tracking thread: https://forum.parallels.com/threads/big-sur-installation.351864/ https://forum.parallels.com/threads/big-sur-installation.351...
- erwincoumans 6y agoParallels only supports arm images on M1, such as Ubuntu arm and Windows arm. No MacOS arm image as client.
- erwincoumans 6y agoYes, Parallels runs great for Ubuntu arm on M1, both headless terminal and X11, since December 2020.
- balloneij 6y agoI still haven't tried it, but what if you downloaded the iOS apps on the M1? Wouldn't it be more containerized if you ran those apps from the phone "emulator"
- philistine 6y agoYou're absolutely right, but I would assume Zoom has disallowed its iOS client from being installed on macOS. Since Apple closed the loophole allowing sideloading, we're out of luck on that front.
- saagarjha 6y agoJust decrypt the app and run it.
- mixmastamyk 6y agoHomebrew is sending analytics as well, FYI.
- jamroom 6y ago“brew analytics off” from your terminal.
- upbeat_general 6y agoIt’s not smooth enough for me to consider regularly using for most work but you can setup macOS VMs from parallels/fusion inside of macOS since apple allows it on their hardware (...or a hackintosh). It’s not as easy to get working compared to a windows vm because I believe it uses the OS recovery image but it’s not that hard to setup and works well. I’ve used it in the past to test my dotfiles setup on a perfectly clean install.
- rovr138 6y agoI use a separate account when I need to split something.