Skip to content

Instantly share code, notes, and snippets.

@soulsearcher
Created August 31, 2017 02:03
Show Gist options
  • Save soulsearcher/3cced40bd1eaf9e4d3ef0f48e6c86dbf to your computer and use it in GitHub Desktop.
Save soulsearcher/3cced40bd1eaf9e4d3ef0f48e6c86dbf to your computer and use it in GitHub Desktop.
packer configuration for centos
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "http://ftp.daumkakao.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso",
"iso_checksum": "27bd866242ee058b7a5754e83d8ee8403e216b93d130d800852a96f41c34d86a",
"iso_checksum_type": "sha256",
"http_directory": "http",
"boot_command": "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks-centos73-1611.cfg<enter><wait>",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"disk_size": 8192,
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment