I'm attempting to build a template on a Centos 7 XEN 4.10 hypervisor but keep encountering issues with Qemu. The build errors with the following error message. I've attached the packer config I'm using if there's anything I should change.
==> qemu: Starting VM, booting from CD-ROM
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu --version output: QEMU emulator version 2.10.2
2019/04/03 14:04:41 packer: Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu version: 2.10.2
qemu: view the screen of the VM, connect via VNC without a password to
qemu: The VM will be run headless, without a GUI. If you want to
qemu: view the screen of the VM, connect via VNC without a password to
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu Builder has no floppy files, not attaching a floppy.
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Executing /usr/lib64/xen/bin/qemu-system-i386: []string{"-vnc", "
127.0.0.1:0", "-name", "ol7-app-template", "-drive", "file=/var/lib/xen/ol7-app-template/ol7-app-template,if=virtio,cache=writeback,discard=ignore,format=raw", "-boot", "once=d", "-m", "2048M", "-machine", "type=xenfv,accel=xen", "-netdev", "user,id=user.0,hostfwd=tcp::2226-:22", "-device", "rtl8139,netdev=user.0", "-cdrom", "/home/rchewni/ol7_trimble/iso/ol-7.6_x86-64.iso"}
==> qemu: Overriding defaults Qemu arguments with QemuArgs...
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Started Qemu. Pid: 6457
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu stderr: failed to get HVM_PARAM_IOREQ_PFN
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu stderr: qemu-system-i386: failed to get ioreq server info: error 22 handle=0x55814d3e5ef0
2019/04/03 14:04:41 packer: 2019/04/03 14:04:41 Qemu stderr: qemu-system-i386: xen hardware virtual machine initialisation failed
2019/04/03 14:04:41 ui error: ==> qemu: Error launching VM: Qemu failed to start. Please run with PACKER_LOG=1 to get more info.
==> qemu: Error launching VM: Qemu failed to start. Please run with PACKER_LOG=1 to get more info.