Provisioning with Virtualization framework fails with Threading warning

Hi,

I saw the mac os 27 new features video https://developer.apple.com/videos/play/wwdc2026/224/?time=64 and was trying Provisioning and i get this warning

[Internal] Thread running at User-interactive quality-of-service class waiting on a lower QoS thread running at Default quality-of-service class. Investigate ways to avoid priority inversions

at the line try startupOptions.setGuestProvisioning(opts)

i have my vm q declared like this

let vmQueue = DispatchQueue(label: "VZVirtualMachineQueue", qos: .userInteractive)

and i am executing like this


self.vmQueue.async { [weak self] in

.........
.........
let startupOptions = VZMacOSVirtualMachineStartOptions()
try? startupOptions.setGuestProvisioning(opts)

vm.start(startupOptions)
}

and it fails with treading warning and provisioning does not happen.

Thanks in advance for the help

Answered by rbmanian75 in 893606022

Damn.. apple did not say in the documentation that you cant use the same user name as host login user name. I forgot to check the logs. when i checked the logs i saw the guest provisioning was failed due to user name 'user' is not valid. where user is the same as host login user. It works perfectly.

i changed the qos from userInteractive to default and i dont get the threading warning but provisioning does not happen. it goes to the setup screen asking for details.

Accepted Answer

Damn.. apple did not say in the documentation that you cant use the same user name as host login user name. I forgot to check the logs. when i checked the logs i saw the guest provisioning was failed due to user name 'user' is not valid. where user is the same as host login user. It works perfectly.

Provisioning with Virtualization framework fails with Threading warning
 
 
Q