-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathvirtualbox.json
80 lines (79 loc) · 2.03 KB
/
virtualbox.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
{
"builders": [
{
"boot_command": [
"gentoo-nofb",
"<enter>",
"<wait10>",
"<enter>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"passwd {{user `username`}}",
"<enter>",
"<wait>",
"{{user `password`}}",
"<enter>",
"<wait>",
"{{user `password`}}",
"<enter>",
"<wait>",
"sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config",
"<enter>",
"<wait>",
"echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config",
"<enter>",
"<wait>",
"/etc/init.d/sshd start",
"<enter>",
"<wait>"
],
"boot_wait": "5s",
"disk_size": 60000,
"guest_additions_mode": "disable",
"guest_os_type": "Gentoo_64",
"headless": false,
"iso_checksum": "1fe353fec7142a551348ba3aa1b42dcf73df8ad815340f7da30239357f8d6b2fa4a5e2db8075efde9b3c28fcf16b62d5f8045cfb9c57fa0bda55821fe5390d44",
"iso_checksum_type": "sha512",
"iso_url": "http://distfiles.gentoo.org/releases/amd64/autobuilds/{{user `stage3`}}/install-amd64-minimal-{{user `stage3`}}.iso",
"shutdown_command": "shutdown -hP now",
"ssh_password": "{{user `password`}}",
"ssh_username": "{{user `username`}}",
"ssh_wait_timeout": "20s",
"type": "virtualbox-iso",
"vm_name": "Gentoo"
}
],
"description": "Faithful Stage 3 Gentoo Installation (VirtualBox)",
"post-processors": [
{
"output": "gentoo-amd64-stage3-virtualbox.box",
"type": "vagrant"
}
],
"provisioners": [
{
"destination": "/tmp",
"source": "scripts",
"type": "file"
},
{
"environment_vars": [
"STAGE3={{user `stage3`}}",
"VM_TYPE=virtualbox",
"SCRIPTS=/tmp"
],
"scripts": [
"provision.sh"
],
"type": "shell"
}
],
"variables": {
"password": "packer",
"stage3": "20150702",
"username": "root"
}
}