-
Notifications
You must be signed in to change notification settings - Fork 11
/
freebsd-10.1-amd64.json
45 lines (42 loc) · 1.7 KB
/
freebsd-10.1-amd64.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"variables": {
"remote_host": "{{env `HOST`}}",
"remote_username": "{{env `USERNAME`}}",
"remote_password": "{{env `PASSWORD`}}",
"http_port_min": "{{env `HTTP_PORT`}}{{env `HTTP_PORT_MIN`}}",
"http_port_max": "{{env `HTTP_PORT`}}{{env `HTTP_PORT_MAX`}}",
"mirror": "http://ftp.freebsd.org/pub/FreeBSD"
},
"builders": [
{
"type": "xenserver-iso",
"remote_host": "{{user `remote_host`}}",
"remote_username": "{{user `remote_username`}}",
"remote_password": "{{user `remote_password`}}",
"http_port_min": "{{user `http_port_min`}}",
"http_port_max": "{{user `http_port_max`}}",
"vm_name": "packer-freebsd-10.1-amd64",
"disk_size": 10240,
"http_directory": "http",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "10000s",
"iso_url": "{{user `mirror`}}/releases/amd64/amd64/ISO-IMAGES/10.1/FreeBSD-10.1-RELEASE-amd64-disc1.iso",
"iso_checksum": "0c3d64ce48c3ef761761d0fea07e1935e296f8c045c249118bc91a7faf053a6b",
"iso_checksum_type": "sha256",
"shutdown_command": "echo 'shutdown -p now' > shutdown.sh; cat 'shutdown.sh' | su -",
"boot_command": [
"<esc><wait>",
"boot -s<wait>",
"<enter><wait>",
"<wait10><wait10><wait10>",
"/bin/sh<enter><wait>",
"mdmfs -s 100m md1 /tmp<enter><wait>",
"mdmfs -s 100m md2 /mnt<enter><wait>",
"dhclient -l /tmp/dhclient.lease.xn0 xn0<enter><wait5>",
"fetch -o /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/freebsd-10.1/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh {{ .Name }}<enter><wait>"
],
"boot_wait": "10s"
}
]
}