Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Created October 10, 2014 18:54
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 todd-dsm/46638327ed27d41a4912 to your computer and use it in GitHub Desktop.
Save todd-dsm/46638327ed27d41a4912 to your computer and use it in GitHub Desktop.
packer qemu centos7 install hangup
{
"variables": {
"iso_os": "{{env `isoLinux`}}",
"pkr_http": "{{env `packerHTTP`}}"
},
"builders": [{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7.ks<enter><wait>"
],
"type": "qemu",
"accelerator": "kvm",
"boot_wait": "5s",
"disk_interface": "virtio",
"disk_size": 40960,
"format": "qcow2",
"net_device": "virtio-net",
"vm_name": "kvmtest",
"iso_url": "{{user `iso_os`}}/CentOS-7.0-1406-x86_64-DVD.iso",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"output_directory": "packer_kvm",
"ssh_wait_timeout": "30s",
"shutdown_command": "reboot",
"headless": false,
"http_directory": "{{user `pkr_http`}}",
"http_port_min": 10082,
"http_port_max": 10089,
"ssh_host_port_min": 2222,
"ssh_host_port_max": 2229,
"ssh_username": "root",
"ssh_password": "whatever",
"ssh_port": 22,
"ssh_wait_timeout": "10000s"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment