Permalink
Find file
ea7c057 Sep 27, 2016
42 lines (41 sloc) 1.31 KB
{
"builders": [
{
"type": "hyperv-iso",
"guest_additions_mode": "disable",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "md5",
"communicator": "winrm",
"disk_size": 61440,
"vm_name": "nano",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"switch_name": "internal_switch",
"shutdown_command": "shutdown /r /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "1h",
"floppy_files": [
"answer_files/nano/hyperv/Autounattend.xml",
"scripts/nano_hyperv_create.ps1",
"scripts/nano_cleanup.ps1",
"scripts/nano_cleanup_after_reboot.ps1",
"scripts/SetupComplete.cmd",
"scripts/postunattend.xml"
]
}
],
"post-processors": [
[{
"type": "vagrant",
"keep_input_artifact": true,
"output": "windowsNano-{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows-nano.template"
}]
],
"variables": {
"headless": "false",
"iso_checksum": "18a4f00a675b0338f3c7c93c4f131beb",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO"
}
}