Last active
June 27, 2017 06:58
-
-
Save Stephanevg/270637e4b6779bbe42b8782e3f11b64c to your computer and use it in GitHub Desktop.
Packer hyperv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"PACKER_LOG": "1", | |
"PACKER_LOG_PATH": "packerlog.txt" | |
}, | |
"Builders": [{ | |
"type": "hyperv-iso", | |
"iso_url": "C:\\Users\\taavast3\\Downloads\\en_windows_server_2012_r2_with_update_x64_dvd_6052708 (1).iso", | |
"iso_checksum": "8E98E65389E8353186356C96B3A26DD1", | |
"iso_checksum_type": "md5", | |
"shutdown_command": "c:/admin/scripts/shutdown.bat", | |
"shutdown_timeout": "60m", | |
"Communicator": "winrm", | |
"winrm_username": "install", | |
"winrm_password": "Passw0rd", | |
"winrm_timeout": "60m", | |
"output_directory": "Templates", | |
"floppy_files": [ | |
"answer_files/2012_r2/Autounattend.xml", | |
"scripts/xxx-LaunchScripts.ps1", | |
"scripts/xxx-start.ps1" | |
], | |
"http_directory": "scripts", | |
"cpu": "2", | |
"secondary_iso_images": "Windows2012R2/Repository.iso" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment