This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
machines.json
108 lines (108 loc) · 3.82 KB
/
machines.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
{
"description": "This template creates virtual machines containing basic Arch Linux installation that can be further worked upon",
"variables": {
"archversion": null,
"pathtoiso": null,
"isochecksum": null,
"isochecksumtype": null,
"cpus": "2",
"ramsize": "1024",
"vramsize": "16",
"vramsizebytes": "16384",
"disksize": "65536",
"outdir": "{{env `PACKER_OUTDIR`}}",
"atlastoken": "{{env `ATLAS_TOKEN`}}",
"shutdowncmd": "sudo systemctl poweroff"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "ArchLinux_64",
"output_directory": "{{user `outdir`}}/pristine/virtualbox",
"guest_additions_mode": "disable",
"iso_url": "{{user `pathtoiso`}}/{{user `archversion`}}/archlinux-{{user `archversion`}}-dual.iso",
"vm_name": "archlinux-{{user `archversion`}}-base",
"iso_checksum": "{{user `isochecksum`}}",
"iso_checksum_type": "{{user `isochecksumtype`}}",
"ssh_username": "root",
"http_directory": "support",
"headless": true,
"boot_command": [
"<enter><wait10><wait10>",
"curl {{.HTTPIP}}:{{.HTTPPort}}/bootstrap.sh | bash<enter>"
],
"shutdown_command": "{{user `shutdowncmd`}}",
"disk_size": "{{user `disksize`}}",
"hard_drive_interface": "sata",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--vram", "{{user `vramsize`}}" ],
[ "modifyvm", "{{.Name}}", "--memory", "{{user `ramsize`}}" ],
[ "modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}" ],
[ "modifyvm", "{{.Name}}", "--rtcuseutc", "on" ]
]
},
{
"type": "parallels-iso",
"guest_os_type": "linux-2.6",
"output_directory": "{{user `outdir`}}/pristine/parallels",
"parallels_tools_mode": "disable",
"iso_url": "{{user `pathtoiso`}}/{{user `archversion`}}/archlinux-{{user `archversion`}}-dual.iso",
"vm_name": "archlinux-{{user `archversion`}}-base",
"iso_checksum": "{{user `isochecksum`}}",
"iso_checksum_type": "{{user `isochecksumtype`}}",
"ssh_username": "root",
"http_directory": "support",
"boot_command": [
"<enter><wait10><wait10>",
"curl {{.HTTPIP}}:{{.HTTPPort}}/bootstrap.sh | bash<enter>"
],
"shutdown_command": "{{user `shutdowncmd`}}",
"disk_size": "{{user `disksize`}}",
"hard_drive_interface": "sata",
"prlctl": [
[ "set", "{{.Name}}", "--videosize", "{{user `vramsize`}}" ],
[ "set", "{{.Name}}", "--memsize", "{{user `ramsize`}}" ],
[ "set", "{{.Name}}", "--cpus", "{{user `cpus`}}" ]
]
},
{
"type": "vmware-iso",
"guest_os_type": "other3xlinux-64",
"output_directory": "{{user `outdir`}}/pristine/vmware",
"iso_url": "{{user `pathtoiso`}}/{{user `archversion`}}/archlinux-{{user `archversion`}}-dual.iso",
"vm_name": "archlinux-{{user `archversion`}}-base",
"vmdk_name": "archlinux-{{user `archversion`}}-base",
"iso_checksum": "{{user `isochecksum`}}",
"iso_checksum_type": "{{user `isochecksumtype`}}",
"ssh_username": "root",
"http_directory": "support",
"headless": true,
"boot_command": [
"<enter><wait10><wait10>",
"curl {{.HTTPIP}}:{{.HTTPPort}}/bootstrap.sh | bash<enter>"
],
"shutdown_command": "{{user `shutdowncmd`}}",
"disk_size": "{{user `disksize`}}",
"disk_type_id": 0,
"vmx_data": {
"svga.vramSize": "{{user `vramsizebytes`}}",
"memsize": "{{user `ramsize`}}",
"numvcpus": "{{user `cpus`}}"
}
}
],
"provisioners": [
{
"type": "file",
"source": "support/shared",
"destination": "/tmp/shared"
},
{
"type": "shell",
"script": "support/sys-install.sh",
"environment_vars": [
"ARCH_VERSION={{user `archversion`}}"
]
}
]
}