Lien :
https://www.programmersought.com/article/18163878814/
https://virtuallyfun.com/wordpress/2019/04/22/installing-aix-on-qemu/
util01@station66:~$ mkdir -p VIRTU/AIX
util01@station66:~$ cd VIRTU/AIX/
util01@station66:~/VIRTU/AIX$
Lien :
https://winworldpc.com/product/aix/51
util01@station66:~/VIRTU/AIX$ wget -c https://dl.winworldpc.com/IBM%20AIX%205.1-3%20\(LCD4_1061_06\)%20\(ISO\)%20\[PPC\]%20Volume%201.7z
util01@station66:~/VIRTU/AIX$ wget -c https://dl.winworldpc.com/IBM%20AIX%205.1-3%20\(LCD4_1061_06\)%20\(ISO\)%20\[PPC\]%20Volume%202.7z
util01@station66:~/VIRTU/AIX$ wget -c https://dl.winworldpc.com/IBM%20AIX%205.1-3%20\(LCD4_1061_06\)%20\(ISO\)%20\[PPC\]%20Volume%203.7z
util01@station66:~/VIRTU/AIX$ wget -c https://dl.winworldpc.com/IBM%20AIX%205.1-3%20\(LCD4_1061_06\)%20\(ISO\)%20\[PPC\]%20Volume%204.7z
util01@station66:~/VIRTU/AIX$ wget -c https://dl.winworldpc.com/IBM%20AIX%205.1-3%20\(LCD4_1061_06\)%20\(ISO\)%20\[PPC\]%20Volume%205.7z
util01@station66:~/VIRTU/AIX$ 7z e IBM\ AIX\ 5.1-3\ \(LCD4_1061_06\)\ \(ISO\)\ \[PPC\]\ Volume\ 1.7z
util01@station66:~/VIRTU/AIX$ 7z e IBM\ AIX\ 5.1-3\ \(LCD4_1061_06\)\ \(ISO\)\ \[PPC\]\ Volume\ 2.7z
util01@station66:~/VIRTU/AIX$ 7z e IBM\ AIX\ 5.1-3\ \(LCD4_1061_06\)\ \(ISO\)\ \[PPC\]\ Volume\ 3.7z
util01@station66:~/VIRTU/AIX$ 7z e IBM\ AIX\ 5.1-3\ \(LCD4_1061_06\)\ \(ISO\)\ \[PPC\]\ Volume\ 4.7z
util01@station66:~/VIRTU/AIX$ 7z e IBM\ AIX\ 5.1-3\ \(LCD4_1061_06\)\ \(ISO\)\ \[PPC\]\ Volume\ 5.7z
util01@station66:~/VIRTU/AIX$ ls -lh *.iso
-rw-rw-r-- 1 util01 util01 612M avril 26 2018 VOLUME1.iso
-rw-rw-r-- 1 util01 util01 614M avril 26 2018 VOLUME2.iso
-rw-rw-r-- 1 util01 util01 602M avril 26 2018 VOLUME3.iso
-rw-rw-r-- 1 util01 util01 560M avril 26 2018 VOLUME4.iso
-rw-rw-r-- 1 util01 util01 641M avril 26 2018 VOLUME5.iso
util01@station66:~/VIRTU/AIX$ git clone --branch 40p-20190406-aix-boots --single-branch https://github.com/artyom-tarasenko/qemu.git
util01@station66:~/VIRTU/AIX$ cd qemu/
util01@station66:~/VIRTU/AIX/qemu$
util01@station66:~/VIRTU/AIX/qemu$ ./configure --target-list=ppc-softmmu --disable-sdl --disable-vnc --disable-gtk --python=python2.7
Ouvrir :
config-host.mak
Chercher et supprimer :
CONFIG_AUDIO_DRIVERS=oss
CONFIG_AUDIO_OSS=m
util01@station66:~/VIRTU/AIX/qemu$ make -j4
util01@station66:~/VIRTU/AIX/qemu$ cd ..
util01@station66:~/VIRTU/AIX$
util01@station66:~/VIRTU/AIX$ wget https://github.com/artyom-tarasenko/openfirmware/releases/download/40p-20190413/q40pofw-serial.rom
util01@station66:~/VIRTU/AIX$ ./qemu/qemu-img create -f qcow2 aix5-hdd.qcow2 16G
Formatting 'aix5-hdd.qcow2', fmt=qcow2 size=17179869184 cluster_size=65536 lazy_refcounts=off refcount_bits=16
util01@station66:~/VIRTU/AIX$ ./qemu/ppc-softmmu/qemu-system-ppc -m 128 -M 40p -bios q40pofw-serial.rom -serial telnet::4441,server -hda aix5-hdd.qcow2 -vga none -nographic -net none -cdrom VOLUME1.iso
QEMU 3.0.92 monitor - type 'help' for more information
(qemu) qemu-system-ppc: -serial telnet::4441,server: info: QEMU waiting for connection on: disconnected:telnet:0.0.0.0:4441,server
Dans un autre terminal :
util01@station66:~$ telnet 192.168.1.12 4441
Trying 192.168.1.12...
Connected to 192.168.1.12.
Escape character is '^]'.
Type 'i' to interrupt stand-init sequence
First stand-init:
Calibrate
...
Nothing there
scsi disk tape
QEMU PReP/40p, Serial #0, 128 MiB memory installed
Open Firmware, built April 13, 2019 09:29:23
Copyright (c) 1995-2000, FirmWorks.
Copyright (c) 2014,2017,2019 Artyom Tarasenko.
Type any key to interrupt automatic startup
Boot device: /pci/ethernet Arguments:
Can't open boot device
ok
ok .partitions cdrom
Soit :
Partition Region Boot Format Size (MB)
1 Primary Yes 0x96 600
2 Primary Yes 0x41 6
ok
ok boot cdrom:2
Soit :
Boot device: /scsi/disk@2:2 Arguments:
Rebooting in the correct mode for this client program ...
Type 'i' to interrupt stand-init sequence
...
Nothing there
scsi disk tape
QEMU PReP/40p, Serial #0, 128 MiB memory installed
Open Firmware, built April 13, 2019 09:29:23
Copyright (c) 1995-2000, FirmWorks.
Copyright (c) 2014,2017,2019 Artyom Tarasenko.
Rebooting with command: boot /pci/scsi@1/disk@2,0:2
Boot device: /pci/scsi@1/disk@2,0:2 Arguments:
Après 1 minutes :
******* Please define the System Console. *******
Type a 1 and press Enter to use this terminal as the
system console.
Pour definir ce terminal comme console systeme, appuyez
sur 1 puis sur Entree.
Taste 1 und anschliessend die Eingabetaste druecken, um
diese Datenstation als Systemkonsole zu verwenden.
Premere il tasto 1 ed Invio per usare questo terminal
come console.
Escriba 1 y pulse Intro para utilizar esta terminal como
consola del sistema.
Escriviu 1 1 i premeu Intro per utilitzar aquest
terminal com a consola del sistema.
Digite um 1 e pressione Enter para utilizar este terminal
como console do sistema.
Soit :
>>> 1 Type 1 and press Enter to have English during install.
2 Entreu 2 i premeu Intro per veure la instal�laci� en catal�.
3 Entrez 3 pour effectuer l'installation en fran�ais.
4 F�r Installation in deutscher Sprache 4 eingeben
und die Eingabetaste dr�cken.
5 Immettere 5 e premere Invio per l'installazione in italiano.
6 Digite 6 e pressione Enter para usar Portugu�s na instala��o.
7 Escriba 7 y pulse Intro para la instalaci�n en espa�ol.
88 Help ?
>>> Choice [1]:
Soit :
Welcome to Base Operating System
Installation and Maintenance
Type the number of your choice and press Enter. Choice is indicated by >>>.
>>> 1 Start Install Now with Default Settings
2 Change/Show Installation Settings and Install
3 Start Maintenance Mode for System Recovery
88 Help ?
99 Previous Menu
>>> Choice [1]:
Soit :
Installation Warning
WARNING: Base Operating System Installation may destroy or
impair recovery of data. Before installing, you should back up
your system.
>>> 1 Continue with Install
88 Help ?
99 Previous Menu
>>> Choice [1]:
Soit :
Installing Base Operating System
If you used the system key to select SERVICE mode,
turn the system key to the NORMAL position any time before the
installation ends.
Please wait...
Approximate Elapsed time
% tasks complete (in minutes)
2 0 Making paging logical volumes.
Filesets processed: 172 of 185
System Installation Time: 29 minutes Tasks Complete: 87%
installp: APPLYING software for:
bos.sysmgt.nim.client 5.1.0.50
. . . . . << Copyright notice for bos.sysmgt >> . . . . . . .
Licensed Materials - Property of IBM
5765E6100
(C) Copyright International Business Machines Corp. 1993, 2003.
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for bos.sysmgt >>. . . .
Installing Base Operating System
If you used the system key to select SERVICE mode,
turn the system key to the NORMAL position any time before the
installation ends.
Please wait...
Approximate Elapsed time
% tasks complete (in minutes)
96 64 Creating boot image.
The MAC address in the EEPROM is invalid
NVRAM
Nothing there
Nothing there
Nothing there
Nothing there
scsi disk tape
QEMU PReP/40p, Serial #0, 128 MiB memory installed
Open Firmware, built April 13, 2019 09:29:23
Copyright (c) 1995-2000, FirmWorks.
Copyright (c) 2014,2017,2019 Artyom Tarasenko.
Type any key to interrupt automatic startup
Boot device: /pci/ethernet Arguments:
Can't open boot device
ok
Puis redémarrage automatique du système :
Licensed Materials - Property of IBM
5765E6100
(C) Copyright International Business Machines Corp. 1985, 2003.
(C) Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989.
(C) Copyright Regents of the University of California 1980, 1982,
1983, 1985, 1986, 1987, 1988, 1989.
(C) Copyright BULL 1993, 2003.
(C) Copyright Digi International Inc. 1988-1993.
(C) Copyright Interactive Systems Corporation 1985, 1991.
(C) Copyright ISQUARE, Inc. 1990.
(C) Copyright Mentat Inc. 1990, 1991.
(C) Copyright Open Software Foundation, Inc. 1989, 1994.
(C) Copyright Sun Microsystems, Inc. 1984, 1985, 1986, 1987, 1988, 1991.
All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
Rebooting . . .
Puis :
RTC
MAC address
The MAC address in the EEPROM is invalid
NVRAM
Nothing there
Nothing there
Nothing there
Nothing there
scsi disk tape
QEMU PReP/40p, Serial #0, 128 MiB memory installed
Open Firmware, built April 13, 2019 09:29:23
Copyright (c) 1995-2000, FirmWorks.
Copyright (c) 2014,2017,2019 Artyom Tarasenko.
Type any key to interrupt automatic startup
Boot device: /pci/ethernet Arguments:
Can't open boot device
ok
ok boot disk
Soit :
Boot device: /scsi/disk@0,0:1 Arguments:
Puis :
Saving Base Customize Data to boot disk
Starting the sync daemon
Starting the error daemon
System initialization completed.
Starting Multi-user Initialization
Performing auto-varyon of Volume Groups
Activating all paging spaces
0517-075 swapon: Paging device /dev/hd6 is already active.
/dev/rhd1 (/home): ** Unmounted cleanly - Check suppressed
/dev/rhd10opt (/opt): ** Unmounted cleanly - Check suppressed
Performing all automatic mounts
Multi-user initialization completed
Checking for srcmstr active...complete
Starting tcpip daemons:
0513-059 The syslogd Subsystem has been started. Subsystem PID is 4168.
0513-059 The sendmail Subsystem has been started. Subsystem PID is 4398.
0513-059 The portmap Subsystem has been started. Subsystem PID is 4648.
0513-059 The inetd Subsystem has been started. Subsystem PID is 4902.
0513-059 The snmpd Subsystem has been started. Subsystem PID is 5160.
0513-059 The dpid2 Subsystem has been started. Subsystem PID is 5418.
0513-059 The hostmibd Subsystem has been started. Subsystem PID is 5676.
Finished starting tcpip daemons.
Starting NFS services:
0513-059 The biod Subsystem has been started. Subsystem PID is 6712.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 6974.
Completed NFS services.
Set Terminal Type
The terminal is not properly initialized. Please enter a terminal type
and press Enter. Some terminal types are not supported in
non-English languages.
ibm3101 tvi912 vt330
ibm3151 tvi920 vt340
ibm3161 tvi925 wyse30
ibm3162 tvi950 wyse50
ibm3163 vs100 wyse60
ibm3164 vt100 wyse100
ibmpc vt320 wyse350
lft sun
+-----------------------Messages------------------------
| If the next screen is unreadable, press Break (Ctrl-c)
88 Help ? | to return to this screen.
99 Exit |
|
>>> Choice []:
Soit :
>>> Choice []: vt100
Software License Agreements
Move cursor to desired item and press Enter.
Show Installed License Agreements
Accept License Agreements
Soit :
Accept License Agreements
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
ACCEPT Installed License Agreements yes +
COMMAND STATUS
Command: OK stdout: no stderr: no
Before command completion, additional instructions may appear below.
Installation Assistant
Move cursor to desired item and press Enter.
Set Date and Time
Set root Password
Set Installation Device
Configure Network Communications
Manage System Storage and Paging Space (rootvg)
Manage Language Environment
Create Users
Define Printers
Import Existing Volume Groups
Install Software Applications
Back Up the System
Using SMIT (information only)
Tasks Completed - Exit to Login
F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
Soit :
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2000.
Console login:
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2000.
Console login: root
*******************************************************************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
#
# uname -a
AIX localhost 1 5 000000004C00
# shutdown -Fh
SHUTDOWN PROGRAM
Sun May 9 14:33:50 CDT 2021
Wait for '....Halt completed....' before stopping.
Error reporting has stopped.
Process accounting has stopped.
nfs_clean: Stopping NFS/NIS Daemons
0513-004 The Subsystem or Group, nfsd, is currently inoperative.
0513-044 The biod Subsystem was requested to stop.
0513-044 The rpc.lockd Subsystem was requested to stop.
0513-004 The Subsystem or Group, rpc.statd, is currently inoperative.
0513-004 The Subsystem or Group, rpc.mountd, is currently inoperative.
0513-004 The Subsystem or Group, ypserv, is currently inoperative.
0513-004 The Subsystem or Group, ypbind, is currently inoperative.
0513-004 The Subsystem or Group, yppasswdd, is currently inoperative.
0513-004 The Subsystem or Group, ypupdated, is currently inoperative.
Stopping TCP/IP daemons: ndpd-host lpd routed gated sendmail inetd named timed rwhod iptrace dpid2 snmpd rshd rlogind telnetd syslogd
Removing TCP/IP lock files
0513-044 The hostmibd Subsystem was requested to stop.
0513-044 The qdaemon Subsystem was requested to stop.
0513-044 The writesrv Subsystem was requested to stop.
0513-044 The ctrmc Subsystem was requested to stop.
0513-044 The ctcas Subsystem was requested to stop.
0513-044 The IBM.ERRM Subsystem was requested to stop.
0513-044 The IBM.CSMAgentRM Subsystem was requested to stop.
0513-044 The IBM.AuditRM Subsystem was requested to stop.
All processes currently running will now be killed...
Unmounting the file systems...
Bringing down network interfaces: lo0
util01@station66:~/VIRTU/AIX$ ./qemu/ppc-softmmu/qemu-system-ppc -m 128 -M 40p -bios q40pofw-serial.rom -serial telnet::4441,server -hda aix5-hdd.qcow2 -vga none -nographic -net none -cdrom VOLUME1.iso
QEMU 3.0.92 monitor - type 'help' for more information
(qemu) qemu-system-ppc: -serial telnet::4441,server: info: QEMU waiting for connection on: disconnected:telnet:0.0.0.0:4441,server
qemu-system-ppc: terminating on signal 2
networkinterface=`ip addr show | awk '/inet.*brd/{print $NF; exit}'`
sudo ip addr flush dev $networkinterface
sudo ip link set $networkinterface up
sudo ip link add name br0 type bridge
sudo ip link set $networkinterface master br0
sudo ip addr add 192.168.1.3/24 dev br0
sudo ip link set br0 up
sudo ip route add default via 192.168.1.1
sudo ip tuntap add tap0 mode tap
sudo ip link set tap0 up
sudo ip link set tap0 master br0
sudo brctl show
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf >/dev/null
util01@station66:~/VIRTU/AIX$ sudo ./qemu/ppc-softmmu/qemu-system-ppc -m 192 -M 40p -bios q40pofw-serial.rom -serial telnet::4441,server -hda aix5-hdd.qcow2 -vga none -nographic -L pc-bios -cdrom VOLUME1.iso -net nic -net tap,ifname=tap0,script=no
QEMU 3.0.92 monitor - type 'help' for more information
(qemu) qemu-system-ppc: -serial telnet::4441,server: info: QEMU waiting for connection on: disconnected:telnet:0.0.0.0:4441,server
util01@station66:~$ telnet 192.168.1.3 4441
Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^]'.
Type 'i' to interrupt stand-init sequence
First stand-init:
Calibrate
CIF buffers
...
Copyright (c) 1995-2000, FirmWorks.
Copyright (c) 2014,2017,2019 Artyom Tarasenko.
Type any key to interrupt automatic startup
5
ok
ok boot disk
Attendre quelques minutes :
Saving Base Customize Data to boot disk
Starting the sync daemon
Starting the error daemon
System initialization completed.
Starting Multi-user Initialization
Performing auto-varyon of Volume Groups
Activating all paging spaces
0517-075 swapon: Paging device /dev/hd6 is already active.
/dev/rhd1 (/home): ** Unmounted cleanly - Check suppressed
/dev/rhd10opt (/opt): ** Unmounted cleanly - Check suppressed
Performing all automatic mounts
Multi-user initialization completed
Checking for srcmstr active...complete
Starting tcpip daemons:
0513-059 The syslogd Subsystem has been started. Subsystem PID is 4410.
0513-059 The sendmail Subsystem has been started. Subsystem PID is 4652.
0513-059 The portmap Subsystem has been started. Subsystem PID is 3380.
0513-059 The inetd Subsystem has been started. Subsystem PID is 4902.
0513-059 The snmpd Subsystem has been started. Subsystem PID is 5160.
0513-059 The dpid2 Subsystem has been started. Subsystem PID is 5418.
0513-059 The hostmibd Subsystem has been started. Subsystem PID is 5676.
Finished starting tcpip daemons.
Starting NFS services:
0513-059 The biod Subsystem has been started. Subsystem PID is 6712.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 6974.
Completed NFS services.
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2000.
Console login: 0513-059 The ctrmc Subsystem has been started. Subsystem PID is 8518.
Appuyer sur la touche [Entrée] :
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2000.
Console login:
Console login: root
*******************************************************************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Last login: Sun May 9 14:31:33 CDT 2021 on /dev/tty0
#