windows_2012_r2_core.json 2.93 KB
Newer Older
1
{
Joe Fitzgerald's avatar
Joe Fitzgerald committed
2 3 4
  "builders": [
    {
      "boot_wait": "2m",
5
      "communicator": "winrm",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
6 7
      "disk_size": 61440,
      "floppy_files": [
8 9 10
        "{{user `autounattend`}}",
        "./scripts/disable-winrm.ps1",
        "./scripts/enable-winrm.ps1",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
11
        "./scripts/microsoft-updates.bat",
12
        "./scripts/win-updates.ps1"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
13
      ],
14 15 16 17 18 19 20
      "guest_os_type": "windows8srv-64",
      "headless": true,
      "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",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
21 22 23 24 25 26
      "vmx_data": {
        "RemoteDisplay.vnc.enabled": "false",
        "RemoteDisplay.vnc.port": "5900",
        "memsize": "2048",
        "numvcpus": "2",
        "scsi0.virtualDev": "lsisas1068"
27 28 29 30 31 32 33
      },
      "vmx_remove_ethernet_interfaces": true,
      "vnc_port_max": 5980,
      "vnc_port_min": 5900,
      "winrm_password": "vagrant",
      "winrm_timeout": "6h",
      "winrm_username": "vagrant"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
34 35 36
    },
    {
      "boot_wait": "2m",
37
      "communicator": "winrm",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
38 39
      "disk_size": 61440,
      "floppy_files": [
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",
Stefan Scherer's avatar
Stefan Scherer committed
44
        "./scripts/win-updates.ps1"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
45
      ],
46 47 48 49 50 51 52 53
      "guest_additions_mode": "disable",
      "guest_os_type": "Windows2012_64",
      "headless": true,
      "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",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
54 55 56 57 58 59 60 61 62 63 64 65 66
      "vboxmanage": [
        [
          "modifyvm",
          "{{.Name}}",
          "--memory",
          "2048"
        ],
        [
          "modifyvm",
          "{{.Name}}",
          "--cpus",
          "2"
        ]
67 68 69 70 71 72 73 74 75 76 77 78
      ],
      "winrm_password": "vagrant",
      "winrm_timeout": "6h",
      "winrm_username": "vagrant"
    }
  ],
  "post-processors": [
    {
      "keep_input_artifact": false,
      "output": "windows_2012_r2_core_{{.Provider}}.box",
      "type": "vagrant",
      "vagrantfile_template": "vagrantfile-windows_2012_r2.template"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
79 80 81
    }
  ],
  "provisioners": [
82
    {
Joe Fitzgerald's avatar
Joe Fitzgerald committed
83 84
      "scripts": [
        "./scripts/vm-guest-tools.bat",
85
        "./scripts/enable-rdp.bat",
86
        "./scripts/compile-dotnet-assemblies.bat",
87
        "./scripts/disable-auto-logon.bat",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
88
        "./scripts/compact.bat"
89 90
      ],
      "type": "windows-shell"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
91
    }
92 93
  ],
  "variables": {
94
    "autounattend": "./answer_files/2012_r2_core/Autounattend.xml",
95
    "iso_checksum": "5b5e08c490ad16b59b1d9fab0def883a",
96 97
    "iso_checksum_type": "md5",
    "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"
98
  }
99
}
100