[Qemu-devel] R: issue related to boot aix 7.1 when I try to use qemu ppc64

2019-09-12 Thread Muolo Vincenzo (S.I.)
Hi David Thanks also for for answer 

Now I try to install the qemu (4.1) into DEB Server  ( qemu_4.1-1+b1_ppc64.deb  
 )  however I had the following error :

apt install /home/vmuolo/qemu_4.1-1+b1_ppc64.deb
dpkg: error in processing the archive /home/vmuolo/qemu_4.1-1+b1_ppc64.deb 
(--unpack):

  the package architecture (ppc64) does not match that of the system (amd64)

Now this means that the "old" package qemu  ppc is valid only for 32 bits or no 
(?)

Again  if I try to install this package into our DEB Server ( amd64) second 
your opinion  how can  to proceed ? 

For i.e. must I download the latest source files and try to compile the " new"  
qemu ?  This can be an right approach or no ?

Have you some further  suggestion to give me so I  can to go ahead ?

Thanks in advance 

Vincenzo


root@vkvm-acmm:/home/vmuolo# ls
Documenti  Immagini  Musicaqemu_4.1-1+b1_ppc64.deb  Scrivania
ftpModelli   Pubblici  ScaricatiVideo
root@vkvm-acmm:/home/vmuolo# dpkg --print-architecture
amd64
root@vkvm-acmm:/home/vmuolo# apt install /home/vmuolo/qemu_4.1-1+b1_ppc64.deb
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Nota, viene selezionato "qemu:ppc64" al posto di 
"/home/vmuolo/qemu_4.1-1+b1_ppc64.deb"
I seguenti pacchetti saranno RIMOSSI:
  qemu
I seguenti pacchetti NUOVI saranno installati:
  qemu:ppc64
0 aggiornati, 1 installati, 1 da rimuovere e 0 non aggiornati.
È necessario scaricare 0 B/70,1 kB di archivi.
Dopo quest'operazione, verranno occupati 2.048 B di spazio su disco.
Continuare? [S/n] s
Scaricamento di:1 /home/vmuolo/qemu_4.1-1+b1_ppc64.deb qemu ppc64 1:4.1-1+b1 
[70,1 kB]
dpkg: errore nell'elaborare l'archivio /home/vmuolo/qemu_4.1-1+b1_ppc64.deb 
(--unpack):
 l'architettura del pacchetto (ppc64) non corrisponde a quella del sistema 
(amd64)
Si sono verificati degli errori nell'elaborazione:
 /home/vmuolo/qemu_4.1-1+b1_ppc64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@vkvm-acmm:/home/vmuolo#


-Messaggio originale-
Da: da...@gibson.dropbear.id.au  
Inviato: giovedì 12 settembre 2019 02:07
A: Muolo Vincenzo (S.I.) 
Cc: qemu-...@nongnu.org; qemu-devel@nongnu.org
Oggetto: Re: issue related to boot aix 7.1 when I try to use qemu ppc64

On Wed, Sep 11, 2019 at 03:58:14PM +, Muolo Vincenzo (S.I.) wrote:
> Hi to all
> 
> I try to use ( into VM debian 10  running into VMWARE virtualization 
> environment ) qemu ppc64  version to simulate an AIX 7.1 TL04  OS
> 
> 
> root@vkvm-acmm:/AIX# qemu-system-ppc64  -version QEMU emulator version 
> 3.1.0 (Debian 1:3.1+dfsg-8+deb10u2) Copyright (c) 2003-2018 Fabrice 
> Bellard and the QEMU Project developers
> 
> 
> I run the following commands into my linux DEB but after few time i have to 
> following issue ( trap  interrupt kernel see to end .. ):
> 
> qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio 
> -drive file=disk.img,if=none,id=drive-virtio-disk0 -device 
> virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 
> -cdrom aix.iso -prom-env "boot-command=dev / 0 0 s\" 
> ibm,aix-diagnostics\" property boot cdrom:\ppc\chrp\bootfile.exe -s 
> verbose" -net nic -net tap -display vnc=:1
> W: /etc/qemu-ifup: no bridge for guest interface found

Running AIX under qemu really isn't tested or supported as yet.  We're just 
starting to look at this these days, but you'd want to get the very latest 
upstream qemu (4.1) and even then there could well be remaining problems.

> 
> 
> SLOF 
> **
> QEMU Starting
> Build Date = Dec 28 2018 13:55:34
> FW Version = buildd@ release 20180702
> Press "s" to enter Open Firmware.
> 
> Populating /vdevice methods
> Populating /vdevice/vty@7100
> Populating /vdevice/nvram@7101
> Populating /vdevice/l-lan@7102
> Populating /vdevice/v-scsi@7103
>SCSI: Looking for devices
>   8200 CD-ROM   : "QEMU QEMU CD-ROM  2.5+"
> Populating /pci@8002000
>  00  (D) : 1234 qemu vga
>  00 0800 (D) : 1033 0194serial bus [ usb-xhci ]
>  00 1000 (D) : 1af4 1004virtio [ scsi ]
> Populating /pci@8002000/scsi@2
>SCSI: Looking for devices
>   100 DISK : "QEMU QEMU HARDDISK2.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

[Qemu-devel] issue related to boot aix 7.1 when I try to use qemu ppc64

2019-09-11 Thread Muolo Vincenzo (S.I.)
Hi to all

I try to use ( into VM debian 10  running into VMWARE virtualization 
environment ) qemu ppc64  version to simulate an AIX 7.1 TL04  OS


root@vkvm-acmm:/AIX# qemu-system-ppc64  -version
QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-8+deb10u2)
Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers


I run the following commands into my linux DEB but after few time i have to 
following issue ( trap  interrupt kernel see to end .. ):

qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio -drive 
file=disk.img,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi 
-device scsi-hd,drive=drive-virtio-disk0 -cdrom aix.iso -prom-env 
"boot-command=dev / 0 0 s\" ibm,aix-diagnostics\" property boot 
cdrom:\ppc\chrp\bootfile.exe -s verbose" -net nic -net tap -display vnc=:1
W: /etc/qemu-ifup: no bridge for guest interface found


SLOF **
QEMU Starting
Build Date = Dec 28 2018 13:55:34
FW Version = buildd@ release 20180702
Press "s" to enter Open Firmware.

Populating /vdevice methods
Populating /vdevice/vty@7100
Populating /vdevice/nvram@7101
Populating /vdevice/l-lan@7102
Populating /vdevice/v-scsi@7103
   SCSI: Looking for devices
  8200 CD-ROM   : "QEMU QEMU CD-ROM  2.5+"
Populating /pci@8002000
 00  (D) : 1234 qemu vga
 00 0800 (D) : 1033 0194serial bus [ usb-xhci ]
 00 1000 (D) : 1af4 1004virtio [ scsi ]
Populating /pci@8002000/scsi@2
   SCSI: Looking for devices
  100 DISK : "QEMU QEMU HARDDISK2.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@7103/disk@8200:\ppc\chrp\bootfile.exe ...   
Successfully loaded
AIX
StarLED{814}

AIX Version 7.1
exec(/etc/init){1,0}

INIT: EXECUTING /sbin/rc.boot 1
exec(/usr/bin/sh,-c,/sbin/rc.boot 1){1179684,1}
exec(/sbin/rc.boot,/sbin/rc.boot,1){1179684,1}
+ PHASE=1
+ + bootinfo -p
exec(/usr/sbin/bootinfo,-p){1245222,1179684}
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)){1245224,1179684}
+ chramfs -t
exec(/usr/sbin/chramfs,-t){1245226,1179684}
+ init -c unlink /usr/sbin/chramfs
+ 1> /dev/null
exec(/etc/init,-c,unlink /usr/sbin/chramfs){1245228,1179684}
+ + bootinfo -t
exec(/usr/sbin/bootinfo,-t){1245230,1179684}
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){1245232,1179684}
+ cfgmgr -f -v
exec(/usr/sbin/cfgmgr,-f,-v){1245234,1179684}
cfgmgr is running in phase 1

Time: 0 LEDS: 0x538
Invoking top level program -- "/etc/methods/defsys"
exec(/bin/sh,-c,/etc/methods/defsys ){1310760,1245234}
exec(/etc/methods/defsys){1310760,1245234}
exec(/bin/sh,-c,/usr/lib/methods/define_rspc -n -c sys -s node -t 
chrp){1376298,1310760}
exec(/usr/lib/methods/define_rspc,-n,-c,sys,-s,node,-t,chrp){1376298,1310760}
Time: 0 LEDS: 0x539
Return code = 0
* stdout *
sys0

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


Attempting to configure device 'sys0'
Time: 0 LEDS: 0x811
Invoking /usr/lib/methods/cfgsys_chrp -1 -l sys0
exec(/bin/sh,-c,/usr/lib/methods/cfgsys_chrp -1 -l sys0){1310762,1245234}
Number of running methods: 1
exec(/usr/lib/methods/cfgsys_chrp,-1,-l,sys0){1310762,1245234}
LED{A20}
Illegal Trap Instruction Interrupt in Kernel
05911ACCtweqir0,0r0=0
KDB(0)>

So how can I to proceed ? I must to try to use an different  kernel AIX ( 7.2 ? 
) or it's possibile to fix this one ?

I'll  available to take a dump and so on 

Awaiting an feedback

Thanks to all

Vincenzo