Building macOS 11.x VMs with packer and Fusion

I have submitted a feature request for a new provisioned type that can send keyboard commands to the os being built. What this would enable for macOS 11+ guests is to do things like approving kernel extensions and other security settings that can only be changed by users at the console. There are likely many other use cases for this general purpose provisioner for non-linux OSs.

If that capability would help you out please :+1:the feature request on git.

Blake

Hi again! I’m trying to build Big Sur images, and running into the problem of “Waiting for SSH to become available…”. I did try several combinations of packer versions and VMWare versions to no avail. The VM starts and waits logged in while packer apparently waits for SSH, indefinitely.

Any ideas how to proceed here?

That part of the process is very timing dependent. If the “typing the boot command” part is happening before the OS is ready it will fail like you are seeing. First thing I would try is increasing the boot wait by 2 minutes.