Running metal-enabled app on macos virtual machine
Asked Answered
L

1

8

Is there any virtualization solution that supports metal api?

We have an app that uses Metal internally, and we'd like to test it across different macOS versions. Unfortunately it seems that VirtualBox, Parallels Desktop & VMWare Fusion doesn't enable Metal API in their guest macOS.

How can we test the app without having multiple physical machines or without using dual-boot?

Lawanda answered 4/10, 2018 at 22:33 Comment(3)
My 2¢ of offtopic: why Metal instead of, say, Vulkan?Polled
Swift has access to MetalKit api, with quite decent documentation and guaranteed future maintenance. Low-risk choice. It integrates with Cocoa well (see MTKView)Lawanda
I thought OpenGL to also enjoy guaranteed future maintenance within MacOS… until it got deprecated.Polled
L
3

UPDATED ANSWER 2019

Parallels Desktop v. 15 finally uses Metal. See their blogpost.


ORIGINAL ANSWER:

As far as I researched there's no chance of doing so with virtual machines.

The only feasible work-around we found is to:

  1. find/purchase hi-speed USB drive (or even external SSD)
  2. install various macOS versions on partitions of the USB drive
  3. boot your Mac from the pendrive and select the OS you want to test

Not ideal, but does the job.

Lawanda answered 17/10, 2018 at 13:24 Comment(1)
Also VMWare Fusion 12 has enabled support for it, but they (virtualization ISVs) all depend on Apple's paravirtualized driver AppleParavirtGPU.kext which Apple only has made available for Big Sur guests developer.apple.com/documentation/paravirtualizedgraphicsPoinciana

© 2022 - 2024 — McMap. All rights reserved.