Developer Builds Apple Virtualization Framework Support Into Flutter Desktop App WSL Manager
WSL Manager, a Flutter desktop app originally launched in 2021 to simplify Windows Subsystem for Linux management, has released a version 2 that also runs on Apple silicon Macs. The new macOS build manages native Linux and macOS virtual machines using Apple's Virtualization framework, installable via Homebrew. Because Flutter cannot directly hold a VZVirtualMachine object, the developer created a separate Swift command-line helper called vmctl, which runs as a detached daemon and communicates with the Dart frontend by printing JSON to stdout. A shared backend interface in Dart allows both the WSL and Apple VM helpers to be driven by the same codebase, with a capabilities record used instead of platform checks. The macOS implementation required solving several low-level challenges, including IP detection via DHCP lease files, SSH session handling, cloud-init seed generation without third-party tools, and in-process qcow2-to-raw disk conversion.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in