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

网友投稿 1441 2022-09-20

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

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

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

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. 安装过程:

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:'

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

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:跟哥一起学python(3)- 理解“变量”
下一篇:AIX中查看进程内存使用
相关文章

 发表评论

暂时没有评论,来抢沙发吧~