1230ab9829
- Add new script for building the Packer boxes called labbuilder.ps1 - Rearranged the hierarchy (my new script relies on the new hierarchy) - Working windows_81_x86 folder - Moved old packer-windows stuff to legacy-packer-windows directory. I plan to move it over piece by piece - Added a script to install 7zip that the other post install scripts can depend on - Fixed compact.bat & vm-guest-tools.bat to use 7zip installer - Fixed compact.bat to work with 32 bit machines - Added a readme
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox-iso",
|
|
"iso_url": "http://care.dlservice.microsoft.com/dl/download/C/3/9/C399EEA8-135D-4207-92C9-6AAB3259F6EF/10240.16384.150709-1700.TH1_CLIENTENTERPRISEEVAL_OEMRET_X86FRE_EN-US.ISO",
|
|
"iso_checksum_type": "sha1",
|
|
"iso_checksum": "875b450d67e7176b8b3c72a80c60a0628bf1afac",
|
|
"headless": false,
|
|
"boot_wait": "2m",
|
|
"ssh_username": "vagrant",
|
|
"ssh_password": "vagrant",
|
|
"ssh_wait_timeout": "2h",
|
|
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
|
|
"guest_os_type": "Windows81",
|
|
"disk_size": 61440,
|
|
"floppy_files": [
|
|
"./answer_files/10_x86/Autounattend.xml",
|
|
"./scripts/fixnetwork.ps1",
|
|
"./scripts/microsoft-updates.bat",
|
|
"./scripts/win-updates.ps1",
|
|
"./scripts/openssh.ps1",
|
|
"./scripts/oracle-cert.cer"
|
|
],
|
|
"vboxmanage": [
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--memory",
|
|
"1024"
|
|
],
|
|
[
|
|
"modifyvm",
|
|
"{{.Name}}",
|
|
"--cpus",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"remote_path": "/tmp/script.bat",
|
|
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
|
|
"scripts": [
|
|
"./scripts/vm-guest-tools.bat",
|
|
"./scripts/vagrant-ssh.bat",
|
|
"./scripts/enable-rdp.bat",
|
|
"./scripts/compact.bat"
|
|
]
|
|
}
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"type": "vagrant",
|
|
"keep_input_artifact": false,
|
|
"output": "windows_10_{{.Provider}}.box",
|
|
"vagrantfile_template": "vagrantfile-windows_10_x86.template"
|
|
}
|
|
]
|
|
}
|