windows_2012_r2.json 4.12 KB
Newer Older
1
{
Joe Fitzgerald's avatar
Joe Fitzgerald committed
2
  "builders": [
Stu Mace's avatar
Stu Mace committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    {
      "boot_wait": "0m",
      "communicator": "winrm",
      "cpu": 2,
      "disk_size": "{{user `disk_size`}}",
      "enable_secure_boot": true,
      "enable_virtualization_extensions": true,
      "floppy_files": [
        "{{user `autounattend`}}",
        "./scripts/disable-screensaver.ps1",
        "./scripts/disable-winrm.ps1",
        "./scripts/enable-winrm.ps1",
        "./scripts/microsoft-updates.bat",
        "./scripts/unattend.xml",
        "./scripts/sysprep.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`}}",
Stefan Scherer's avatar
Stefan Scherer committed
24
      "ram_size": 2048,
Stu Mace's avatar
Stu Mace committed
25 26 27 28 29 30 31
      "shutdown_command": "a:/sysprep.bat",
      "switch_name": "{{user `hyperv_switchname`}}",
      "type": "hyperv-iso",
      "vm_name": "windows_2012_r2",
      "winrm_password": "vagrant",
      "winrm_timeout": "{{user `winrm_timeout`}}",
      "winrm_username": "vagrant"
Stefan Scherer's avatar
Stefan Scherer committed
32
    },
Joe Fitzgerald's avatar
Joe Fitzgerald committed
33 34
    {
      "boot_wait": "2m",
35
      "communicator": "winrm",
36 37
      "cpus": 2,
      "disk_adapter_type": "lsisas1068",
Stu Mace's avatar
Stu Mace committed
38
      "disk_size": "{{user `disk_size`}}",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
39
      "floppy_files": [
Stefan Scherer's avatar
Stefan Scherer committed
40 41 42
        "{{user `autounattend`}}",
        "./scripts/disable-winrm.ps1",
        "./scripts/enable-winrm.ps1",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
43
        "./scripts/microsoft-updates.bat",
44
        "./scripts/unattend.xml",
Stefan Scherer's avatar
Stefan Scherer committed
45
        "./scripts/win-updates.ps1"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
46
      ],
47
      "guest_os_type": "windows8srv-64",
Stu Mace's avatar
Stu Mace committed
48
      "headless": "{{user `headless`}}",
49 50 51
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_checksum_type": "{{user `iso_checksum_type`}}",
      "iso_url": "{{user `iso_url`}}",
52
      "memory": 2048,
53 54 55 56
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "skip_compaction": true,
      "type": "vmware-iso",
      "vm_name": "windows_2012_r2",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
57 58
      "vmx_data": {
        "RemoteDisplay.vnc.enabled": "false",
59
        "RemoteDisplay.vnc.port": "5900"
60 61 62 63 64
      },
      "vmx_remove_ethernet_interfaces": true,
      "vnc_port_max": 5980,
      "vnc_port_min": 5900,
      "winrm_password": "vagrant",
Stu Mace's avatar
Stu Mace committed
65
      "winrm_timeout": "{{user `winrm_timeout`}}",
66
      "winrm_username": "vagrant"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
67 68 69
    },
    {
      "boot_wait": "2m",
70
      "communicator": "winrm",
71
      "cpus": 2,
Stu Mace's avatar
Stu Mace committed
72
      "disk_size": "{{user `disk_size`}}",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
73
      "floppy_files": [
Stefan Scherer's avatar
Stefan Scherer committed
74 75 76
        "{{user `autounattend`}}",
        "./scripts/disable-winrm.ps1",
        "./scripts/enable-winrm.ps1",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
77
        "./scripts/microsoft-updates.bat",
78
        "./scripts/unattend.xml",
Stefan Scherer's avatar
Stefan Scherer committed
79
        "./scripts/win-updates.ps1"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
80
      ],
81 82
      "guest_additions_mode": "disable",
      "guest_os_type": "Windows2012_64",
Stu Mace's avatar
Stu Mace committed
83
      "headless": "{{user `headless`}}",
84 85 86
      "iso_checksum": "{{user `iso_checksum`}}",
      "iso_checksum_type": "{{user `iso_checksum_type`}}",
      "iso_url": "{{user `iso_url`}}",
87
      "memory": 2048,
88 89 90 91
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "type": "virtualbox-iso",
      "vm_name": "windows_2012_r2",
      "winrm_password": "vagrant",
Stu Mace's avatar
Stu Mace committed
92
      "winrm_timeout": "{{user `winrm_timeout`}}",
93
      "winrm_username": "vagrant"
Stefan Scherer's avatar
Stefan Scherer committed
94
    }
95 96 97 98 99 100 101
  ],
  "post-processors": [
    {
      "keep_input_artifact": false,
      "output": "windows_2012_r2_{{.Provider}}.box",
      "type": "vagrant",
      "vagrantfile_template": "vagrantfile-windows_2012_r2.template"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
102 103 104 105 106 107
    }
  ],
  "provisioners": [
    {
      "scripts": [
        "./scripts/vm-guest-tools.bat",
Brett Porter's avatar
Brett Porter committed
108
        "./scripts/enable-rdp.bat",
109
        "./scripts/compile-dotnet-assemblies.bat",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
110
        "./scripts/compact.bat"
111 112
      ],
      "type": "windows-shell"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
113
    }
Stefan Scherer's avatar
Stefan Scherer committed
114 115
  ],
  "variables": {
116
    "autounattend": "./answer_files/2012_r2/Autounattend.xml",
Stu Mace's avatar
Stu Mace committed
117 118
    "disk_size": "61440",
    "disk_type_id": "1",
Stu's avatar
Stu committed
119
    "headless": "true",
Stu Mace's avatar
Stu Mace committed
120
    "hyperv_switchname": "{{env `hyperv_switchname`}}",
Stefan Scherer's avatar
Stefan Scherer committed
121
    "iso_checksum": "5b5e08c490ad16b59b1d9fab0def883a",
122
    "iso_checksum_type": "md5",
Stu Mace's avatar
Stu Mace committed
123 124
    "iso_url": "http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO",
    "winrm_timeout": "6h"
Stefan Scherer's avatar
Stefan Scherer committed
125
  }
Joe Fitzgerald's avatar
Joe Fitzgerald committed
126
}
127