Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
8f416c79
Unverified
Commit
8f416c79
authored
Dec 09, 2017
by
Stefan Scherer
Browse files
Run packer fix to reformat all templates
parent
20a298f0
Changes
22
Show whitespace changes
Inline
Side-by-side
fix.sh
0 → 100755
View file @
8f416c79
#!/bin/bash
for
template
in
$(
ls
-1
*
.json
)
;
do
echo
$template
packer fix
$template
>
/tmp/
$$
.json
mv
/tmp/
$$
.json
$template
done
windows_10.json
View file @
8f416c79
{
"builders"
:
[
{
"type"
:
"hyperv-iso"
,
"vm_name"
:
"windows_10"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"boot_wait"
:
"6m"
,
"communicator"
:
"winrm"
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"ram_size"
:
"2048"
,
"communicator"
:
"winrm"
,
"cpu"
:
"2"
,
"switch_name"
:
"{{user `switch_name`}}"
,
"guest_additions_mode"
:
"none"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"disk_size"
:
"{{user `disk_size`}}"
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
...
...
@@ -27,28 +15,26 @@
"./scripts/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
]
],
"guest_additions_mode"
:
"none"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"ram_size"
:
"2048"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"switch_name"
:
"{{user `switch_name`}}"
,
"type"
:
"hyperv-iso"
,
"vm_name"
:
"windows_10"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"winrm_username"
:
"vagrant"
},
{
"type"
:
"vmware-iso"
,
"vm_name"
:
"windows_10"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
"{{user `headless`}}"
,
"boot_wait"
:
"6m"
,
"boot_command"
:
""
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"windows9-64"
,
"boot_wait"
:
"6m"
,
"communicator"
:
"winrm"
,
"disk_size"
:
"{{user `disk_size`}}"
,
"disk_type_id"
:
"{{user `disk_type_id`}}"
,
"vnc_port_min"
:
5900
,
"vnc_port_max"
:
5980
,
"version"
:
11
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
"./floppy/WindowsPowershell.lnk"
,
...
...
@@ -60,31 +46,33 @@
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"vmx_remove_ethernet_interfaces"
:
true
,
"guest_os_type"
:
"windows9-64"
,
"headless"
:
"{{user `headless`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"type"
:
"vmware-iso"
,
"version"
:
11
,
"vm_name"
:
"windows_10"
,
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
}
},
"vmx_remove_ethernet_interfaces"
:
true
,
"vnc_port_max"
:
5980
,
"vnc_port_min"
:
5900
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"winrm_username"
:
"vagrant"
},
{
"type"
:
"virtualbox-iso"
,
"vm_name"
:
"windows_10"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
"{{user `headless`}}"
,
"boot_wait"
:
"6m"
,
"boot_command"
:
""
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"Windows10_64"
,
"guest_additions_mode"
:
"disable"
,
"boot_wait"
:
"6m"
,
"communicator"
:
"winrm"
,
"disk_size"
:
"{{user `disk_size`}}"
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
...
...
@@ -97,6 +85,14 @@
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"guest_additions_mode"
:
"disable"
,
"guest_os_type"
:
"Windows10_64"
,
"headless"
:
"{{user `headless`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"type"
:
"virtualbox-iso"
,
"vboxmanage"
:
[
[
"modifyvm"
,
...
...
@@ -110,67 +106,72 @@
"--cpus"
,
"2"
]
]
],
"vm_name"
:
"windows_10"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"{{user `winrm_timeout`}}"
,
"winrm_username"
:
"vagrant"
}
],
"post-processors"
:
[
{
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_{{.Provider}}.box"
,
"type"
:
"vagrant"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
}
],
"provisioners"
:
[
{
"type"
:
"windows-shell"
,
"remote_path"
:
"/tmp/script.bat"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"remote_path"
:
"/tmp/script.bat"
,
"scripts"
:
[
"./scripts/vm-guest-tools.bat"
,
"./scripts/enable-rdp.bat"
]
],
"type"
:
"windows-shell"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/debloat-windows.ps1"
]
],
"type"
:
"powershell"
},
{
"
type"
:
"windows-restart
"
,
"
restart_timeout"
:
"{{user `restart_timeout`}}
"
"
restart_timeout"
:
"{{user `restart_timeout`}}
"
,
"
type"
:
"windows-restart
"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/set-powerplan.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
]
],
"type"
:
"powershell"
},
{
"type"
:
"windows-shell"
,
"remote_path"
:
"/tmp/script.bat"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"remote_path"
:
"/tmp/script.bat"
,
"scripts"
:
[
"./scripts/pin-powershell.bat"
,
"./scripts/set-winrm-automatic.bat"
,
"./scripts/uac-enable.bat"
,
"./scripts/dis-updates.bat"
,
"./scripts/compact.bat"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
"type"
:
"windows-shell"
}
],
"variables"
:
{
"
headless"
:
"false
"
,
"
autounattend"
:
"./answer_files/10/Autounattend.xml
"
,
"disk_size"
:
"61440"
,
"disk_type_id"
:
"1"
,
"vhv_enable"
:
"false"
,
"iso_url"
:
"http://care.dlservice.microsoft.com/dl/download/6/5/D/65D18931-F626-4A35-AD5B-F5DA41FE6B76/16299.15.170928-1534.rs3_release_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
,
"iso_checksum_type"
:
"sha256"
,
"headless"
:
"false"
,
"iso_checksum"
:
"3d39dd9bd37db5b3c80801ae44003802a9c770a7400a1b33027ca474a1a7c691"
,
"autounattend"
:
"./answer_files/10/Autounattend.xml"
,
"iso_checksum_type"
:
"sha256"
,
"iso_url"
:
"http://care.dlservice.microsoft.com/dl/download/6/5/D/65D18931-F626-4A35-AD5B-F5DA41FE6B76/16299.15.170928-1534.rs3_release_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso"
,
"restart_timeout"
:
"5m"
,
"vhv_enable"
:
"false"
,
"winrm_timeout"
:
"6h"
}
}
windows_10_docker.json
View file @
8f416c79
{
"builders"
:
[
{
"
type"
:
"vmware-vmx
"
,
"
vm_name"
:
"windows_10_docker
"
,
"
boot_command"
:
"
"
,
"
boot_wait"
:
"5s
"
,
"communicator"
:
"winrm"
,
"source_path"
:
"{{user `source_path`}}"
,
"headless"
:
false
,
"boot_wait"
:
"5s"
,
"boot_command"
:
""
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"15m"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"
vnc_port_min"
:
5900
,
"
vnc_port_max"
:
5980
,
"vm
x_remove_ethernet_interfaces"
:
true
,
"
source_path"
:
"{{user `source_path`}}"
,
"
type"
:
"vmware-vmx"
,
"vm
_name"
:
"windows_10_docker"
,
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
},
"vmx_remove_ethernet_interfaces"
:
true
,
"vnc_port_max"
:
5980
,
"vnc_port_min"
:
5900
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"15m"
,
"winrm_username"
:
"vagrant"
}
],
"post-processors"
:
[
{
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_docker_{{.Provider}}.box"
,
"type"
:
"vagrant"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
}
],
"provisioners"
:
[
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/docker/10/install-containers-feature.ps1"
]
],
"type"
:
"powershell"
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/10/install-docker.ps1"
,
...
...
@@ -44,26 +51,20 @@
"./scripts/docker/open-docker-swarm-ports.ps1"
,
"./scripts/docker/remove-docker-key-json.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
]
],
"type"
:
"powershell"
},
{
"type"
:
"windows-shell"
,
"scripts"
:
[
"./scripts/uac-enable.bat"
,
"./scripts/set-winrm-automatic.bat"
,
"./scripts/compact.bat"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_docker_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
"type"
:
"windows-shell"
}
],
"variables"
:
{
"source_path"
:
"path-to.vmx"
}
}
windows_10_insider.json
View file @
8f416c79
{
"builders"
:
[
{
"type"
:
"vmware-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
false
,
"boot_wait"
:
"6m"
,
"boot_command"
:
""
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"2h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"windows9-64"
,
"boot_wait"
:
"6m"
,
"communicator"
:
"winrm"
,
"disk_size"
:
"{{user `disk_size`}}"
,
"vnc_port_min"
:
5900
,
"vnc_port_max"
:
5980
,
"version"
:
11
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
"./floppy/WindowsPowershell.lnk"
,
...
...
@@ -29,30 +16,32 @@
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"vmx_remove_ethernet_interfaces"
:
true
,
"guest_os_type"
:
"windows9-64"
,
"headless"
:
false
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"type"
:
"vmware-iso"
,
"version"
:
11
,
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
}
},
{
"type"
:
"virtualbox-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
false
,
"boot_wait"
:
"6m"
,
"boot_command"
:
""
,
"winrm_username"
:
"vagrant"
,
"vmx_remove_ethernet_interfaces"
:
true
,
"vnc_port_max"
:
5980
,
"vnc_port_min"
:
5900
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"2h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"Windows10_64"
,
"guest_additions_mode"
:
"disable"
,
"winrm_username"
:
"vagrant"
},
{
"boot_command"
:
""
,
"boot_wait"
:
"6m"
,
"communicator"
:
"winrm"
,
"disk_size"
:
"{{user `disk_size`}}"
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
...
...
@@ -65,6 +54,14 @@
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"guest_additions_mode"
:
"disable"
,
"guest_os_type"
:
"Windows10_64"
,
"headless"
:
false
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"type"
:
"virtualbox-iso"
,
"vboxmanage"
:
[
[
"modifyvm"
,
...
...
@@ -78,21 +75,18 @@
"--cpus"
,
"2"
]
]
],
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"2h"
,
"winrm_username"
:
"vagrant"
},
{
"type"
:
"hyperv-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"boot_wait"
:
"0s"
,
"guest_additions_mode"
:
"disable"
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"2h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"communicator"
:
"winrm"
,
"cpu"
:
2
,
"disk_size"
:
"{{user `disk_size`}}"
,
"enable_secure_boot"
:
true
,
"enable_virtualization_extensions"
:
true
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
"./floppy/WindowsPowershell.lnk"
,
...
...
@@ -104,66 +98,73 @@
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"guest_additions_mode"
:
"disable"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"ram_size"
:
2048
,
"cpu"
:
2
,
"switch_name"
:
"{{user `hyperv_switchname`}}"
,
"enable_secure_boot"
:
true
,
"enable_virtualization_extensions"
:
true
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"switch_name"
:
"{{user `hyperv_switchname`}}"
,
"type"
:
"hyperv-iso"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"2h"
,
"winrm_username"
:
"vagrant"
}
],
"post-processors"
:
[
{
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_insider_{{.Provider}}.box"
,
"type"
:
"vagrant"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
}
],
"provisioners"
:
[
{
"type"
:
"windows-shell"
,
"remote_path"
:
"/tmp/script.bat"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"remote_path"
:
"/tmp/script.bat"
,
"scripts"
:
[
"./scripts/vm-guest-tools.bat"
,
"./scripts/enable-rdp.bat"
,
"./scripts/enable-uac.bat"
]
],
"type"
:
"windows-shell"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/debloat-windows.ps1"
]
],
"type"
:
"powershell"
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/set-powerplan.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
]
],
"type"
:
"powershell"
},
{
"type"
:
"windows-shell"
,
"remote_path"
:
"/tmp/script.bat"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"remote_path"
:
"/tmp/script.bat"
,
"scripts"
:
[
"./scripts/pin-powershell.bat"
,
"./scripts/compile-dotnet-assemblies.bat"
,
"./scripts/set-winrm-automatic.bat"
,
"./scripts/compact.bat"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_10_insider_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_10.template"
"type"
:
"windows-shell"
}
],
"variables"
:
{
"manually_download_iso_from"
:
"https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced"
,
"iso_url"
:
"https://software-download.microsoft.com/pr/Windows10_InsiderPreview_EnterpriseVL_x64_en-us_16251.iso"
,
"iso_checksum_type"
:
"sha256"
,
"iso_checksum"
:
"CA0715B5646FBD18376F9A370BB1A2DF8A94DDB3F1BF107843C357E7DAD417FF"
,
"autounattend"
:
"./answer_files/10_insider/Autounattend.xml"
,
"disk_size"
:
"61440"
"disk_size"
:
"61440"
,
"iso_checksum"
:
"CA0715B5646FBD18376F9A370BB1A2DF8A94DDB3F1BF107843C357E7DAD417FF"
,
"iso_checksum_type"
:
"sha256"
,
"iso_url"
:
"https://software-download.microsoft.com/pr/Windows10_InsiderPreview_EnterpriseVL_x64_en-us_16251.iso"
,
"manually_download_iso_from"
:
"https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced"
}
}
windows_2008_r2.json
View file @
8f416c79
{
"builders"
:
[
{
"type"
:
"vmware-iso"
,
"iso_url"
:
"http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"iso_checksum_type"
:
"md5"
,
"iso_checksum"
:
"4263be2cf3c59177c45085c0a7bc6ca5"
,
"headless"
:
true
,
"boot_wait"
:
"2m"
,
"ssh_username"
:
"vagrant"
,
"ssh_password"
:
"vagrant"
,
"ssh_wait_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"windows7srv-64"
,
"tools_upload_flavor"
:
"windows"
,
"disk_size"
:
131072
,
"vnc_port_min"
:
5900
,
"vnc_port_max"
:
5980
,
"floppy_files"
:
[
"./answer_files/2008_r2/Autounattend.xml"
,
"./scripts/dis-updates.ps1"
,
...
...
@@ -23,27 +10,30 @@
"./scripts/win-updates.ps1"
,
"./scripts/openssh.ps1"
],
"vmx_remove_ethernet_interfaces"
:
true
,
"guest_os_type"
:
"windows7srv-64"
,
"headless"
:
true
,
"iso_checksum"
:
"4263be2cf3c59177c45085c0a7bc6ca5"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
"ssh_wait_timeout"
:
"6h"
,
"tools_upload_flavor"
:
"windows"
,
"type"
:
"vmware-iso"
,
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
}
},
"vmx_remove_ethernet_interfaces"
:
true
,
"vnc_port_max"
:
5980
,
"vnc_port_min"
:
5900
},
{
"type"
:
"virtualbox-iso"
,
"iso_url"
:
"http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"iso_checksum_type"
:
"md5"
,
"iso_checksum"
:
"4263be2cf3c59177c45085c0a7bc6ca5"
,
"headless"
:
false
,
"boot_wait"
:
"2m"
,
"ssh_username"
:
"vagrant"
,
"ssh_password"
:
"vagrant"
,
"ssh_wait_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"Windows2008_64"
,
"disk_size"
:
131072
,
"floppy_files"
:
[
"./answer_files/2008_r2/Autounattend.xml"
,
...
...
@@ -52,6 +42,16 @@
"./scripts/win-updates.ps1"
,
"./scripts/openssh.ps1"
],
"guest_os_type"
:
"Windows2008_64"
,