ipmi_sim chassis power control
Brought to you by:
cminyard
Hello
I managed to activate the ipmi_sim within the vm (qemu) from my windows 10 host ipmitool
It works ok, and I also activated the sensors with the sdrs
BUT.... when I'm tried to check the chassis power status and change its state from on to off and back, it is stuck in off state no matte what I did
Any help will be appreciated
Regards
Ofer
Lots of things can be wrong, unfortunately. If it's set up correctly,
ipmi_sim uses the status of the subprocess running qemu for power
status. If you don't use ipmi_sim to start/stop qemu, it's not going to
be able to do much with the power control.
If that's not the issue, I'll need to see configuration files.
-corey
Hi Corey
Thanks for the answer,
Maybe I'm kind of misusing the ipmi_sim, because it runs within the QEMU, how can it start/stop the QEMU ?
My goal is to simulate the target which is FreeRTOS or Linux and ARM or Microblaze .
Is it possible to configure the ipmi_sim to run other application then QEMU (e.g. my code)?
How does the ipmi_sim communicates with the target IPMB in a "BMC" mode ?
My config file is :
name "ipmisim1"
set_working_mc 0x20
startlan 1
addr 192.168.1.134 623
priv_limit admin
allowed_auths_callback none md2 md5 straight
allowed_auths_user none md2 md5 straight
allowed_auths_operator none md2 md5 straight
allowed_auths_admin none md2 md5 straight
guid "I_AM_A_REAL_BMC!"
endlan
serial 15 192.168.1.134 623 codec VM
startnow true
user 1 true "" "test" user 10 none md2 md5 straight
user 2 true "ipmiusr" "test" admin 10 none md2 md5 straight
user 3 true "admin" "admin" admin 10 none md2 md5 straightu
Best regards
Ofer
On Sat, Mar 13, 2021 at 08:27:22AM -0000, ofer.bahar wrote:
ipmi_sim can be used in a number of different ways.
It can be used to manage a qemu session, running outside of qemu,
starting, stopping, managing the watchdog, etc. qmeu for the OS running
in qemu. It can do this right now with no adapting. That's what I was
talking about.
But it sounds like you want to run ipmi_sim in qemu and then manage
another qemu session. The README files in the lanserv directory
describe a lot of the places you need to plug in to do this.
marvell-bmc also can be used as an example of some of this, though it
has some unusual design. But you will have to write a significant
amount of software for your specific situation.
-corey
Related
Support Requests: #17
Thank you for the answer
I will continue with the plugins and see how I progress
-ofer