Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try IPMI simulator (virtual BMC) again #116

Open
Gerrit91 opened this issue Aug 19, 2022 · 7 comments
Open

Try IPMI simulator (virtual BMC) again #116

Gerrit91 opened this issue Aug 19, 2022 · 7 comments
Assignees

Comments

@Gerrit91
Copy link
Contributor

Gerrit91 commented Aug 19, 2022

This would give us much higher test coverage as also the ipmi_sim from OpenIPMI seems to be pretty much feature complete.

First steps for trying it out would be:

  • Use QEMU flags like
     -device ipmi-bmc-sim,id=bmc0
     -chardev socket,id=ipmi0,host=localhost,port=9002,reconnect=10 
     -device ipmi-bmc-extern,id=bmc1,chardev=ipmi0 
     -device isa-ipmi-kcs,bmc=bmc1
    
  • Connect ipmi_sim to this device
  • Try commands with ipmitool

If this works out, we can think about where we can deploy the metal-bmc to connect the system to the metal-stack. With this, we could start integration tests for go-hal and also refactor go-hal that we have a working default implementation for the IPMI protocol (wider hardware support).

References:

Additional information:

@robertvolkmann robertvolkmann self-assigned this Nov 6, 2024
@robertvolkmann
Copy link
Contributor

robertvolkmann commented Nov 6, 2024

I created a proof of concept in https://github.com/robertvolkmann/clab-ipmi

@mwindower
Copy link
Contributor

Nice! Is the serial console connection and restarts also working?

@robertvolkmann
Copy link
Contributor

Yes, both are working.

@majst01
Copy link
Contributor

majst01 commented Nov 8, 2024

Sadly on Dell, ipmi is disabled by default. Is there a Redfish simulator available as well ? Just asking

@robertvolkmann
Copy link
Contributor

We could try pyghmi or sushy-tools.

@mwindower
Copy link
Contributor

Sadly on Dell, ipmi is disabled by default. Is there a Redfish simulator available as well ? Just asking

It's possible to activate IPMI with a PATCH command with {"IPMI": {"ProtocolEnabled": true}} to https://<iDRAC_IP>/redfish/v1/Managers/iDRAC.Embedded.1`
s. page 171 @ https://dl.dell.com/topicspdf/idrac9-lifecycle-controller-v3303030_API-Guide_en-us.pdf

@majst01
Copy link
Contributor

majst01 commented Nov 9, 2024

Sadly on Dell, ipmi is disabled by default. Is there a Redfish simulator available as well ? Just asking

It's possible to activate IPMI with a PATCH command with {"IPMI": {"ProtocolEnabled": true}} to https://<iDRAC_IP>/redfish/v1/Managers/iDRAC.Embedded.1` s. page 171 @ https://dl.dell.com/topicspdf/idrac9-lifecycle-controller-v3303030_API-Guide_en-us.pdf

Thanks for the pointer, i will try hard to stay with redfish only, but if this does not work will need to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants