-
Notifications
You must be signed in to change notification settings - Fork 15
/
alpinehv.json
60 lines (60 loc) · 2.23 KB
/
alpinehv.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
{
"builders": [
{
"type": "hyperv-iso",
"iso_url": "http://dl-cdn.alpinelinux.org/alpine/v3.6/releases/x86_64/alpine-virt-3.6.2-x86_64.iso",
"iso_checksum": "92c80e151143da155fb99611ed8f0f3672fba4de228a85eb5f53bcb261bf4b0a",
"iso_checksum_type": "sha256",
"disk_size": "512",
"skip_compaction": "true",
"communicator": "ssh",
"ssh_username": "root",
"ssh_password": "alpine",
"http_directory": "http",
"http_port_min": "8080",
"http_port_max": "8080",
"switch_name": "Default Switch",
"boot_wait": "10s",
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up && udhcpc -i eth0<enter><wait10>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers<enter><wait>",
"setup-alpine -f answers<enter><wait5>",
"alpine<enter><wait>",
"alpine<enter><wait>",
"<wait10><wait10><wait10>",
"y<enter>",
"<wait10><wait10><wait10>",
"<wait10><wait10><wait10>",
"rc-service sshd stop<enter>",
"mount /dev/sda3 /mnt<enter>",
"echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config<enter>",
"umount /mnt<enter>",
"eject -s /dev/cdrom<enter>",
"reboot<enter>",
"<wait10><wait10><wait10>",
"root<enter><wait>",
"alpine<enter><wait>",
"apk add hvtools<enter><wait>",
"rc-update add hv_fcopy_daemon default<enter><wait>",
"rc-update add hv_kvp_daemon default<enter><wait>",
"rc-update add hv_vss_daemon default<enter><wait>",
"reboot<enter>"
],
"shutdown_command": "poweroff",
"generation": 1,
"enable_secure_boot": false
}
],
"provisioners": [
{
"type": "file",
"source": "useradd.sh",
"destination": "/tmp/useradd.sh"
},
{
"type": "shell",
"script": "provision.sh"
}
]
}