qemu7模拟安装aix72,详细过程,附带镜像

28 篇文章 4 订阅
27 篇文章 13 订阅

apt install qemu-system uml-utilities bridge-utils xserver-xephyr

root@ubuntu22:~# qemu-system-ppc64 -M help
Supported machines are:
40p IBM RS/6000 7020 (40p)
bamboo bamboo
g3beige Heathrow based PowerMAC
mac99 Mac99 based PowerMAC
mpc8544ds mpc8544ds
none empty machine
pegasos2 Genesi/bPlan Pegasos II
powernv10 IBM PowerNV (Non-Virtualized) POWER10
powernv8 IBM PowerNV (Non-Virtualized) POWER8
powernv IBM PowerNV (Non-Virtualized) POWER9 (alias of powernv9)
powernv9 IBM PowerNV (Non-Virtualized) POWER9
ppce500 generic paravirt e500 platform
pseries-2.1 pSeries Logical Partition (PAPR compliant)
pseries-2.10 pSeries Logical Partition (PAPR compliant)
pseries-2.11 pSeries Logical Partition (PAPR compliant)
pseries-2.12 pSeries Logical Partition (PAPR compliant)
pseries-2.12-sxxm pSeries Logical Partition (PAPR compliant)
pseries-2.2 pSeries Logical Partition (PAPR compliant)
pseries-2.3 pSeries Logical Partition (PAPR compliant)
pseries-2.4 pSeries Logical Partition (PAPR compliant)
pseries-2.5 pSeries Logical Partition (PAPR compliant)
pseries-2.6 pSeries Logical Partition (PAPR compliant)
pseries-2.7 pSeries Logical Partition (PAPR compliant)
pseries-2.8 pSeries Logical Partition (PAPR compliant)
pseries-2.9 pSeries Logical Partition (PAPR compliant)
pseries-3.0 pSeries Logical Partition (PAPR compliant)
pseries-3.1 pSeries Logical Partition (PAPR compliant)
pseries-4.0 pSeries Logical Partition (PAPR compliant)
pseries-4.1 pSeries Logical Partition (PAPR compliant)
pseries-4.2 pSeries Logical Partition (PAPR compliant)
pseries-5.0 pSeries Logical Partition (PAPR compliant)
pseries-5.1 pSeries Logical Partition (PAPR compliant)
pseries-5.2 pSeries Logical Partition (PAPR compliant)
pseries-6.0 pSeries Logical Partition (PAPR compliant)
pseries-6.1 pSeries Logical Partition (PAPR compliant)
pseries-6.2 pSeries Logical Partition (PAPR compliant)
pseries-artful pSeries Logical Partition (PAPR compliant)
pseries-bionic pSeries Logical Partition (PAPR compliant)
pseries-bionic-sxxm pSeries Logical Partition (PAPR compliant)
pseries-cosmic pSeries Logical Partition (PAPR compliant)
pseries-disco pSeries Logical Partition (PAPR compliant)
pseries-eoan pSeries Logical Partition (PAPR compliant)
pseries-focal pSeries Logical Partition (PAPR compliant)
pseries-groovy pSeries Logical Partition (PAPR compliant)
pseries-hirsute pSeries Logical Partition (PAPR compliant)
pseries-impish pSeries Logical Partition (PAPR compliant)
pseries pSeries Logical Partition (PAPR compliant) (alias of pseries-jammy)
pseries-jammy pSeries Logical Partition (PAPR compliant) (default)
pseries-xenial pSeries Logical Partition (PAPR compliant)
pseries-yakkety pSeries Logical Partition (PAPR compliant)
pseries-zesty pSeries Logical Partition (PAPR compliant)
ref405ep ref405ep
sam460ex aCube Sam460ex
taihu taihu
virtex-ml507 Xilinx Virtex ML507 reference design

root@ubuntu22:/qemu# qemu-img create -f raw aix72.img 20G
Formatting ‘aix72.img’, fmt=raw size=21474836480
2.QEMU启动命令
(1)在QEMU下安装AIX7.2系统
root@ubuntu22:/qemu# qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio -drive file=aix,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom aix_7200-04-02-2027_1of2_072020.iso -prom-env “boot-command=boot cdrom:”
镜像版本7.2 TL4
此处显示镜像版本7.2 TL4,根据硬件速度,我这里等待3分钟
在这里插入图片描述
此处按1,没有回显

语言选择
语言选择moren默认苠
选择可以选择1 默认安装 ,这里选择2在这里插入图片描述
在这里插入图片描述
zheli这里选5
选择4
这里选择4,额外的软件
在这里插入图片描述
选择3,安装openssh client在这里插入图片描述
在选择4,将openssh server 安装上
在这里插入图片描述
然后选择6
在这里插入图片描述
选择1,安装kerberos_5在这里插入图片描述
选择2 安装server
在这里插入图片描述
这里可以选择99 返回上一层,或者选择0 安装

在这里插入图片描述
这里选择0 安装在这里插入图片描述确保无误后,回车,开始安装

大概安装2小时30分后
在这里插入图片描述

ctrl + c
这里安装失败,取消,修复引导
在这里插入图片描述
再次执行这个命令
root@ubuntu22:/qemu# qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial 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 aix_7200-04-02-2027_1of2_072020.iso -prom-env “boot-command=boot disk:”

在这里插入图片描述
输入1,不显示 , 回车继续
在这里插入图片描述
回车继续
在这里插入图片描述
选择3 进入修复模式在这里插入图片描述
huiche回车继续
在这里插入图片描述
选择0,继续在这里插入图片描述回车继续
在这里插入图片描述
选择1 继续,进入修复模式
在这里插入图片描述
进入终端后输入3.修复引导问题
cat << EOF > /sbin/helpers/jfs2/fsck64
#!/bin/ksh
exit 0
EOF
在这里插入图片描述
复制可能会出现问题,尽量手敲.

在这里插入图片描述完了重启

(2)从硬盘启动(安装完后首次启动请使用此命令)
root@ubuntu22:/qemu# qemu-system-ppc64 -cpu POWER8 -machine pseries -m 8192 -serial stdio -drive file=hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom aix_7200-04-02-2027_1of2_072020.iso -prom-env “boot-command=boot disk:”

在这里插入图片描述出现报错别慌,这里我等了20分钟
在这里插入图片描述出现termimal 终端选择vt100
在这里插入图片描述选择软件许可,按下回车

在这里插入图片描述
TAP选择到yes, 回车注册许可
在这里插入图片描述选择 Esc+0

在这里插入图片描述
ling另一个许可,Esc+0在这里插入图片描述最后一项,回车
在这里插入图片描述这个地方,要点回车,如果没反应就等一会

在这里插入图片描述

在这里插入图片描述现在我们关机 shutdown -F /Fr
(不建议实验poweroff)

4.宿主机下更改/etc/qemu-ifup文件内容
#! /bin/sh
# Script to bring a network (tap) device for qemu up.
# The idea is to add the tap device to the same bridge
# as we have default routing to.

# in order to be able to find brctl
PATH=$PATH:/sbin:/usr/sbin
ip=$(which ip)

if [ -n "$ip" ]; then
ip link set "$1" up
else
brctl=$(which brctl)
if [ ! "$ip" -o ! "$brctl" ]; then
echo "W: $0: not doing any bridge processing: neither ip nor brctl utility not found" >&2
exit 0
fi
ifconfig "$1" 0.0.0.0 up
fi

switch=$(ip route ls |
awk '/^default / {
for(i=0;i<NF;i++) { if ($i == "dev") { print $(i+1); next; } }
}'
)

switch=br0

# only add the interface to default-route bridge if we
# have such interface (with default route) and if that
# interface is actually a bridge.
# It is possible to have several default routes too
for br in $switch; do
if [ -d /sys/class/net/$br/bridge/. ]; then
if [ -n "$ip" ]; then
ip link set "$1" master "$br"
else
brctl addif $br "$1"
fi
exit # exit with status of the previous command
fi
done

echo "W: $0: no bridge for guest interface found" >&2

在这里插入图片描述修改完上面的文件

root@ubuntu22:/qemu# chmod +x net.sh 
root@ubuntu22:/qemu# ./net.sh 

‘user’ is neither a username nor a numeric uid.
Create: tunctl [-b] [-u owner] [-g group] [-t device-name] [-f tun-clone-device]
Delete: tunctl -d device-name [-f tun-clone-device]

The default tun clone device is /dev/net/tun - some systems use
/dev/misc/net/tun instead

-b will result in brief output (just the device name)
./net.sh: line 3: ifconfig: command not found
./net.sh: line 6: ifconfig: command not found
interface tap0 does not exist!
./net.sh: line 8: ifconfig: command not found
net.ipv4.ip_forward = 1

root@ubuntu22:/qemu# apt install net-tool*
5.net.sh文件内容
#Setup tap and bridge use root 
tunctl -t tap0 -u user
ifconfig tap0 up
brctl addbr br0
brctl setfd br0 0
ifconfig br0 10.0.2.2 netmask 255.255.255.0 broadcast 10.0.2.255 up
brctl addif br0 tap0
ifconfig tap0 0.0.0.0
sysctl net.ipv4.ip_forward=1

6.AIX终端下设置网络
ifconfig en0 10.0.2.10 up
route add 0 10.0.2.2 
chdev -l inet0 -a hostname=AIX7.2
echo "nameserver 8.8.8.8" > /etc/resolv.conf
vi /etc/network.sh

此文件内添加:
#!/bin/ksh
echo "nameserver 8.8.8.8" > /etc/resolv.conf
ifconfig en0 10.0.2.10 up
route add 0 10.0.2.2

chmod +x /etc/network.sh
vi /etc/inittab

此文件内添加:
customnet:2:once:/etc/network.sh 2>&1

7.Xephyr启动命令
Xephyr -screen 1024x768 -ac -query 10.0.2.12 :3

https://www.bilibili.com/video/BV1bL4y1N7gz/?spm_id_from=333.788.recommend_more_video.0&vd_source=b273f9e7824dbf2f559339842bbeaee0

https://pastebin.com/raw/QTCyfc9x

–数据时间

  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要在 QEMU模拟 AIX 操作系统,您需要按照以下步骤进行操作: 1. 首先,您需要下载 QEMU 虚拟化软件并安装。您可以从 QEMU 官方网站(https://www.qemu.org/download/)下载适合您操作系统的版本。 2. 您还需要下载 AIX 操作系统的安装镜像文件。请注意,您需要使用 AIX 操作系统的安装介质来安装 AIX。您可以从 IBM 的官方网站(https://www.ibm.com/support/pages/aix-72-downloads-official-versions)获取 AIX 7.2安装介质。 3. 启动 QEMU 并创建一个新的虚拟机。您需要使用以下命令: ``` qemu-system-ppc -m 2048 -boot d -cdrom /path/to/aix.iso -hda /path/to/hdd-image ``` 在这个命令中,“-m 2048”指定了虚拟机的内存大小(2048MB),“-boot d”指定了从 CD-ROM 启动,而“-cdrom”和“-hda”分别指定了 AIX 安装镜像文件和虚拟机硬盘的镜像文件路径。 4. 按照 AIX 操作系统的安装向导进行安装安装过程可能需要您提供一些配置信息,例如网络配置、用户账户等。 5. 安装完成后,您可以通过启动虚拟机来使用 AIX 操作系统了。您可以使用以下命令启动虚拟机: ``` qemu-system-ppc -m 2048 -hda /path/to/hdd-image ``` 在这个命令中,“-m 2048”指定了虚拟机的内存大小(2048MB),而“-hda”指定了虚拟机硬盘的镜像文件路径。 请注意,模拟 AIX 操作系统需要使用 QEMU 的 PowerPC 架构模拟器,因为 AIX 只能运行在 PowerPC 架构的计算机上。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值