cirruslabs / macos-image-templates

MIT License
219 stars 60 forks source link

Provisioning error when building templates/vanilla-sonoma.pkr.hcl #105

Closed rcurranmoz closed 10 months ago

rcurranmoz commented 10 months ago

Doing a:

packer build templates/vanilla-sonoma.pkr.hcl

VM does get created/launches but it seems to experience errors when provisoning:

tart-cli.tart: Growing APFS Physical Store disk0s2 from 34,107,002,880 to 39,475,671,040 bytes
    tart-cli.tart: Modifying partition map
    tart-cli.tart: Growing APFS data structures
    tart-cli.tart: Finished APFS operation
==> tart-cli.tart: Provisioning with shell script: /var/folders/mj/v86gjdz566l0f95pn3h4l2sh0000gn/T/packer-shell3756291730
    tart-cli.tart: admin ALL=(ALL) NOPASSWD: ALL
    tart-cli.tart: warning: this combination of display sleep and system sleep may prevent system sleep.
==> tart-cli.tart: Password:2023-12-13 16:36:56.863 systemsetup[1370:15351] ### Error:-99 File:/AppleInternal/Library/BuildRoots/11aa8fb2-5f4b-11ee-bc7f-926038f30c31/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379
    tart-cli.tart: setdisplaysleep: Never
    tart-cli.tart: setsleep: Never (computer, display, hard disk)
==> tart-cli.tart: 2023-12-13 16:36:56.885 systemsetup[1372:15362] ### Error:-99 File:/AppleInternal/Library/BuildRoots/11aa8fb2-5f4b-11ee-bc7f-926038f30c31/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379
    tart-cli.tart: setcomputersleep: Never
==> tart-cli.tart: 2023-12-13 16:36:56.905 systemsetup[1374:15368] ### Error:-99 File:/AppleInternal/Library/BuildRoots/11aa8fb2-5f4b-11ee-bc7f-926038f30c31/Library/Caches/com.apple.xbs/Sources/Admin/InternetServices.m Line:379
==> tart-cli.tart: Inspection is enabled by default for process or parent application with deprecated 'com.apple.webinspector.allow' entitlement. Use `inspectable` API to enable inspection instead.
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
==> tart-cli.tart: /tmp/script_5059.sh: line 13:  1375 Killed: 9               /Applications/Safari.app/Contents/MacOS/Safari
==> tart-cli.tart: Gracefully shutting down the VM...
    tart-cli.tart: Shutdown NOW!
    tart-cli.tart:
    tart-cli.tart: System shutdown time has arrived
==> tart-cli.tart: Waiting for the tart process to exit...
Build 'tart-cli.tart' finished after 11 minutes 17 seconds.
edigaryev commented 10 months ago

Hello Ryan 👋 Thanks for reporting this.

This is merely an stderr output which Packer highlights as red, it looks scary but all of the commands have actually suceeded (you can check this by validating the Packer's exit code with echo $?).

As for the UX part of the issue, I've created https://github.com/cirruslabs/macos-image-templates/pull/106 to address it.