This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxpcc-vm.json
109 lines (109 loc) · 2.84 KB
/
xpcc-vm.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
{
"variables": {
"headless": "",
"auto_upgrade": "",
"iso_url": "http://ftp.halifax.rwth-aachen.de/ubuntu-releases/trusty/ubuntu-14.04.4-server-amd64.iso",
"iso_checksum": "3ffb7a3690ce9a07ac4a4d1b829f990681f7e47d"
},
"builders": [
{
"vm_name": "xpcc-vm-14.04",
"type": "virtualbox-iso",
"http_directory": "http",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "sha1",
"guest_os_type": "Ubuntu_64",
"virtualbox_version_file": ".vbox_version",
"ssh_username": "rca",
"ssh_password": "rca",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"headless": "{{ user `headless` }}",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz auto",
" console-setup/ask_detect=false",
" console-setup/layoutcode=us",
" console-setup/modelcode=pc105",
" debconf/frontend=noninteractive",
" debian-installer=en_US",
" fb=false",
" initrd=/install/initrd.gz",
" kbd-chooser/method=us",
" keyboard-configuration/layout=USA",
" keyboard-configuration/variant=USA",
" locale=en_US",
" netcfg/get_domain=vm",
" netcfg/get_hostname=vagrant",
" noapic" ,
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" -- ",
"<enter>"
],
"shutdown_command": "echo 'rca'|sudo -S shutdown -P now",
"disk_size": 10140,
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/base.sh",
"script/vagrant.sh",
"script/sshd.sh"
]
},
{
"type": "file",
"source": "http/40-openocd.rules",
"destination": "~/40-openocd.rules"
},{
"type": "file",
"source": "http/busblaster-ktlink.cfg",
"destination": "~/busblaster-ktlink.cfg"
},{
"type": "file",
"source": "http/gitconfig",
"destination": "~/.gitconfig"
},{
"type": "file",
"source": "http/rcarc",
"destination": "~/.rcarc"
},
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/vmtools.sh",
"script/xpcc.sh",
"script/xpcc_files.sh"
]
},
{
"type": "shell",
"execute_command": "bash '{{.Path}}'",
"scripts": [
"script/zsh.sh"
]
},
{
"type": "shell",
"execute_command": "echo 'rca' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/cleanup.sh",
"script/zerodisk.sh"
]
}],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"vagrantfile_template": "tpl/vagrantfile-xpcc.tpl",
"output": "box/xpcc-vm.box"
}]
}