Comment 4 for bug 1674402

Revision history for this message
Ian Wienand (iwienand) wrote :

I haven't had much luck with a local replication of this.

I've applied [1] which seems pretty good, but unfortunately, it seems like qemu doesn't like working with ppc64le binaries and fails with an invalid exception [2]

---
I: Running command: chroot /opt/tmp/dib_build.0e0oTMxc/mnt /debootstrap/debootstrap --second-stage
Invalid instruction
NIP 000000400087115c LR 0000004000849ea4 CTR 000000000000000a XER 0000000000000000 CPU#0
MSR 8000000002806001 HID0 0000000000000000 HF 0000000002806001 idx 0
TB 00769329 3304244275513403
GPR00 00000040008453b8 0000004000843010 000000400089be00 0000004000843070
GPR04 0000000000000000 0000000000000280 0000000000000000 0000000000000000
GPR08 000000000000000a 0000004000843070 0000000000000000 0000000000000000
GPR12 0000004000843070 0000000000000000 0000000000000000 0000000000000000
GPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
GPR28 0000000000000000 00000040008435c0 0000000000000000 0000000000000000
CR 40000002 [ G - - - - - - E ] RES ffffffffffffffff
FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 0000000000000000
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction (core dumped)
---

This might be worth a bug, Mikhail?

This is what I was using and got that far ...

---
DIB_DISTRIBUTION_MIRROR=http://ports.ubuntu.com/ \
  ARCH=ppc64el \
  TMPDIR=/opt/tmp
  DIB_IMAGE_CACHE=/opt/image-cache \
    disk-image-create -x -o test.qcow2 ubuntu-minimal vm
---

I *think* I've got all the qemu bits installed correctly

---
(env) ubuntu@dib-xenial:~/diskimage-builder$ dpkg --list | grep qemu
ii ipxe-qemu 1.0.0+git-20150424.a25a16d-1ubuntu1 all PXE boot firmware - ROM images for qemu
ii qemu-block-extra:amd64 1:2.5+dfsg-5ubuntu10.9 amd64 extra block backend modules for qemu-system and qemu-utils
ii qemu-slof 20151103+dfsg-1ubuntu1 all Slimline Open Firmware -- QEMU PowerPC version
ii qemu-system-common 1:2.5+dfsg-5ubuntu10.9 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-ppc 1:2.5+dfsg-5ubuntu10.9 amd64 QEMU full system emulation binaries (ppc)
ii qemu-user 1:2.5+dfsg-5ubuntu10.9 amd64 QEMU user mode emulation binaries
ii qemu-user-static 1:2.5+dfsg-5ubuntu10.9 amd64 QEMU user mode emulation binaries (static version)
ii qemu-utils 1:2.5+dfsg-5ubuntu10.9 amd64 QEMU utilities
---

[1] https://review.openstack.org/#/c/444588/