Skip to content

Instantly share code, notes, and snippets.

@amosshapira
Created March 21, 2016 23:14
Show Gist options
  • Save amosshapira/f0e0bde343791472768b to your computer and use it in GitHub Desktop.
Save amosshapira/f0e0bde343791472768b to your computer and use it in GitHub Desktop.
minimal packer template to demonstrate problem getting guest ip on bridged vmware network
{
"builders": [
{
"boot_wait": "2s",
"disk_size": 40960,
"guest_os_type": "darwin12-64",
"iso_checksum_type": "none",
"iso_url": "{{user `iso_url`}}",
"shutdown_command": "echo '{{user `username`}}'|sudo -S shutdown -h now",
"skip_compaction": false,
"ssh_port": 22,
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "darwin",
"type": "vmware-iso",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "2048",
"numvcpus": "1",
"firmware": "efi",
"keyboardAndMouseProfile": "macProfile",
"smc.present": "TRUE",
"hpet0.present": "TRUE",
"ich7m.present": "TRUE",
"ehci.present": "TRUE",
"usb.present": "TRUE",
"ethernet0.connectionType": "bridged"
}
}
],
"min_packer_version": "0.7.0",
"provisioners": [
{
"type": "shell-local",
"command": "sleep {{user `provisioning_delay`}}"
},
{
"inline": "/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"",
"type": "shell"
}
],
"variables": {
"iso_url": "OSX_InstallESD_10.11.3_15D21.dmg",
"password": "vagrant",
"provisioning_delay": "0",
"username": "vagrant"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment