{
  "builders":
  [
    {
      "type": "qemu",
      "accelerator": "xen",
      "headless": true,
      "cpus": 1,
      "machine_type": "xenfv",

      "qemu_binary": "/usr/lib64/xen/bin/qemu-system-i386",
      "qemuargs": [
        [ "-m", "2048M" ],
        [ "-vnc", "127.0.0.1:0"]
      ],
      "disk_interface": "virtio",
      "disk_size": 120000,
      "format": "raw",
      "net_device": "rtl8139",

      "iso_url": "iso/ol-7.6_x86-64.iso",
      "iso_checksum": "1a442770d44329cc4e40515e701bd0f9",
      "iso_checksum_type": "md5",

      "vm_name": "ol7-app-template",
      "output_directory": "/var/lib/xen/ol7-app-template",

      "http_directory": "http",
      "http_port_min": 10082,
      "http_port_max": 10089,

      "ssh_host_port_min": 2222,
      "ssh_host_port_max": 2229,

      "ssh_username": "root",
      "ssh_password": "CHANGEME",
      "ssh_port": 22,
      "ssh_wait_timeout": "1200s",

      "boot_wait": "10s",
      "boot_command": [
        "<up><wait><tab><wait> text inst.gpt inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ebs-app-ol7.cfg<enter><wait>"
      ],

      "shutdown_command": "shutdown -P now"
    }
  ]

}


