[quote='872674022, ArthurValiev, /thread/810932?answerId=872674022#872674022, /profile/ArthurValiev']
My thinking now is what if there is a specific action that I do on the original VM that makes it behave as expected? Like opening Sytem Profiler to read that UDID. Does provisioning UDID get generated when the system boots or at the first time it's needed or requested? That might explain the weirdness in the behavior that we stumbled upon by accident.
[/quote]
Veeery curious. I see confirmation to my claim above.
So, I have two use cases. 1st works as expected, 2nd one generates a new UDID one each clone.
1st use case:
Create "VM 1" from an IPSW file.
Create a macOS user account.
Click Apple logo.
Select "About my Mac".
Click "More Info...".
Scroll down in the newly opened window and click "System Report..."
Shut down the machine.
Make a new clone by copying all files from "VM 1" and create "VM 2".
Boot "VM 2".
Compare UDID from "VM 1" and "VM 2". They match.
2nd use case is the same as 1st use case but skipping steps 2-6:
Create "VM 1" from an IPSW file.
Create a macOS user account.
Click Apple logo.
Select "About my Mac".
Click "More Info...".
Scroll down in the newly opened window and click "System Report..."
Shut down the machine.
Make a new clone by copying all files from "VM 1" and create "VM 2".
Boot "VM 2".
Compare UDID from "VM 1" and "VM 2". They DO NOT match.
That makes me think that UDID is generated in a lazy way meaning it's generated the first time it's needed.
So one workaround to the issue would be to open "System Information" once in the template VM.
But it doesn't sound to me like a future proof approach. This implicitly relies on the system to behave in a specific fashion here. So then the question would be what the preferred way is to make sure macOS generates the provisioning UDID when needed?
Topic:
App & System Services
SubTopic:
Core OS
Tags: