UOS20(统信UOS)qemu5.01安装AIX7.2.4

注:以下过程均在家目录下进行:(/home/wang) 将aix7.2镜像文件拷贝至家目录下,创建虚拟磁盘也在家目录下 image.png

1. 创建虚拟磁盘

$ qemu-img create -f qcow2 AIX72.img 100G

Formatting 'AIX72.img', fmt=qcow2 size=107374182400 cluster_size=65536 
lazy_refcounts=off refcount_bits=16

$ qemu-img info AIX72.img

image: AIX72.img
file format: qcow2
virtual size: 100G (107374182400 bytes)
disk size: 196K
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false

2. 安装过程:

从cdrom启动安装系统 image.png


 sudo qemu-system-ppc64 -cpu POWER9 -machine pseries -m 4096 -serial mon:stdio -drive file=/home/wang/AIX72.img -cdrom /home/wang/AIX_v7.2.3_1.iso -prom-env boot-command='boot cdrom: -s verbose'
******* Please define the System Console. *******
Type a 1 and press Enter to use this terminal as the
system console.
...etc...
>>>  1 Type 1 and press Enter to have English during install.
...etc...
>>> Choice [1]:1
Error Warning<< Note: You can ignore this warning message...
An invalid disk (42-T1-01) was specified in the
location field of the data file.
To reboot the system, press reset.
>>> 1   Continue with Install
...etc...
>>> Choice [1]: 1
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
4 Make Additional Disks Available
5 Select Storage Adapters
88  Help ?
99  Previous Menu
>>> Choice [1]:2
System Backup Installation and Settings
Either type 0 and press Enter to install with the current settings, or type the
number of the setting you want to change and press Enter.
Setting:                                 Current Choice(s):
1 Disk(s) where you want to install ...... hdisk0
Use Maps............................. No
2 Shrink File Systems..................... No
3 Import User Volume Groups............... No
4 Recover Devices......................... No
>>> 0 Install with the settings listed above.
+-----------------------------------------------------
88  Help ?         |  WARNING: Base Operating System Installation will
99  Previous Menu  |    destroy or impair recovery of ALL data on the
|    destination disk hdisk0.
>>> Choice [0]: 0

安装过程相当漫长,根据机器性能(本帖测试机X230 安装时间大概2个小时) 安装结束后直接按1,重启系统开始引导过程

3. 进入维护模式修改引导

在"Welcome to Base Operating System" 菜单时,选择 3 (Start Maintenance Mode) --> 1 (Access a Root VG) --> 0 Continue --> 1 (VG on hdisk0) --> 1 (Access this VG and start a shell) 在维护状态,修改fsck64文件,修复引导问题

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
4 Make Additional Disks Available
5 Select Storage Adapters
88  Help ?
99  Previous Menu
>>> Choice [1]:3
Maintenance
Type the number of your choice and press Enter.
>>> 1 Access a Root Volume Group
2 Copy a System Dump to Removable Media
3 Access Advanced Maintenance Functions
4 Erase Disks
5 Configure Network Disks (iSCSI)
6 Select Storage Adapters
7 Install from a System Backup
>>> Choice [1]: 1
Warning:
If you choose to access a root volume group, you will not be able to return
to the Base Operating System Installation menus without rebooting.
Type the number of your choice and press Enter.
0 Continue
88  Help ?
>>> 99  Previous Menu
>>> Choice [99]:0
Access a Root Volume Group
Type the number for a volume group to display the logical volume information
and press Enter.
1)   Volume Group 000000000000000000000166344f68a5 contains these disks:
hdisk0 102400        00-10
Choice: 1
Volume Group Information
------------------------------------------------------------------------------
Volume Group ID 000000000000000000000166344f68a5 includes the following
logical volumes:
hd5         hd6         hd8         hd4         hd2      hd9var
hd3         hd1     hd10opt   hd11admin   lg_dumplv    livedump
------------------------------------------------------------------------------
Type the number of your choice and press Enter.
1) Access this Volume Group and start a shell
2) Access this Volume Group and start a shell before mounting filesystems
99) Previous Menu
Choice [99]: 1
Importing Volume Group...
...etc...
Filesystems mounted for maintenance work.

# cd /sbin/helpers/jfs2 # >fsck64 # vi fsck64

#!/bin/ksh
exit 0
:w!

# cat fsck64

#!/bin/ksh
exit 0

# sync ; sync # halt

4. 从硬盘启动系统

sudo qemu-system-ppc64 -cpu POWER9 -machine pseries -m 4096 -serial mon:stdio \
-drive file=/home/wang/AIX72.img,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi \
-device scsi-hd,drive=drive-virtio-disk0 -cdrom /home/wang/AIX_v7.2.3_1.iso\
-prom-env boot-command='boot disk:'

image.png image.png 输入vt100 接受许可信息后,设置时间和root密码后登入系统

整个首次从硬盘启动过程也相当漫长,请耐心等待!

至此,aix7.2系统安装完成,后续进行网络配置(桥接网络),启动快捷方式创建3.png image.png image.png