UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Using libkrun-efi as open source alternative to Apple's Virtualization framework

Open mgrossu opened this issue 1 year ago • 1 comments

The new EFI flavor turns libkrun into an open-source alternative of Virtualization.framework on macOS. It brings some excellent additions, such as a Vulkan-capable virtio-gpu, which allows you to offload compute workloads to the host's GPU, and an extended virtio-fs implementation. Podman 5.2 is taking advantage of this: https://linuxiac.com/podman-5-2-enhances-macos-vms-with-gpu-support/. Would be nice to add this VMM backend in addition to qemu and Virtualization.framework.

mgrossu avatar Sep 27 '24 11:09 mgrossu

libkrun uses Hypervisor.framework the same as QEMU. Adding a new backend is tremendous effort. Why is it not possible to port the vulkan-capable virtio-gpu to QEMU instead? Is there any documentation on how they are doing it?

osy avatar Oct 03 '24 21:10 osy

libkrun uses Hypervisor.framework the same as QEMU. Adding a new backend is tremendous effort. Why is it not possible to port the vulkan-capable virtio-gpu to QEMU instead? Is there any documentation on how they are doing it?

Maybe this patch to make virtio-gpu to support Venus on macOS ?

https://patchew.org/Xen/[email protected]/

I kown it form here: https://github.com/lima-vm/lima/issues/2277

lurenJBD avatar Oct 24 '24 13:10 lurenJBD

@lurenJBD Xen and KVM are both Linux-only virtualization technologies

osy avatar Oct 28 '24 22:10 osy

@lurenJBD Xen and KVM are both Linux-only virtualization technologies

Yes, I was wrong, this link is the modification for libkrun

https://github.com/containers/libkrun/pull/174

lurenJBD avatar Oct 30 '24 04:10 lurenJBD