-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsolaris10.json
executable file
·117 lines (117 loc) · 3.36 KB
/
solaris10.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"variables": {
"iso_location": "/Users/edwin/Downloads",
"harddisk_size": "40960",
"vm_name": "solaris10"
},
"provisioners": [
{
"execute_command": "chmod +x {{ .Path }}; export {{.Vars}} && cat {{.Path}} | pfexec su ",
"type": "shell",
"scripts": [
"scripts/solaris/postinstall.sh",
"scripts/solaris/puppet.sh",
"scripts/solaris/update-terminfo.sh",
"scripts/solaris/cleanup.sh"
]
}
],
"post-processors": [{
"compression_level": 9,
"output": "build/{{user `vm_name`}}-x86_64.box",
"type": "vagrant",
"only": ["virtualbox-iso"]
},
{
"compression_level": 9,
"output": "build/{{user `vm_name`}}-x86_64-{{.Provider}}.box",
"type": "vagrant",
"only": ["vmware-iso"]
}],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"e<wait>",
"e<wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>",
"- nowin install -B install_media=cdrom<enter><wait>",
"b<wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `harddisk_size`}}",
"floppy_files": [
"floppy/sysidcfg",
"floppy/rules",
"floppy/rules.ok",
"floppy/begin",
"floppy/profile",
"floppy/finish"
],
"guest_os_type": "Solaris_64",
"iso_checksum": "c27e5fe2531826192f110e2d9f1f5d73015edac6",
"iso_checksum_type": "sha1",
"iso_url": "{{user `iso_location`}}/sol-10-u11-ga-x86-dvd.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo '/usr/sbin/poweroff' > shutdown.sh; pfexec bash -l shutdown.sh",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"output_directory": "packer-solaris10-virtualbox",
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-solaris-10",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1536"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
},
{
"type": "vmware-iso",
"boot_command": [
"e<wait>",
"e<wait>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><wait>",
"- nowin install -B install_media=cdrom<enter><wait>",
"b<wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `harddisk_size`}}",
"floppy_files": [
"floppy/sysidcfg",
"floppy/rules",
"floppy/rules.ok",
"floppy/begin",
"floppy/profile",
"floppy/finish"
],
"guest_os_type": "solaris10-64",
"iso_checksum": "c27e5fe2531826192f110e2d9f1f5d73015edac6",
"iso_checksum_type": "sha1",
"iso_url": "{{user `iso_location`}}/sol-10-u11-ga-x86-dvd.iso",
"output_directory": "packer-solaris10-vmware",
"shutdown_command": "pfexec /usr/sbin/init 5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "solaris",
"vm_name": "packer-solaris10",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "1536",
"numvcpus": "1"
}
}
]
}