You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.8 KiB
55 lines
1.8 KiB
{
|
|
"variables": {
|
|
"output_directory": "packer-output"
|
|
},
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox-iso",
|
|
"iso_url": "http://care.dlservice.microsoft.com/dl/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.17050.WINBLUE_REFRESH.140317-1640_X86FRE_ENTERPRISE_EVAL_EN-US-IR3_CENA_X86FREE_EN-US_DV9.ISO",
|
|
"iso_checksum_type": "sha1",
|
|
"iso_checksum": "4ddd0881779e89d197cb12c684adf47fd5d9e540",
|
|
"headless": true,
|
|
"boot_wait": "2m",
|
|
"communicator": "winrm",
|
|
"winrm_username": "vagrant",
|
|
"winrm_password": "V@grant123",
|
|
"winrm_timeout": "72h",
|
|
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
|
|
"guest_os_type": "Windows81",
|
|
"disk_size": 61440,
|
|
"guest_additions_mode": "attach",
|
|
"floppy_files": [
|
|
"./Autounattend.xml",
|
|
"../../scripts/win-updates.ps1",
|
|
"../../scripts/enable-winrm.ps1",
|
|
"../../scripts/wintriallab-postinstall.psm1",
|
|
"../../scripts/autounattend-postinstall.ps1",
|
|
"../../scripts/provisioner-postinstall.ps1"
|
|
],
|
|
"vboxmanage": [
|
|
["setextradata", "global", "GUI/SuppressMessages", "all" ],
|
|
["modifyvm", "{{.Name}}", "--memory", "2048" ],
|
|
["modifyvm", "{{.Name}}", "--cpus", "2" ],
|
|
["modifyvm", "{{.Name}}", "--accelerate2dvideo", "on"],
|
|
["modifyvm", "{{.Name}}", "--vram", 128]
|
|
]
|
|
}
|
|
],
|
|
"provisioners": [
|
|
|
|
{
|
|
"type": "powershell",
|
|
"inline": ["A:\\provisioner-postinstall.ps1 -Verbose"]
|
|
}
|
|
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"type": "vagrant",
|
|
"keep_input_artifact": false,
|
|
"output": "{{user `output_directory`}}/windows_81_x86_{{.Provider}}.box",
|
|
"vagrantfile_template": "vagrantfile-windows_81_x86.template"
|
|
}
|
|
]
|
|
}
|