Apple expands macOS virtualization capabilities and introduces Rosetta for Linux


At WWDC 2022, Apple presented its latest advancement in virtualization support on macOS. Apple Virtualization Framework allows configuring and creating virtual machines on Apple Silicon to run macOS or Linux. New in the upcoming macOS Ventura, Linux VMs can leverage the GPU and use Rosetta to run unmodified x86-64 Linux binaries.

That virtualization framework was introduced in macOS BigSur, also known as macOS 11, two years ago as an alternative to hypervisor framework. As Apple engineer Benjamin Poulin has shown, the Virtualization Framework provides a high-level API for configuring and creating VMs on macOS with Swift. In fact, the virtualization framework is just a high-level layer that runs on top of the hypervisor framework, as shown in the figure below.

(Image courtesy of Apple)

VZVirtualMachineConfiguration is the core class that allows developers to define the hardware they want available in their VMs, including how many CPUs, how much memory, storage and…

Source link

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.