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

Andrew Jeffery andrew at aj.id.au
Fri Sep 27 00:00:14 AEST 2019



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


More information about the openbmc mailing list