Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu with AIX only work on 7.2 and higher version #2

Open
hxiaodon opened this issue Sep 5, 2019 · 1 comment
Open

qemu with AIX only work on 7.2 and higher version #2

hxiaodon opened this issue Sep 5, 2019 · 1 comment

Comments

@hxiaodon
Copy link

hxiaodon commented Sep 5, 2019

Hi,zhuowei:
I read your article link and Chris's one link

I could successfully launch a qemu VM per your instructions(AIX 7.2 diagnostics disk). When I try Chris's waylink, I failed at step 5, the only difference between us is the AIX version. Mine is 7.1 while Chris's env is 7.2

Could you give me some suggestion about this?

this is my source AIX

$ prtconf
System Model: IBM,8231-E2D
Machine Serial Number: 06ADA64
Processor Type: PowerPC_POWER7
Processor Implementation Mode: POWER 7
Processor Version: PV_7_Compat
Number Of Processors: 2
Processor Clock Speed: 4228 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 67 soaxp444_PivotalKri
Memory Size: 4096 MB
Good Memory Size: 4096 MB
Platform Firmware level: AL770_126
Firmware Version: IBM,AL770_126
Console Login: enable
Auto Restart: true
Full Core: false
NX Crypto Acceleration: Capable and Enabled
 
Network Information
        Host Name: xxxxxxxxxxx
        IP Address: xxxxxxxxxxx
        Sub Netmask: xxxxxxxxxxx
        Gateway: xxxxxxxxxxx
        Name Server: xxxxxxxxxxx
        Domain Name: xxxxxxxxxxx
 
Paging Space Information
        Total Paging Space: 512MB
        Percent Used: 2%
 
Volume Groups Information
============================================================================== 
Active VGs
============================================================================== 
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            879         148         00..00..00..00..148
============================================================================== 
 
INSTALLED RESOURCE LIST

The following resources are installed on the machine.
+/- = Added or deleted from Resource List.
*   = Diagnostic support not available.
        
  Model Architecture: chrp
  Model Implementation: Multiple Processor, PCI bus
        
+ sys0                                                            System Object
+ sysplanar0                                                      System Planar
* vio0                                                            Virtual I/O Bus
* ent0             U8231.E2D.06ADA64-V67-C4-T1                    Virtual I/O Ethernet Adapter (l-lan)
* vscsi0           U8231.E2D.06ADA64-V67-C2-T1                    Virtual SCSI Client Adapter
* cd0              U8231.E2D.06ADA64-V67-C2-T1-L8200000000000000  Virtual SCSI Optical Served by VIO Server
* hdisk0           U8231.E2D.06ADA64-V67-C2-T1-L8100000000000000  Virtual SCSI Disk Drive
* vsa0             U8231.E2D.06ADA64-V67-C0                       LPAR Virtual Serial Adapter
* vty0             U8231.E2D.06ADA64-V67-C0-L0                    Asynchronous Terminal
+ L2cache0                                                        L2 Cache
+ mem0                                                            Memory
+ proc0                                                           Processor
+ proc4                                                           Processor
$ cat /proc/cpuinfo
cat: cannot open /proc/cpuinfo
$ lparstat -i | grep CPU
Online Virtual CPUs                        : 2
Maximum Virtual CPUs                       : 8
Minimum Virtual CPUs                       : 1
Maximum Physical CPUs in system            : 16
Active Physical CPUs in system             : 16
Active CPUs in Pool                        : 16
Shared Physical CPUs in system             : 16
Physical CPU Percentage                    : 10.00%
Desired Virtual CPUs                       : 2
$ oslevel -s
7100-04-00-0000

this is my qemu error log

Xiaodong-Huos-MacBook-Pro:AIX72 xhuo$ qemu-system-ppc64 -cpu POWER7 -smp 2 -machine pseries -m 4096 -serial mon:stdio \
> -drive file=AIX72.img,if=none,id=drive-virtio-disk0 \
> -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 \
> -cdrom AIX72.iso \
> -prom-env boot-command='boot cdrom: -s verbose'
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
          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 ]
                     00 1000 (D) : 1af4 1004    virtio [ scsi ]
Populating /pci@800000020000000/scsi@2
       SCSI: Looking for devices
          100000000000000 DISK     : "QEMU     QEMU HARDDISK    2.5+"
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: ...   Successfully loaded

AIX 
    StarLED{814}

AIX Version 7.1
Starting NODE#000 physical CPU#008 as logical CPU#001... done.
exec(/etc/init){1,0}

INIT: EXECUTING /sbin/rc.boot 1
exec(/usr/bin/sh,-c,/sbin/rc.boot 1){1310760,1}
exec(/sbin/rc.boot,/sbin/rc.boot,1){1310760,1}
+ PHASE=1
+ + bootinfo -p
exec(/usr/sbin/bootinfo,-p){1376298,1310760}
PLATFORM=chrp
+ [ ! -x /usr/lib/boot/bin/bootinfo_chrp ]
+ [ 1 -eq 1 ]
+ 1> /usr/lib/libc.a
+ init -c unlink /usr/lib/boot/bin/!(*_chrp)
exec(/etc/init,-c,unlink /usr/lib/boot/bin/!(*_chrp)){1376300,1310760}
+ chramfs -t
exec(/usr/sbin/chramfs,-t){1376302,1310760}
+ init -c unlink /usr/sbin/chramfs
+ 1> /dev/null
exec(/etc/init,-c,unlink /usr/sbin/chramfs){1376304,1310760}
+ + bootinfo -t
exec(/usr/sbin/bootinfo,-t){1376306,1310760}
BOOTYPE=3
+ [ 0 -ne 0 ]
+ [ -z 3 ]
+ unset pdev_to_ldev undolt native_netboot_cfg
+ unset disknet_odm_init config_ATM
+ /usr/lib/methods/showled 0x510 DEV CFG 1 START
exec(/usr/lib/methods/showled,0x510,DEV CFG 1 START){1376308,1310760}
+ cfgmgr -f -v
exec(/usr/sbin/cfgmgr,-f,-v){1376310,1310760}
cfgmgr is running in phase 1
----------------
Time: 0	LEDS: 0x538
Invoking top level program -- "/etc/methods/defsys"
exec(/bin/sh,-c,/etc/methods/defsys ){655382,1376310}
exec(/etc/methods/defsys){655382,1376310}
exec(/bin/sh,-c,/usr/lib/methods/define_rspc -n -c sys -s node -t chrp){1441836,655382}
exec(/usr/lib/methods/define_rspc,-n,-c,sys,-s,node,-t,chrp){1441836,655382}
Time: 0	LEDS: 0x539
Return code = 0
***** stdout *****
sys0 

***** stderr *****
MS 1441836 655382 /usr/lib/methods/define_rspc -n -c sys -s node -t chrp
M4 1441836 Defining device: uniquetype=sys/node/chrp parent= connection=
M4 1441836 ..define_dvc()
M4 1441836 ..generate_name()
M4 1441836 Generated name: sys0
M4 1441836 ..create_cudv()
M4 1441836 Adding new CuDv
M4 1441836 Defined device sys0

----------------
Attempting to configure device 'sys0'
Time: 0	LEDS: 0x811
Invoking /usr/lib/methods/cfgsys_chrp -1 -l sys0 
Number of running methods: 1
exec(/bin/sh,-c,/usr/lib/methods/cfgsys_chrp -1 -l sys0){655384,1376310}
exec(/usr/lib/methods/cfgsys_chrp,-1,-l,sys0){655384,1376310}
LED{A20}

WARNING: Unable to stop all CPUs.
Illegal Trap Instruction Interrupt in Kernel
05911ACC            tweqi    r0,0                r0=0
KDB(0)> f
pvthread+002200 STACK:
[05911ACC]init_extint_chrp+0001AC (0000000000000000 [??])
[05910320]config_pal+000060 (??)
[05912E14]config_chrp_pal@AF31_1+000094 (??, ??)
[00626DD0]config_kmod+0000F0 (??, ??, ??)
[00627BD8]sysconfig+0001F8 (??, ??, ??)
[00003938]syscall+000230 ()
[10005038]cfgpal_chrp+0004B8 (??)
[10004828]configure_device+000048 ()
[10001214]make_dvc_available+000034 ()
[100005C4]main+000244 (??, ??, ??)
[10000168]__start+000068 ()
@hxiaodon
Copy link
Author

hxiaodon commented Sep 5, 2019

I found this link
Is it reasonable that only the below AIX could be emulated by qemu or other cloud platform?

  1. AIX 7.1 L5 and above
  2. AIX 7.2 L2 and above

If it does, then I think I don't need to try the AIX lower version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant