windows_2008_r2.json 2.69 KB
Newer Older
1
{
Joe Fitzgerald's avatar
Joe Fitzgerald committed
2
3
4
  "builders": [
    {
      "boot_wait": "2m",
5
6
      "cpus": 2,
      "disk_adapter_type": "lsisas1068",
7
      "disk_size": 131072,
Joe Fitzgerald's avatar
Joe Fitzgerald committed
8
9
      "floppy_files": [
        "./answer_files/2008_r2/Autounattend.xml",
10
        "./scripts/dis-updates.ps1",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
11
12
13
14
        "./scripts/microsoft-updates.bat",
        "./scripts/win-updates.ps1",
        "./scripts/openssh.ps1"
      ],
15
16
17
18
      "guest_os_type": "windows7srv-64",
      "headless": true,
      "iso_checksum": "4263be2cf3c59177c45085c0a7bc6ca5",
      "iso_checksum_type": "md5",
19
      "iso_url": "https://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",
20
      "memory": 2048,
21
22
23
24
25
26
      "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",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
27
28
      "vmx_data": {
        "RemoteDisplay.vnc.enabled": "false",
29
        "RemoteDisplay.vnc.port": "5900"
30
31
32
33
      },
      "vmx_remove_ethernet_interfaces": true,
      "vnc_port_max": 5980,
      "vnc_port_min": 5900
Joe Fitzgerald's avatar
Joe Fitzgerald committed
34
35
36
    },
    {
      "boot_wait": "2m",
37
      "cpus": 2,
38
      "disk_size": 131072,
Joe Fitzgerald's avatar
Joe Fitzgerald committed
39
40
      "floppy_files": [
        "./answer_files/2008_r2/Autounattend.xml",
41
        "./scripts/dis-updates.ps1",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
42
43
        "./scripts/microsoft-updates.bat",
        "./scripts/win-updates.ps1",
Stefan Scherer's avatar
Stefan Scherer committed
44
        "./scripts/openssh.ps1"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
45
      ],
46
47
48
49
      "guest_os_type": "Windows2008_64",
      "headless": false,
      "iso_checksum": "4263be2cf3c59177c45085c0a7bc6ca5",
      "iso_checksum_type": "md5",
50
      "iso_url": "https://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",
51
      "memory": 2048,
52
53
54
55
      "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
      "ssh_password": "vagrant",
      "ssh_username": "vagrant",
      "ssh_wait_timeout": "6h",
56
      "type": "virtualbox-iso"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
57
58
    }
  ],
59
60
61
62
63
64
65
66
  "post-processors": [
    {
      "keep_input_artifact": false,
      "output": "windows_2008_r2_{{.Provider}}.box",
      "type": "vagrant",
      "vagrantfile_template": "vagrantfile-windows_2008_r2.template"
    }
  ],
Joe Fitzgerald's avatar
Joe Fitzgerald committed
67
68
69
  "provisioners": [
    {
      "execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
70
      "remote_path": "/tmp/script.bat",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
71
72
73
74
      "scripts": [
        "./scripts/vm-guest-tools.bat",
        "./scripts/chef.bat",
        "./scripts/vagrant-ssh.bat",
Brett Porter's avatar
Brett Porter committed
75
        "./scripts/enable-rdp.bat",
Joe Fitzgerald's avatar
Joe Fitzgerald committed
76
        "./scripts/compact.bat"
77
78
      ],
      "type": "shell"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
79
80
81
82
    },
    {
      "inline": [
        "rm -rf /tmp/*"
83
84
      ],
      "type": "shell"
Joe Fitzgerald's avatar
Joe Fitzgerald committed
85
86
    }
  ]
Joe Fitzgerald's avatar
Joe Fitzgerald committed
87
}
88