qemu ppc64 4.0 boot AIX5.1 hung

Bug #1853083 reported by wzis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

When boot AIX5.1 from cdrom device, qemu hung there, no further info is displayed and cpu consumption is high.

Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote :

Did this ever worked?

Revision history for this message
wzis (wzis) wrote :

No, this happened when I tried to install the AIX5.1 on qemu ppc64.

Revision history for this message
Thomas Huth (th-huth) wrote :

No, I don't think that these old AIX versions ever worked in QEMU. You might be more or less lucky with later versions, though, see e.g.:

 https://bugs.launchpad.net/qemu/+bug/1829682

Anyway, when reporting bugs, please always provide the command line that you used to start QEMU, otherwise bugs are hardly reproducible.

Changed in qemu:
status: New → Incomplete
Revision history for this message
wzis (wzis) wrote :

What I don't understand is ppc64 for IBM machine emulation, but qemu ppc64 can't support AIX most of the time, but can support Linux on power very well.

Revision history for this message
wzis (wzis) wrote :

I'm running this to start the AIX5.1 installation on qemu:
#!/bin/bash
qemu-system-ppc64 -cpu POWER8 -machine pseries -m 2048 -serial mon:stdio -hda aix-hdd.qcow2 -cdrom /Download/AIX5.1/VOLUME1.iso -prom-env boot-command='boot cdrom: -s verbose'

Revision history for this message
wzis (wzis) wrote :

and it got:
[root@192 emu]# ./aix51
VNC server running on ::1:5900
qemu-system-ppc64: warning: TCG doesn't support requested feature, cap-cfpc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, cap-sbbc=workaround
qemu-system-ppc64: warning: TCG doesn't support requested feature, cap-ibs=workaround

SLOF **********************************************************************
QEMU Starting
 Build Date = Jul 3 2019 12:26:14
 FW Version = git-ba1ab360eebe6338
 Press "s" to enter Open Firmware.

Populating /vdevice methods
Populating /vdevice/vty@71000000
Populating /vdevice/nvram@71000001
Populating /vdevice/l-lan@71000002
Populating /vdevice/v-scsi@71000003
       SCSI: Looking for devices
          8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
          8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
Populating /pci@800000020000000
                     00 0000 (D) : 1234 1111 qemu vga
                     00 0800 (D) : 1033 0194 serial bus [ usb-xhci ]
Installing QEMU fb

Scanning USB
  XHCI: Initializing
    USB Keyboard
    USB mouse
No console specified using screen & keyboard

  Welcome to Open Firmware

  Copyright (c) 2004, 2017 IBM Corporation All rights reserved.
  This program and the accompanying materials are made available
  under the terms of the BSD License available at
  http://www.opensource.org/licenses/bsd-license.php

Trying to load: -s verbose from: /vdevice/v-scsi@71000003/disk@8200000000000000: ...

and just hung there, took lots of CPU time, never proceed further.

Revision history for this message
Thomas Huth (th-huth) wrote :

AIX 5.1 is quite a bit older than POWER8, so I don't think that it will run with this processor anymore. You could try "power5" or "970fx" as CPU (maybe even the "40p" machine instead of "pseries"), but I guess it won't make a big difference - the QEMU pseries machine has been written for later operating systems in mind, there was never a big effort to get older operating systems running with it.

Revision history for this message
wzis (wzis) wrote :

Tried POWER5, but got
[root@192 emu]# ./aix51
qemu-system-ppc64: unable to find CPU model 'POWER5'

Revision history for this message
wzis (wzis) wrote :

[root@192 emu]# qemu-system-ppc64 --version
QEMU emulator version 4.1.0
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
[root@192 emu]#

Revision history for this message
wzis (wzis) wrote :

With
qemu-system-ppc64 -cpu power5+ -machine pseries -m 2048 -serial mon:stdio -hda aix-hdd.qcow2 -cdrom /Download/AIX5.1/VOLUME1.iso -prom-env boot-command='boot cdrom: -s verbose'

got:
VNC server running on ::1:5900

SLOF **********************************************************************
QEMU Starting
 Build Date = Jul 3 2019 12:26:14
 FW Version = git-ba1ab360eebe6338
 Press "s" to enter Open Firmware.

Populating /vdevice methods
Populating /vdevice/vty@71000000
Populating /vdevice/nvram@71000001
Populating /vdevice/l-lan@71000002
Populating /vdevice/v-scsi@71000003
       SCSI: Looking for devices
          8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
          8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
Populating /pci@800000020000000
                     00 0000 (D) : 1234 1111 qemu vga
                     00 0800 (D) : 1033 0194 serial bus [ usb-xhci ]
Installing QEMU fb

Scanning USB
  XHCI: Initializing

( 700 ) Program Exception [ fff ]

    R0 .. R7 R8 .. R15 R16 .. R23 R24 .. R31
000000007dbf36f4 000000007e4594a8 0000000000000000 000000007dc06400
000000007e669dc0 0000000000000100 0000000000000000 000000007dc0ae70
000000007dc10700 000000007e45c000 000000007e466010 000000007e459488
000000007e45c000 000000007dc50700 000000007dc0b040 0000200081021000
0000000000000000 000000007e436000 0000000000008000 0000200081020040
0000000000000fff 0000000000000000 000000000000f003 0000200081020070
000000007e466008 0000000000000000 0000000000000006 0000000000000002
0000000001180000 0000000000000000 000000007e66a050 000000007e459488

    CR / XER LR / CTR SRR0 / SRR1 DAR / DSISR
        80000408 000000007dbf3650 000000007dbf366c 0000000000000000
0000000000000000 0000000000000000 8000000000080000 00000000

1 >

Revision history for this message
Greg Kurz (gkurz) wrote :

Answering comment #4:
> What I don't understand is ppc64 for IBM machine emulation, but qemu ppc64
> can't support AIX most of the time, but can support Linux on power very well.

QEMU doesn't implement the full PAPR specification. Historically we've only
added the bits that are essential for a Linux guest to be happy.

AIX 5.1 is fairly old and neither IBM, nor the QEMU community invested time
and effort in getting it to work under QEMU. AIX being a closed source OS
certainly didn't help things to go forward.

Things have changed recently though. IBM added virtio drivers and some
workarounds to AIX, as well some fixes to QEMU. Latest AIX 7.2 releases
should now be able to run under QEMU with a POWER8 or newer CPU model.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for QEMU because there has been no activity for 60 days.]

Changed in qemu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.