I see that in the link https://developer.apple.com/documentation/virtualization/vzvirtualmachineconfiguration/graphicsdevices?changes=late_7_8 graphicsDevices accepts and array. So it is possible to have multiple displays for a virtual machine. But when i tried it with multiple displays it does not work. Why do we have it as an array if it does not support multiple displays.? or how to get it work with multiple displays.
when i tried it with multiple displays it does not work.
Correct. Multiple displays are not currently supported.
Why do we have it as an array if it does not support multiple displays?
Normally I avoid answering why questions — see tip 3 in Quinn’s Top Ten DevForums Tips — but in this case it’s not much of a stretch:
-
If, at some point, we add support for multiple displays, we won’t need to change the API.
-
It matches the other
xyzDevicesproperties onVZVirtualMachineConfiguration, which are all arrays.
If you have a specific need for multiple displays, please do file an enhancement request that describes your requirements.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"