回复: how the openbmc running in qemu communicate with the operating system running in another qemu via KCS/BT?

南野ムルシエラゴ 1181052146 at qq.com
Fri Dec 20 14:03:52 AEDT 2019


Hi, Stephen


Thanks for your help, I have handled how the client like ipmitool to communicate with openbmc via net. As Andrew said my problem is how openbmc communicate with host in qemu environment.
ipmitool<------stage 1 OK------->openbmc<------stage 2 NOT OK------>host


Best Regards!
Liu Hongwei


------------------ 原始邮件 ------------------
发件人: "Andrew Jeffery"<andrew at aj.id.au>;
发送时间: 2019年12月20日(星期五) 凌晨5:50
收件人: "Stephen Beckwith"<embeddedsteve at gmail.com>;"南野ムルシエラゴ"<1181052146 at qq.com>;"Cédric Le Goater"<clg at kaod.org>;
抄送: "openbmc"<openbmc at lists.ozlabs.org>;
主题: Re: how the openbmc running in qemu communicate with the operating system running in another qemu via KCS/BT?





On Fri, 20 Dec 2019, at 00:07, Stephen Beckwith wrote:
> Lui Hongwei;
>  Here is how we handled our initial setup for OpenBMC:
> 1) all of this runs in a single VirtualMachine on a Host System (an 
> Apple Macbook in my case) - the VM is running an ubuntu 18.04 LTS OS.
> 2) Within this VM:
> a) Build the OpenBMC image for AST2500
> b) You will need to rebuild from downloaded source the QEMU version 
> 4.1.0 to run the AST2500. The "stock" version that is delivered with 
> Ubuntu 18.03 is 2.11, and does not work. Rebuild this and keep a copy 
> to re-install as necessary.
> c) you will also need to install ipmitool on this system.
> 3) In Terminal Window 1: Use this command to run the image:
> qemu-system-arm \
> -machine ast2500-evb \
> -m 256 \
> -nographic \
> -drive 
> file=obmc-phosphor-image-evb-ast2500.static.mtd,format=raw,if=mtd \
> -net nic \
> -net 
> user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostfwd=udp:127.0.0.1:2623-:623,hostname=qemu 
> 3) In Terminal Window 2: You can run the ipmitool to talk to the 
> AST2500 BMC image:
> ipmitool -H 127.0.0.1 -I lanplus -p 2623 -U root -P 0penBmc chassis 
> power status
> Chassis Power is off
> 
> IPMI "raw" commands also work:
> ipmitool -H 127.0.0.1 -I lanplus -p 2623 -U root -P 0penBmc raw 0x00 0x0f
>  3c 00 00 00 00
> 

I think what Liu was asking about was setting up in-band IPMI between two guests
(e.g. one BMC guest and one host guest). Your description covers network IPMI
between a management client and the BMC guest.

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191220/f728dde1/attachment.htm>


More information about the openbmc mailing list