[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help with my config
From: |
Cédric Le Goater |
Subject: |
Re: need help with my config |
Date: |
Fri, 30 Jul 2021 18:50:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Hello,
On 7/30/21 3:25 PM, Philippe Mathieu-Daudé wrote:
> Cc'ing qemu-ppc@
>
> On 7/30/21 6:25 AM, Lindsay Ryan wrote:
>> Hi
>> I'm trying to emulate some physical IBM Power 9's that we have. There
>> seems to be plenty of examples of using x86_64 qemu, but slightly less
>> for Power.
For baremetal emulation, please use the PowerNV machine. See this page :
https://qemu.readthedocs.io/en/latest/system/ppc/powernv.html
HW is not fully emulated but QEMU has enough support to start a multichip
system running any distro.
>> Unless it's specifically for installing AIX
AIX only runs under the pseries machine (virtualized) and not on baremetal.
>> Anyway, I'm trying to boot the VM as I guess a bare metal Power 9 box,
>> then install redhat from Iso on a disk and have it on the network.
>>
>> ./qemu-system-ppc64 -cpu POWER9 -smp cpus=4 -machine pseries -m 4096 -M
>> accel=tcg -serial stdio -nodefaults -nographic -device
>> megasas,id=scsi0,bus=pci.0,addr=0x5 -drive
>> file=/home/hdisk1.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none
>> -device
>> scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=2
>> -cdrom /mnt/images/rhel-8.4-ppc64le-boot.iso -monitor
>> telnet:0.0.0.0:3344,server,nowait -netdev
>> bridge,id=net0,helper=qemu-bridge-helper,br=bridge0,id=hostnet0
This is a pseries machine (virtualized) and not baremetal.
Which machine do you want to run ? pseries is the VM platform as run by KVM,
It can run under TCG also. PowerNV is the baremetal platform on which KVM
runs using the OPAL firmware. QEMU only has a PowerNV emulator, so TCG.
These are two very different PPC machines.
>> So the megasas gets detected as a raid controller. Yay.
>> But my qcow2 disk image doesn't seem to be plugged into it correctly as
>> it's not detected.
>> It sees the cdrom image and I can boot from it.
>> The other thing I can't get working is the network card.
because you don't have any :) Add a device and link it to the netdev.
That's how I run a TCG pseries POWER9 machine on my x86 laptop:
qemu-system-ppc64 -M
pseries,cap-cfpc=workaround,cap-sbbc=workaround,cap-ibs=workaround,cap-ccf-assist=on,ic-mode=dual
-m 4G -accel tcg,thread=multi -cpu POWER9 -smp 4,cores=4,maxcpus=8,threads=1
-device virtio-net-pci,netdev=net0,mac=C0:FF:EE:00:00:02,bus=pci.0,addr=0x2
-netdev tap,id=net0,helper=/usr/libexec/qemu-bridge-helper,br=virbr0,vhost=on
-device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x1 -drive
file=./ubuntu-ppc64le.qcow2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=none
-device
scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1
-device qemu-xhci,id=usb,bus=pci.0,addr=0x4 -nographic -nodefaults -serial
mon:stdio
and a PowerNV POWER9 machine :
qemu-system-ppc64 -m 4G -machine powernv9 -smp 2 -accel tcg,thread=multi
-kernel ./open-power/images/witherspoon-latest/zImage.epapr -initrd
./open-power/images/witherspoon-latest/rootfs.cpio.xz -bios
./open-power/images/witherspoon-latest/skiboot.lid -device
pcie-pci-bridge,id=bridge1,bus=pcie.1,addr=0x0 -device
ich9-ahci,id=sata0,bus=pcie.0,addr=0x0 -drive
file=./ubuntu-ppc64le-powernv.qcow2,if=none,id=drive0,format=qcow2,cache=none
-device ide-hd,bus=sata0.0,unit=0,drive=drive0,id=ide,bootindex=1 -device
e1000e,netdev=net0,mac=C0:FF:EE:00:01:03,bus=bridge1,addr=0x3 -netdev
bridge,helper=/usr/libexec/qemu-bridge-helper,br=virbr0,id=net0 -device
nec-usb-xhci,bus=bridge1,addr=0x2 -device usb-storage,drive=usbkey -drive
file=./usb.img,if=none,id=usbkey,format=raw,cache=none -serial mon:stdio
-nographic
You will need firmware images for the latter.
Cheers,
C.