Skip to content

Instantly share code, notes, and snippets.

@jonanh
Created May 16, 2017 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonanh/5fed0314aa2f6ec9b3f5c38c0289d2b0 to your computer and use it in GitHub Desktop.
Save jonanh/5fed0314aa2f6ec9b3f5c38c0289d2b0 to your computer and use it in GitHub Desktop.
output of prepare_iso/prepare_vdi.sh with Sierra 10.12.5
Jons-MacBook-Pro:packer test$ sudo ../prepare_iso/prepare_vdi.sh \
> -D DISABLE_REMOTE_MANAGEMENT \
> -o macOS_10.12.vdi \
> /Applications/Install\ macOS\ Sierra.app/ \
> . && \
> ../prepare_iso/prepare_ovf.sh \
> macOS_10.12.vdi && \
> packer build \
> -var provisioning_delay=30 \
> -var source_path=macOS_10.12.ovf \
> template.json
-- Attaching input OS X installer image
expected CRC32 $6E0A52CC
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 EFI
/dev/disk2s2 Apple_HFS /private/tmp/veewee-osx-esd.QGNz
-- Mounting BaseSystem..
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $C16DE7A2
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $B9CE6ABE
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $6F7721F8
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
......................................................................................................................................................................................................
disk image (Apple_HFS : 4): verified CRC32 $D74AAD7A
Checksumming (Apple_Free : 5)…
...................................................................................................................................................................................................................
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $6F7721F8
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $A76F9B83
verified CRC32 $BAD1A53D
/dev/disk3 GUID_partition_scheme
/dev/disk3s1 Apple_HFS /private/tmp/veewee-osx-basesystem.4Ob4
-- OS X version detected: 10.12.5, build 16F73
-- Unmounting BaseSystem..
"disk3" unmounted.
"disk3" ejected.
-- Making firstboot installer pkg..
productbuild: Wrote product to /Users/test/git/osx-vm-templates/prepare_iso/support/tmp/veewee-config.pkg
-- Creating empty read-write DMG located at /tmp/veewee-osx-basesystem-rw.A5YE.dmg..
created: /tmp/veewee-osx-basesystem-rw.A5YE.dmg.sparseimage
-- Mounting empty read-write DMG located at /tmp/veewee-osx-basesystem-rw.A5YE.dmg..
/dev/disk3 GUID_partition_scheme
/dev/disk3s1 EFI
/dev/disk3s2 Apple_HFS /private/tmp/veewee-osx-basesystem.4Ob4
-- Installing macOS
May 16 20:36:06 installer[30003] <Notice>: Hardware: MacBookPro11,2 @ 2.20 GHz (x 8), 16384 MB RAM
May 16 20:36:06 installer[30003] <Notice>: Running OS Build: Mac OS X 10.12.4 (16E195)
May 16 20:36:06 installer[30003] <Debug>: Env: SHELL=/bin/sh
May 16 20:36:06 installer[30003] <Debug>: Env: TERM=xterm-256color
May 16 20:36:06 installer[30003] <Debug>: Env: USER=vagrant
May 16 20:36:06 installer[30003] <Debug>: Env: SUDO_USER=test
May 16 20:36:06 installer[30003] <Debug>: Env: SUDO_UID=504
May 16 20:36:06 installer[30003] <Debug>: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Y2Oe288GK0/Listeners
May 16 20:36:06 installer[30003] <Debug>: Env: __CF_USER_TEXT_ENCODING=0x0:0:0
May 16 20:36:06 installer[30003] <Debug>: Env: USERNAME=root
May 16 20:36:06 installer[30003] <Debug>: Env: MAIL=/var/mail/root
May 16 20:36:06 installer[30003] <Debug>: Env: PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin
May 16 20:36:06 installer[30003] <Debug>: Env: PWD=/Users/test/git/osx-vm-templates/packer
May 16 20:36:06 installer[30003] <Debug>: Env: SHLVL=1
May 16 20:36:06 installer[30003] <Debug>: Env: SUDO_COMMAND=../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install macOS Sierra.app/ .
May 16 20:36:06 installer[30003] <Debug>: Env: HOME=/Users/test
May 16 20:36:06 installer[30003] <Debug>: Env: LOGNAME=root
May 16 20:36:06 installer[30003] <Debug>: Env: LC_CTYPE=UTF-8
May 16 20:36:06 installer[30003] <Debug>: Env: SUDO_GID=20
May 16 20:36:06 installer[30003] <Debug>: Env: _=/usr/sbin/installer
May 16 20:36:06 installer[30003] <Debug>: Env: COMMAND_LINE_INSTALL=1
May 16 20:36:06 installer[30003] <Alert>: Registering the connection
May 16 20:36:06 installer[30003] <Alert>: client 0x7f8718407200: phaseName = OS Installer
May 16 20:36:06 installer[30003] <Alert>: client 0x7f8718407200: phaseName = "OS Installer"
May 16 20:36:06 installer[30003] <Alert>: Registering the connection
May 16 20:36:06 installer[30003] <Alert>: client 0x7f8718601890: phaseName = OS Installer
May 16 20:36:06 installer[30003] <Info>: Install will not be automated.
May 16 20:36:06 installer[30003] <Info>: Install will performed using distribution/collection at /tmp/veewee-osx-esd.QGNz/Packages/OSInstall.mpkg.
May 16 20:36:07 installer[30003] <Info>: Waiting for target evaluation.
May 16 20:36:07 installer[30003] <Info>: Starting target evaluation queue.
May 16 20:36:07 installer[30003] <Info>: Starting target evaluation queue.
May 16 20:36:07 installer[30003] <Info>: Evaluating install check for (null)
May 16 20:36:07 installer[30003] <Info>: Install check successful.
May 16 20:36:07 installer[30003] <Info>: Evaluating 3 disks
May 16 20:36:07 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk2s2 Mount point: /private/tmp/veewee-osx-esd.QGNz Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:07 installer[30003] <Info>: OS X Install ESD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:07 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Evaluating install check for (null)
May 16 20:36:07 installer[30003] <Info>: Install check successful.
May 16 20:36:07 installer[30003] <Info>: Evaluating 3 disks
May 16 20:36:07 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk2s2 Mount point: /private/tmp/veewee-osx-esd.QGNz Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:07 installer[30003] <Info>: OS X Install ESD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:07 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:07 installer[30003] <Info>: Disabling system idle sleep.
May 16 20:36:07 installer[30003] <Warning>: Installing to AppleRAID / DMG so we are skipping recovery system install. Some features will not work.
May 16 20:36:07 installer[30003] <Info>: Dist disk is not root.
May 16 20:36:07 installer[30003] <Info>: Connected to daemon. Language set to: English
May 16 20:36:07 installer[30003] <Info>: Connected to daemon. Language set to: English
May 16 20:36:07 installer[30003] <Info>: No imgsrc found, mounting system image for BaseSystem extraction.
May 16 20:36:07 installer[30003] <Info>: mountDiskImageWithURLString: /private/tmp/veewee-osx-esd.QGNz/BaseSystem.dmg
May 16 20:36:08 installer[30003] <Error>: Mounting disk image complete, results dict = {
"system-entities" = (
{
"content-hint" = "Apple_HFS";
"dev-entry" = "/dev/disk4s1";
"mount-point" = "/Volumes/OS X Base System";
"potentially-mountable" = 1;
"unmapped-content-hint" = "48465300-0000-11AA-AA11-00306543ECAC";
"volume-kind" = hfs;
},
{
"content-hint" = "GUID_partition_scheme";
"dev-entry" = "/dev/disk4";
"potentially-mountable" = 0;
"unmapped-content-hint" = "GUID_partition_scheme";
}
);
}
May 16 20:36:08 installer[30003] <Info>: OSI: com.apple.pkg.BaseSystemResources remapped external root path to: /Volumes/OS X Base System
May 16 20:36:08 installer[30003] <Info>: Won't convert to CS, target is a disk image
installer: OS Install started.
May 16 20:36:08 installer[30003] <Info>: Evaluating 3 disks
May 16 20:36:08 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:08 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk2s2 Mount point: /private/tmp/veewee-osx-esd.QGNz Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:08 installer[30003] <Info>: OS X Install ESD is a valid target.
May 16 20:36:08 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:08 installer[30003] <Info>: Macintosh HD is a valid target.
May 16 20:36:08 installer[30003] <Info>: Evaluating 1 disks
May 16 20:36:08 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk4s1 Mount point: /Volumes/OS X Base System Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:08 installer[30003] <Info>: OS X Base System is a valid target.
May 16 20:36:08 installer[30003] <Info>: Evaluating 1 disks
May 16 20:36:08 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk4s1 Mount point: /Volumes/OS X Base System Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:08 installer[30003] <Info>: OS X Base System is a valid target.
installer:%0.000000
May 16 20:36:09 installer[30003] <Info>: Preparing disk for OS Install.
May 16 20:36:09 installer[30003] <Notice>: Removing background color for incompatible machine Mac-3CBD00234E554E41
May 16 20:36:09 installer[30003] <Info>: Evaluating 1 disks
May 16 20:36:09 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:09 installer[30003] <Info>: Macintosh HD is a valid target.
installer:%0.107548
installer:%0.215096
May 16 20:36:10 installer[30003] <Info>: Evaluating 1 disks
May 16 20:36:10 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacData Type: kSKDiskTypeHFS }
May 16 20:36:10 installer[30003] <Info>: Macintosh HD is a valid target.
installer:%0.322644
installer:%0.430192
installer:%0.645289
installer:%0.699063
May 16 20:36:11 installer[30003] <Notice>: PackageKit: Enqueuing install with default quality of service (utility)
May 16 20:36:11 installer[30003] <Info>: Began install
installer:%0.734946
installer:%0.734946
...
...
...
installer:%98.386778
installer:%98.386778
installer:%98.386778
May 16 20:50:21 installer[30003] <Error>: Couldn't find mutable product at URL: (null)
May 16 20:50:21 installer[30003] <Notice>: InstallType cookie file was successfully written for Setup Assistant to pick up.
May 16 20:50:21 installer[30003] <Error>: Boot chime muted
May 16 20:50:21 installer[30003] <Info>: Evaluating 1 disks
May 16 20:50:21 installer[30003] <Info>: Evaluating SKDisk { BSD Name: disk3s2 Mount point: /private/tmp/veewee-osx-basesystem.4Ob4 Role: kSKDiskRoleLegacyMacSystem Type: kSKDiskTypeHFS }
May 16 20:50:21 installer[30003] <Info>: Macintosh HD is a valid target.
installer:%98.924519
May 16 20:50:21 installer[30003] <Error>: Not setting boot because we are installing to a dmg.
May 16 20:50:22 installer[30003] <Info>: Source is not target, not cleaning up IA
May 16 20:50:22 installer[30003] <Warning>: Somehow we don't have a mutable product to cleanup?
installer:%99.892452
installer:%100.000000
May 16 20:50:22 installer[30003] <Info>: ------- Install Complete -------
May 16 20:50:22 installer[30003] <Info>: Post install cleanup: 0 seconds
May 16 20:50:22 installer[30003] <Info>: Attaching the install log: 0 seconds
May 16 20:50:22 installer[30003] <Info>: Install packages: 850 seconds
May 16 20:50:22 installer[30003] <Info>: Install preflight containers: 0 seconds
May 16 20:50:22 installer[30003] <Info>: Preparing disk for install: 2 seconds
May 16 20:50:22 installer[30003] <Alert>: client 0x7f8718601890: phaseName = "OS Installer"
May 16 20:50:22 installer[30003] <Info>: ISAP: Done with phase "OS Installer"
installer: The OS Install was successful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment