summaryrefslogtreecommitdiff
path: root/scripts/packer.json
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2016-03-07 00:00:33 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2016-03-07 00:03:14 +0900
commit7ba48ff801e98f25053b048e834b8b073fe21ad3 (patch)
treef79c21976b2d228ade907706d2aee418480498f0 /scripts/packer.json
parentc3a238ff2000ba4c27c791e66a9a4aaba9576a8f (diff)
downloadvyos-build-7ba48ff801e98f25053b048e834b8b073fe21ad3.tar.gz
vyos-build-7ba48ff801e98f25053b048e834b8b073fe21ad3.zip
Add build scripts for VMware OVF (ref T14)
Diffstat (limited to 'scripts/packer.json')
-rw-r--r--scripts/packer.json33
1 files changed, 33 insertions, 0 deletions
diff --git a/scripts/packer.json b/scripts/packer.json
index 6d48735..e54dc74 100644
--- a/scripts/packer.json
+++ b/scripts/packer.json
@@ -7,6 +7,7 @@
"builders":
[
{
+ "name": "qemu-image",
"type": "qemu",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
@@ -57,6 +58,38 @@
"save<enter><wait5>",
"exit<enter><wait5>"
]
+ },
+ {
+ "name": "vmware-image",
+ "type": "qemu",
+ "iso_url": "{{user `output_directory`}}/qemu/vyos_qemu_image.img",
+ "iso_checksum_type": "none",
+ "output_directory": "{{user `output_directory`}}/vmware",
+ "shutdown_command": "sudo halt -p",
+ "disk_image": true,
+ "disk_size": 4096,
+ "format": "raw",
+ "headless": false,
+ "accelerator": "tcg",
+ "ssh_host_port_min": 2222,
+ "ssh_host_port_max": 2229,
+ "ssh_username": "vyos",
+ "ssh_password": "vyos",
+ "ssh_port": 22,
+ "ssh_wait_timeout": "300s",
+ "vm_name": "vyos_vmware_image.img",
+ "net_device": "virtio-net",
+ "disk_interface": "virtio",
+ "boot_wait": "5s"
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "only": ["vmware-image"],
+ "scripts": [
+ "scripts/packer-scripts/vmware.sh"
+ ]
}
]
}