回复: how can i use ipmitool to interact with openbmc which boot from qemu-system-arm
南野ムルシエラゴ
1181052146 at qq.com
Sun Sep 29 17:34:32 AEST 2019
Dear Mr. Andrew and openbmc:
Thanks a lot for your helping.
because ipmitool use udp, so my previous changes for qemu cmdline are not right. i change it as follows:
#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=udp:127.0.0.1:2623-:623,hostname=qemu
change "hostfwd=:127.0.0.1:2623-:623" to "hostfwd=udp:127.0.0.1:2623-:623".
and i run:
#ipmitool -H 127.0.0.1 -I lanplus -p 2623 -U root -P 0penBmc power status
and i got:
Chassis Power is off
it seems ipmitool works well together with qemu^_^.
Thanks!
Liu Hongwei /UCAS
------------------ 原始邮件 ------------------
发件人: "南野ムルシエラゴ"<1181052146 at qq.com>;
发送时间: 2019年9月27日(星期五) 中午12:37
收件人: "Andrew Jeffery"<andrew at aj.id.au>;"openbmc"<openbmc at lists.ozlabs.org>;
主题: 回复: how can i use ipmitool to interact with openbmc which boot from qemu-system-arm
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/20190929/b09a4b50/attachment.htm>
More information about the openbmc
mailing list