Menu

#16 ipmi_sim not receiving lan packets

v1.0_(example)
open
5
2021-03-11
2021-03-10
ofer.bahar
No

Hello

I'll start from the end : my ipmi_sim is not receiving any LAN packets !!

My setup :

  1. I installed OpenIPMI in my VM => Ubuntu / QEMU guest in my Windows 10 host.
  2. The networking settings of the Ubuntu VM are OK, the Host can ping and transfer files with FTP to the VM
  3. config file of the ipmi_sim is shown below

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 9002 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

========

  1. command file of the ipmi_sim is shown below

debug raw

mc_setbmc 0x20

mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr
sel_enable 0x20 1000 0x0a

sensor_add 0x20 0 0 35 0x6f event-only
sensor_set_event_support 0x20 0 0 enable scanning per-state \
000000000001111 000000000000000 \
000000000001111 000000000000000

sensor_add 0x20 0 1 0x01 0x01

sensor_set_value 0x20 0 1 0x60 0

sensor_set_threshold 0x20 0 1 settable 111000 0xa0 0x90 0x70 00 00 00

sensor_set_event_support 0x20 0 1 enable scanning per-state \
000111111000000 000111111000000 \
000111111000000 000111111000000

sensor_add 0x20 0 2 37 0x6f
sensor_set_bit_clr_rest 0x20 0 2 1 1

sensor_set_event_support 0x20 0 2 enable scanning per-state \
000000000000011 000000000000011 \
000000000000011 000000000000011

mc_add_fru_data 0x20 3 128 data 0

mc_add 0x30 2 no-device-sdrs 0x98 0x10 1 0xa0 0x1291 0xf03

sensor_add 0x30 0 1 0x01 0x01

sensor_set_threshold 0x30 0 1 settable 111000 0xa0 0x90 0x70 00 00 00
sensor_set_event_support 0x30 0 1 enable scanning per-state \
000111111000000 000111111000000 \
000111111000000 000111111000000

mc_enable 0x30

mc_enable 0x20

  1. running the ipmi_sim looks totally OK without any errors

  2. From the host (windows) I run ipmitool as following
    ipmitool -I lanplus -U admin -P admin -H 192.168.1.134 -p 9002

  3. tcpdump in the VM shows that the IPMB packets are received, but the debug of the ipmi_sim shows nothing, and of coarse no response is received by the ipmitools

Any help will be most appreciated

regards
Ofer

Related

Support Requests: #16

Discussion

  • Corey Minyard

    Corey Minyard - 2021-03-11

    On Wed, Mar 10, 2021 at 11:05:41PM -0000, ofer.bahar wrote:


    ** [support-requests:#16] ipmi_sim not receiving lan packets**

    Status: open
    Group: v1.0_(example)
    Labels: ipmi_sim qemu lan
    Created: Wed Mar 10, 2021 11:05 PM UTC by ofer.bahar
    Last Updated: Wed Mar 10, 2021 11:05 PM UTC
    Owner: Corey Minyard

    Hello

    I'll start from the end : my ipmi_sim is not receiving any LAN packets !!

    My setup :
    1. I installed OpenIPMI in my VM => Ubuntu / QEMU guest in my Windows 10 host.
    2. The networking settings of the Ubuntu VM are OK, the Host can ping and transfer files with FTP to the VM
    3. config file of the ipmi_sim is shown below
    ======================

    name "ipmisim1"

    set_working_mc 0x20

    startlan 1
    addr 192.168.1.134 623

    Your net port is 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 9002 codec VM\

    This port (9002) is not for normal IPMI traffic, it is for hooking to a
    VM (like qemu) so this BMC can act as the BMC for the 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

    ========
    4. command file of the ipmi_sim is shown below

    debug raw

    mc_setbmc 0x20

    mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr
    sel_enable 0x20 1000 0x0a

    sensor_add 0x20 0 0 35 0x6f event-only
    sensor_set_event_support 0x20 0 0 enable scanning per-state \
    000000000001111 000000000000000 \
    000000000001111 000000000000000

    sensor_add 0x20 0 1 0x01 0x01

    sensor_set_value 0x20 0 1 0x60 0

    sensor_set_threshold 0x20 0 1 settable 111000 0xa0 0x90 0x70 00 00 00

    sensor_set_event_support 0x20 0 1 enable scanning per-state \
    000111111000000 000111111000000 \
    000111111000000 000111111000000

    sensor_add 0x20 0 2 37 0x6f
    sensor_set_bit_clr_rest 0x20 0 2 1 1

    sensor_set_event_support 0x20 0 2 enable scanning per-state \
    000000000000011 000000000000011 \
    000000000000011 000000000000011

    mc_add_fru_data 0x20 3 128 data 0

    mc_add 0x30 2 no-device-sdrs 0x98 0x10 1 0xa0 0x1291 0xf03

    sensor_add 0x30 0 1 0x01 0x01

    sensor_set_threshold 0x30 0 1 settable 111000 0xa0 0x90 0x70 00 00 00
    sensor_set_event_support 0x30 0 1 enable scanning per-state \
    000111111000000 000111111000000 \
    000111111000000 000111111000000

    mc_enable 0x30

    mc_enable 0x20

    1. running the ipmi_sim looks totally OK without any errors

    2. From the host (windows) I run ipmitool as following
      ipmitool -I lanplus -U admin -P admin -H 192.168.1.134 -p 9002

    You should use port 623 here. Or just nothing, since that's the
    default.

    -corey

    1. tcpdump in the VM shows that the IPMB packets are received, but the debug of the ipmi_sim shows nothing, and of coarse no response is received by the ipmitools

    Any help will be most appreciated

    regards
    Ofer


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

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

     

    Related

    Support Requests: #16

  • ofer.bahar

    ofer.bahar - 2021-03-11

    Thank you Corey for your assistance

    It did help, though I had one more issue with the VM firewall = > to allow the 623 / UDP

    Thanks again
    Ofer

     

Log in to post a comment.

MongoDB Logo MongoDB