{ "variables": { "iso_url": "{{env `ISO_IMAGE`}}", "iso_checksum": "{{env `ISO_MD5_SUM`}}", "output_directory": "{{env `PACKER_BUILD_DIR`}}" }, "builders": [ { "name": "qemu-image", "type": "qemu", "iso_url": "{{user `iso_url`}}", "iso_checksum": "{{user `iso_checksum`}}", "iso_checksum_type": "md5", "output_directory": "{{user `output_directory`}}/qemu", "shutdown_command": "sudo halt -p", "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_qemu_image.img", "net_device": "virtio-net", "disk_interface": "virtio", "boot_wait": "5s", "boot_command": [ "", "vyos", "vyos", "install image", "", "", "", "Yes", "", "", "", "vyos", "vyos", "", "reboot", "Yes", "vyos", "vyos", "configure", "set interface ethernet eth0 address dhcp", "set service ssh", "commit", "save", "delete interface ethernet eth0 hw-id", "commit", "save", "exit" ] }, { "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" ] } ] }