Is Virtualization Framework works?

I trying to use https://developer.apple.com/documentation/virtualization

I found 3 projects on github with usage of this api, all of them look pretty similar
https://github.com/KhaosT/SimpleVM
https://github.com/jasper-wan/vm-lite
https://github.com/kendfinger/virtual

i tried debian, alpine, ubuntu, but always the same - vm.start is successful, but nothing happens - vm.State == 1 (running) but no message from kernel is printed to serial console

I also tried to set command line parameter like console = hvc0 quiet console = tty0 console = ttyS0,115200n8
but this doesnot help

Sample code:
https://github.com/KhaosT/SimpleVM/blob/master/SimpleVM/VirtualMachineViewModel.swift#L76-L130

How to make this work?


MacOS BigSur
MacBook Pro (15-inch, 2017)

No tag for Virtualization :(

Replies

I don’t have any answers for you, alas. If no one else chimes in my recommendation is that you open up a DTS tech support incident, which will allow me to allocate time to look into this.

No tag for Virtualization :(

Please file a bug against DevForums about that, and post your bug number, just for the record. In the meantime, using Hypervisor is fine.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Make sure you add virtualisation support in plist ?