hello.

have you got any reference that this should work?

Is your computer where you run packer a physical machine? its a VM?

i notice the qemu binary you using is i386 but the dvd iso is 64 bits,
should that work?

Can you try with a 32bit iso and then with both qemu-image and a iso 64
bits?

If you share some hints how to setup a new machine so this can be run, I
can have a look at it.


thanks
alvaro

On Wed, Apr 3, 2019 at 11:20 PM Ryan Chewning <[email protected]>
wrote:

> Hi,
>
> 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: vnc://127.0.0.1:5957
>     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.
>     qemu: vnc://127.0.0.1:5957
> 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.
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/17e10cc5-f23e-4776-8c82-d07cc9cd6810%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/17e10cc5-f23e-4776-8c82-d07cc9cd6810%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ewzHDH1HQ%3DjxJgZ4%3D4hNcQv0_%3DobdZuYe_p4zfQ%2Bjd%3DFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to