windows_2016.json 2.68 KB
Newer Older
1 2 3 4
{
  "builders": [
    {
      "type": "vmware-iso",
5
      "communicator": "winrm",
Stefan Scherer's avatar
Stefan Scherer committed
6
      "iso_url": "https://aka.ms/tp4/serveriso",
7
      "iso_checksum_type": "md5",
Stefan Scherer's avatar
Stefan Scherer committed
8
      "iso_checksum": "935ba77651210bd1bd71a114c92b0caa",
Stefan Scherer's avatar
Stefan Scherer committed
9
      "headless": false,
10 11
      "boot_wait": "6m",
      "boot_command": [ "<tab><enter>" ],
12 13 14
      "winrm_username": "vagrant",
      "winrm_password": "vagrant",
      "winrm_timeout": "6h",
15 16 17 18 19 20
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "guest_os_type": "windows8srv-64",
      "disk_size": 61440,
      "vnc_port_min": 5900,
      "vnc_port_max": 5980,
      "floppy_files": [
Stefan Scherer's avatar
Stefan Scherer committed
21
        "./answer_files/2016/Autounattend.xml",
22
        "./scripts/disable-winrm.ps1",
23
        "./scripts/enable-winrm.ps1",
24
        "./scripts/microsoft-updates.bat",
25
        "./scripts/win-updates.ps1"
26 27 28 29 30 31
      ],
      "vmx_data": {
        "RemoteDisplay.vnc.enabled": "false",
        "RemoteDisplay.vnc.port": "5900",
        "memsize": "2048",
        "numvcpus": "2",
32 33 34
        "scsi0.virtualDev": "lsisas1068",
        "vhv.enable": "TRUE",
        "hypervisor.cpuid.v0": "FALSE"
35 36 37 38
      }
    },
    {
      "type": "virtualbox-iso",
39
      "communicator": "winrm",
Stefan Scherer's avatar
Stefan Scherer committed
40
      "iso_url": "https://aka.ms/tp4/serveriso",
41
      "iso_checksum_type": "md5",
Stefan Scherer's avatar
Stefan Scherer committed
42
      "iso_checksum": "935ba77651210bd1bd71a114c92b0caa",
Stefan Scherer's avatar
Stefan Scherer committed
43
      "headless": false,
44 45 46 47 48
      "boot_wait": "6m",
      "boot_command": [ "<tab><enter>" ],
      "winrm_username": "vagrant",
      "winrm_password": "vagrant",
      "winrm_timeout": "6h",
49 50
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "guest_os_type": "Windows2012_64",
51
      "guest_additions_mode": "disable",
52 53 54
      "disk_size": 61440,
      "floppy_files": [
        "./answer_files/2016/Autounattend.xml",
55 56
        "./scripts/disable-winrm.ps1",
        "./scripts/2016/enable-winrm.ps1",
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
        "./scripts/microsoft-updates.bat",
        "./scripts/win-updates.ps1",
        "./scripts/oracle-cert.cer"
      ],
      "vboxmanage": [
        [
          "modifyvm",
          "{{.Name}}",
          "--memory",
          "2048"
        ],
        [
          "modifyvm",
          "{{.Name}}",
          "--cpus",
          "2"
        ]
      ]
    }
  ],
  "provisioners": [
    {
79 80
      "type": "windows-shell",
      "execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
81 82
      "scripts": [
        "./scripts/vm-guest-tools.bat",
83
        "./scripts/enable-rdp.bat"
Michael Scherer's avatar
Michael Scherer committed
84
        "./scripts/uac-enable.bat"
85 86 87 88 89 90 91 92 93 94 95 96
      ]
    }
  ],
  "post-processors": [
    {
      "type": "vagrant",
      "keep_input_artifact": false,
      "output": "windows_2016_{{.Provider}}.box",
      "vagrantfile_template": "vagrantfile-windows_2016.template"
    }
  ]
}