Skip to content

Instantly share code, notes, and snippets.

@dky
Last active December 20, 2015 02:19
Show Gist options
  • Save dky/6055694 to your computer and use it in GitHub Desktop.
Save dky/6055694 to your computer and use it in GitHub Desktop.
Basic packer template
{
"builders": [
{
"type": "vmware",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "5s",
"disk_size": 10480,
"guest_os_type": "rhel6-64",
"http_directory": "http",
"iso_checksum": "7cde1479be934ad8463a35f2a3a48a2b",
"iso_checksum_type": "md5",
"iso_url": "file:/iso/CentOS-6.4-i386-netinstall.iso",
"skip_compaction": true,
"ssh_username": "root",
"ssh_password": "install",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "shutdown -h now",
"tools_upload_flavor": "linux",
"vmx_data": {
"memsize": "480",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment