【用QEMU搭建你的AIX X86测试环境】
用QEMU搭建你的AIX X86测试环境欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导
用QEMU搭建你的AIX X86测试环境
- 选择搭载QEMU的操作系统
- 报错处理 ERROR: Cannot find Ninja
- 报错处理 /usr/bin/env: ‘python’: No such file or directory
- 报错处理 re2c-2.2
- 报错处理 ERROR: glib-2.56 gthread-2.0 is required to compile QEMU
- 错误处理 ../meson.build:411:2: ERROR: Dependency "pixman-1" not found, tried pkgconfig
- 错误处理 ./build-aux/depcomp: line 772: exec: g++: not found
- 错误处理 error: Libtool library used but ‘LIBTOOL’ is undefined
- QEMU AIX 虚拟机网路设置
- QEMU AIX 虚拟机后台运行
- 挂载光盘
- 加载 ftp
选择搭载QEMU的操作系统
X86上安装AIX,一开始要安装QUME。我是在linux上安装QEMU,linux我试过redhat,centos,还试过“薄荷” 但是 废了好多时间没装成。要踩的坑很多,主要是安装组件的时候报错太多,一度准备放弃了。后来试过ubantu以后,发现真是太好用了,爽翻了。
报错处理 ERROR: Cannot find Ninja
报错处理 /usr/bin/env: ‘python’: No such file or directory
报错处理 re2c-2.2
报错处理 ERROR: glib-2.56 gthread-2.0 is required to compile QEMU
错误处理 …/meson.build:411:2: ERROR: Dependency “pixman-1” not found, tried pkgconfig
错误处理 ./build-aux/depcomp: line 772: exec: g++: not found
错误处理 error: Libtool library used but ‘LIBTOOL’ is undefined
QEMU AIX 虚拟机网路设置
QEMU AIX 虚拟机后台运行
挂载光盘
# mount -v cdrfs -o ro /dev/cd0 /mnt
# cd /mnt
# ls
.Version OSLEVEL RPMS image.data ppc usr
7200-05 README.aix bosinst.data installp root
加载 ftp
# startsrc -t ftp
0513-124 The ftp subserver has been started.
# lssrc -t ftp
Service Command Description Status
ftp /usr/sbin/ftpd ftpd active
git clone git://git.qemu.org/qemu.git
cd qemu/
mkdir build
cd build/
…/configure
apt install make
…/configure
apt install ninja-build
ninja --version
…/configure
cc
apt install gcc clang pentium-builder tcc
…/configure
glib-2.56
glib
yum install gtk2-devel
apt-get install build-essential zlib1g-dev pkg-config libglib2.0-dev
…/configure
pixman-1
pixman
apt-get install libmout-dev
apt-get install libmount-dev
…/configure
apt-get install libpixman-1-dev
…/configure
make
su
qemu-system-ppc64 --version
ifconfig ens33 192.168.23.208 up
ip tuntap add tap0 mode tap
ip link set tap0 up
echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp
ip route add 192.168.23.209 dev tap0
arp -Ds 192.168.23.209 enp2s1 pub
qemu-system-ppc64 -cpu POWER8 -machine pseries -m 2048 -drive file=hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom 7200-05-00-2037_DVD_1.iso -prom-env “boot-command=boot disk:” -net nic,macaddr=00:0C:29:67:C2:20 -net tap,script=no,ifname=tap0 -daemonize
更多推荐
所有评论(0)