Menu

#17 ipmi_sim chassis power control

v1.0_(example)
open
None
5
2021-03-14
2021-03-12
ofer.bahar
No

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

Related

Support Requests: #17

Discussion

  • Corey Minyard

    Corey Minyard - 2021-03-13

    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

    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

    Regards
    Ofer

     
  • ofer.bahar

    ofer.bahar - 2021-03-13

    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

     
    • Corey Minyard

      Corey Minyard - 2021-03-14

      On Sat, Mar 13, 2021 at 08:27:22AM -0000, ofer.bahar wrote:

      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 ?

      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


      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


      ** [support-requests:#17] ipmi_sim chassis power control**

      Status: open
      Group: v1.0_(example)
      Created: Fri Mar 12, 2021 10:23 PM UTC by ofer.bahar
      Last Updated: Fri Mar 12, 2021 10:23 PM UTC
      Owner: Corey Minyard

      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


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openipmi/support-requests/17/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #17

  • ofer.bahar

    ofer.bahar - 2021-03-14

    Thank you for the answer
    I will continue with the plugins and see how I progress
    -ofer

     

Log in to post a comment.

MongoDB Logo MongoDB