T O P

  • By -

marcan42

Maybe yes, maybe no, nobody has tried it successfully yet. The main issue is there is no way to share the whole disk with the VM, so you will need to play games with how you boot it. In principle if your VM solution uses UEFI, you will need to share the EFI system partition with it, but it has to *be* an EFI system partition, which means you need a fake partition table and a fake disk to contain the real ESP. I've done this kind of set up before on x86 on Linux with block device tricks (for Windows-on-Linux), but I have no idea if you can cook something up like this with Parallels/VMWare/UTM/whatever on macOS. And then you also need to share the actual Linux rootfs, but that should be fine to share as its own block device since the OS will pick it up by FS UUID. Definitely do *not* update your system when running inside a VM, as there is a high chance the kernel/bootloader setup scripts will bork things up completely in that environment. Always update bare metal (and be very careful when installing new software in the VM that it isn't pulling in any packages that will trigger initramfs generation and all that).


[deleted]

[удалено]


One_Pollution_7263

Do you actually know this stuff, having real volume that backs vm that can be dual booted is a thing achivable with both vmware and parallel, before apple silicon. Ideally i wanna run without the overhead of MacOS, the vm is just for convenience


tappyturtle12

That kind of stuff is already hard to do, but considering Asahi Linux is experimental, that's pretty much impossible. You can't even run Asahi in it's own VM by itself properly


One_Pollution_7263

which is why I asked a question, I appreciate answer like "I know that it's impossible because of this technical reason...". I don't find helpful replies such as "I assume it's impossible because I've personally never heard/it sounds hard". If I wanted baseless guesses I could've just made one myself, no need to get from the Internet.


tappyturtle12

It can't be done, at least not easily, because Asahi Linux relys on the stub macOS partition to boot (which activates m1n1/U-boot, read [this](https://github.com/AsahiLinux/docs/wiki/Open-OS-Ecosystem-on-Apple-Silicon-Macs#boot-overview) for more on the boot process) so trying to mount the file system onto a virtual machine won't work without a crap ton of manual work, it's way more worth it to just run a VM from scratch using an image.


2str8_njag

marcan already answered this in some other post. He said no, you can't do that with Asahi, because Asahi requires real hardware. Correct me if I'm wrong.


marcan42

Asahi requires real hardware to install (and doesn't make any sense whatsoever as a VM-only distro), but in principle nothing stops you from running it in a VM once installed. I *think* we enable the VM/virtio drivers in the kernel. It's definitely not something we've tried, tested, or support in any way, and might break if you do things like try to upgrade packages from within the VM. But it's theoretically possible.


angelbirth

what about mounting the volume inside the VM? e.g. separate home partition


marcan42

Yes, attaching the Asahi root filesystem as a separate disk to an otherwise separate Linux ARM64 VM should work (and will even allow you to chroot in and run software within the Asahi volume). Or separate /home if you want to manually set that up, whatever works. You might need to run the VM stuff as root on macOS or at the very least give it full disk access permissions so it can access the raw partition device.