-
Notifications
You must be signed in to change notification settings - Fork 33
/
bitcrazeVM_createVM.json
86 lines (86 loc) · 3.11 KB
/
bitcrazeVM_createVM.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
{
"builders": [
{
"boot_command": [
"<esc><esc><esc><esc>e<wait>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"<del><del><del><del><del><del><del><del>",
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/\"<enter><wait>",
"initrd /casper/initrd<enter><wait>",
"boot<enter>",
"<enter><f10><wait>"
],
"boot_wait": "4s",
"memory": "2048",
"cpus": "2",
"disk_size": "40000",
"format": "ova",
"guest_additions_mode": "disable",
"guest_os_type": "Ubuntu_64",
"hard_drive_interface": "sata",
"http_directory": "http",
"iso_checksum": "sha256:a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd",
"iso_url": "https://releases.ubuntu.com/22.04/ubuntu-22.04.3-live-server-amd64.iso",
"shutdown_command": "echo {{user `password`}} | sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_username": "{{user `user`}}",
"ssh_timeout": "1h",
"ssh_handshake_attempts": 420,
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--audio", "pulse"],
["modifyvm", "{{.Name}}", "--audiocodec", "ad1980"],
["modifyvm", "{{.Name}}", "--usb", "on"],
["modifyvm", "{{.Name}}", "--usb-xhci", "on"],
["modifyvm", "{{.Name}}", "--vrde", "off"],
["modifyvm", "{{.Name}}", "--nictype1", "virtio"],
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
["modifyvm", "{{.Name}}", "--vram", "64"],
["modifyvm", "{{.Name}}", "--graphicscontroller", "vmsvga"],
["modifyvm", "{{.Name}}", "--mouse", "usbtablet"],
["modifyvm", "{{.Name}}", "--nestedpaging", "off"],
["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"],
[
"storageattach",
"{{.Name}}",
"--storagectl",
"SATA Controller",
"--port",
"0",
"--nonrotational",
"on",
"--discard",
"on"
]
],
"vboxmanage_post": [
[
"modifyhd",
"output-virtualbox-iso/{{.Name}}.vdi",
"--compact"
]
],
"vm_name": "{{user `vm-name`}}"
}
],
"variables": {
"password": "crazyflie",
"user": "bitcraze",
"vm-name": "BitcrazeVM"
}
}