Hacker News new | past | comments | ask | show | jobs | submit login

How do you do this? I'm relatively new to mac, tried UTM and everything was stuck in QEMU modes and had terrible performance.



I've been using vftool with arm64 Ubuntu server cloudimg. Directly uses the virtualization framework, easy to work with once you get it going.

https://github.com/evansm7/vftool

my command: vftool -k vmlinuz -i initrd -d disk.img -p 4 -m 2048 -a "console=hvc0 irqaffinity=0 root=/dev/vda"


Run ARM Linux in virtualization mode. Don't emulate intel linux.


You could just use the beta of vmware fusion for apple silicon. I have only used Parallels for windows but it was such a great experience it would surely be fine for linux. Ubuntu multipass is a little finicky but it works fine as a remote deskop.


UTM is working fine for me, provided I'm using an arm distro. Chip emulation is a hard no.


I would like to know as well. UTM isn't great at the moment


Parallels. I use an Ubuntu VM via Parallels on a Mac Studio M1 Max and the performance feels native.


Parallels on M1 runs Win11 arm64 and Ubuntu arm64, those are as default installed templates, included inside VM installed AddOns. They are fast, because they do not emulate full CPU like amd64. Win11 arm64 can run amd64 software, it's CPU emulation stuff included in Win11 itself. So Win11 arm64 and run amd64 versions of MS Office, AmigaForever, etc amd64 software.


parallels cost money? or am i wrong about that?

There's no qemu equivalent on mac I don't think.


Yes, Parallels costs money, and if you run Win11 arm64, buying license for that also costs money.

UTM is Qemu.

Qemu can be compiled for macOS and Linux. I just today figured out how to compile Qemu on arm64 (actually using OrangePi that has 16 GB RAM and is arm64, similar like Linux on M1) so that it can run ReactOS. OrangePi has 8 cores (shown with "nproc"), so I used "make -j8" to make compiling use all cores, compiling faster:

Networking examples for various OS: https://wiki.qemu.org/Documentation/Networking

Slirp required to be included when compiling, to have user networking: https://bugs.launchpad.net/qemu/+bug/1917161

sudo apt -y install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build git-email libaio-dev libbluetooth-dev libcapstone-dev libbrlapi-dev libbz2-dev libcap-ng-dev libcurl4-gnutls-dev libgtk-3-dev libibverbs-dev libjpeg8-dev libncurses5-dev libnuma-dev librbd-dev librdmacm-dev libsasl2-dev libsdl2-dev libseccomp-dev libsnappy-dev libssh-dev libvde-dev libvdeplug-dev libvte-2.91-dev libxen-dev liblzo2-dev valgrind xfslibs-dev libnfs-dev libiscsi-dev meson

git clone https://gitlab.com/qemu-project/qemu.git

cd qemu

git submodule init

git submodule update

git clone https://gitlab.freedesktop.org/slirp/libslirp

cd libslirp

meson build

ninja -C build install

cd ..

mkdir build

cd build

../configure --enable-slirp

make -j8

sudo make install

sudo apt install qemu-utils

wget reactos-32bit-bootcd-nightly.7z

7z x reactos-32bit-bootcd-nightly.7z

mv reactos*.iso ReactOS.iso

qemu-img create -f qcow2 ReactOS.qcow2 20G

qemu-system-i386 -m 3G -drive if=ide,index=0,media=disk,file=ReactOS.qcow2 -drive if=ide,index=2,media=cdrom,file=ReactOS.iso -boot order=d -serial stdio -netdev user,id=n0 -device rtl8139,netdev=n0


thanks, this is extremely helpful. Any idea if there is something like virt manager for macos. So far I'm not a fan of UTM.


Native?

Are you comparing emulated x86 to native Windows ARM via dual-boot?


Windows arm64 can not boot natively on M1/M2. There is no drivers for Windows to do that. It's just about running Win11 arm64 in Parallels in macOS.

Asahi Linux has modified kernel where is M1/M2 drivers, and remaining of Asahi is from Arch Linux. Asahi is installed like new version of macOS, notification about it goes to Apple, Apple just does not know it's actually Asahi Linux install. M1/M2 hardware has possibility for Linux by design, Apple most likely had some minimal Linux running on it for test purposes. There are also other FOSS distros for M1/M2, they use partially same packages and ways to make installing dual boot OS possible.

It's also possible to install macOS and Asahi Linux to external SSD drive and boot from there. But part of boot is still at internal drive, so it's not like boot at any computer yet.


That’s where I thought we were on the M1/M2 but got really curious about your statement “the performance feels native.”

I thought you were saying that you found a way to run Windows on bare metal and were comparing bare metal vs Parallels


Currently I'm booting M1 Air 16 GB RAM version from external 2 TB Samsung T7 Shield SSD, because it has more space for Mac software.

https://www.uubyte.com/blog/how-to-install-macos-ventura-on-...

Internal 256 GB disk has dual boot macOS and Asahi Linux.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: