回复: how can i use ipmitool to interact with openbmc which boot from qemu-system-arm

南野ムルシエラゴ 1181052146 at qq.com
Fri Sep 27 14:37:14 AEST 2019


Dear Andrew:
i have change my qemu command line
#qemu-system-arm -m 256 -M palmetto-bmc -nographic -drive file=/home/openbmc/openbmc/build/tmp/deploy/images/palmetto/obmc-phosphor-image-palmetto-20190926123057.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=:127.0.0.1:2623-:623,hostname=qemu


add "hostfwd=:127.0.0.1:2623-:623",
but when i use ipmitool
#ipmitool -H 127.0.0.1 -I lanplus -U root -P 0penBmc power status
or
#ipmitool -H 127.0.0.1 -p 2623 -I lanplus -U root -P 0penBmc power status
neither of them work, i search from internet, they told me the port for RMCP if 623, is it right? and what can i do to get ipmitool work for qemu?


Thanks!
Liu Hongwei


------------------ 原始邮件 ------------------
发件人: "Andrew Jeffery"<andrew at aj.id.au>;
发送时间: 2019年9月26日(星期四) 晚上10:30
收件人: "南野ムルシエラゴ"<1181052146 at qq.com>;"openbmc"<openbmc at lists.ozlabs.org>;

主题: Re: how can i use ipmitool to interact with openbmc which boot from qemu-system-arm





On Thu, 26 Sep 2019, at 22:24, 南野ムルシエラゴ wrote:
> Greetings:
> i have build a openbmc image, and boot with qemu:
> 
> #qemu-system-arm -m 256 -M palmetto-bmc -nographic -drive 
> file=/home/openbmc/openbmc/build/tmp/deploy/images/palmetto/obmc-phosphor-image-palmetto-20190926123057.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostname=qemu
> 
> and when i run the following command in my ubuntu18.04:
> 
> #curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST 
> https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }"
> 
> it works well, but when i try to use impitool:
> 
> #ipmitool -H 127.0.0.1 -I lanplus -U root -P 0penBmc power status
> 
> i got "Error: unable to establish IPMI v2 / RMCP+ session". how can i do?

You need to add another 'hostfwd' to the commandline to expose the
RCMP+ port. At the moment you're only exposing SSH (22) and HTTPS (443)

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


More information about the openbmc mailing list