Unverified Commit 5f0c9384 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Make disk_size, disk_type_id and vhv customizable

parent f077eaa8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{ {
"vm_name":"WindowsServer2016Docker", "vm_name":"WindowsServer2016Docker",
"type": "hyperv-iso", "type": "hyperv-iso",
"disk_size": 41440, "disk_size": "{{user `disk_size`}}",
"boot_wait": "0s", "boot_wait": "0s",
"guest_additions_mode":"disable", "guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}", "iso_url": "{{user `iso_url`}}",
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
"winrm_timeout": "6h", "winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows9srv-64", "guest_os_type": "windows9srv-64",
"disk_size": 61440, "disk_size": "{{user `disk_size`}}",
"disk_type_id": "{{user `disk_type_id`}}",
"vnc_port_min": 5900, "vnc_port_min": 5900,
"vnc_port_max": 5980, "vnc_port_max": 5980,
"version": 11, "version": 11,
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
"memsize": "2048", "memsize": "2048",
"numvcpus": "2", "numvcpus": "2",
"scsi0.virtualDev": "lsisas1068", "scsi0.virtualDev": "lsisas1068",
"vhv.enable": "FALSE" "vhv.enable": "{{user `vhv_enable`}}"
} }
}, },
{ {
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
"post_shutdown_delay": "10s", "post_shutdown_delay": "10s",
"guest_os_type": "Windows2012_64", "guest_os_type": "Windows2012_64",
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
"disk_size": 61440, "disk_size": "{{user `disk_size`}}",
"floppy_files": [ "floppy_files": [
"{{user `autounattend`}}", "{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk", "./floppy/WindowsPowershell.lnk",
...@@ -172,6 +173,9 @@ ...@@ -172,6 +173,9 @@
], ],
"variables": { "variables": {
"headless": "false", "headless": "false",
"disk_size": "61440",
"disk_type_id": "1",
"vhv_enable": "false",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO", "iso_url": "http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F", "iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{ {
"vm_name":"WindowsServer1709", "vm_name":"WindowsServer1709",
"type": "hyperv-iso", "type": "hyperv-iso",
"disk_size": 41440, "disk_size": "{{user `disk_size`}}",
"boot_wait": "60s", "boot_wait": "60s",
"guest_additions_mode":"disable", "guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}", "iso_url": "{{user `iso_url`}}",
...@@ -45,10 +45,10 @@ ...@@ -45,10 +45,10 @@
"winrm_timeout": "2h", "winrm_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows9srv-64", "guest_os_type": "windows9srv-64",
"disk_size": 61440, "disk_size": "{{user `disk_size`}}",
"version": 11,
"vnc_port_min": 5900, "vnc_port_min": 5900,
"vnc_port_max": 5980, "vnc_port_max": 5980,
"version": 14,
"floppy_files": [ "floppy_files": [
"{{user `autounattend`}}", "{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk", "./floppy/WindowsPowershell.lnk",
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"memsize": "2048", "memsize": "2048",
"numvcpus": "2", "numvcpus": "2",
"scsi0.virtualDev": "lsisas1068", "scsi0.virtualDev": "lsisas1068",
"virtualHW.version": "12" "vhv.enable": "{{user `vhv_enable`}}"
} }
}, },
{ {
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "Windows2012_64", "guest_os_type": "Windows2012_64",
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
"disk_size": 61440, "disk_size": "{{user `disk_size`}}",
"floppy_files": [ "floppy_files": [
"{{user `autounattend`}}", "{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk", "./floppy/WindowsPowershell.lnk",
...@@ -163,6 +163,9 @@ ...@@ -163,6 +163,9 @@
], ],
"variables": { "variables": {
"headless": "false", "headless": "false",
"disk_size": "61440",
"disk_type_id": "1",
"vhv_enable": "false",
"manually_download_iso_from": "https://my.visualstudio.com/downloads?pid=2347", "manually_download_iso_from": "https://my.visualstudio.com/downloads?pid=2347",
"iso_url": "https://software-download.microsoft.com/pr/en_windows_server_version_1709_x64_dvd_100090904.iso", "iso_url": "https://software-download.microsoft.com/pr/en_windows_server_version_1709_x64_dvd_100090904.iso",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment