virtualization-rs provides the API of the Apple Virtualization.framework in Rust language.
macOS Big Sur
[dependencies]
virtualization-rs = "0.1.2"
The example is inspired from SimpleVM.
make release
./target/release/examples/simplevm --kernel ubuntu/vmlinuz --initrd ubuntu/initrd --disk ubuntu/ubuntu.iso