-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to remove the need to install OpenIPMI in the server container, prepare a container image to run the fake IPMI server.
- Loading branch information
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM opensuse/leap:15.5 | ||
|
||
RUN zypper -n in OpenIPMI && \ | ||
mkdir -p /etc/ipmi | ||
|
||
COPY ipmisim1.emu lan.conf fake_ipmi_host.sh /etc/ipmi | ||
|
||
CMD ["ipmi_sim", "-n"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /bin/bash | ||
|
||
echo | ||
echo "#### Fake IPM host started ####" | ||
echo | ||
|
||
while true; do | ||
sleep 5 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Minimalistic simulation setup for ipmi_sim. | ||
|
||
# The BMC is the MC at address 20 | ||
mc_setbmc 0x20 | ||
|
||
# Now add the BMC | ||
mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr | ||
sel_enable 0x20 1000 0x0a | ||
|
||
# Watchdog sensor. This must be sensor zero. | ||
sensor_add 0x20 0 0 35 0x6f event-only | ||
sensor_set_event_support 0x20 0 0 enable scanning per-state \ | ||
000000000001111 000000000000000 \ | ||
000000000001111 000000000000000 | ||
|
||
# Turn on the BMC | ||
mc_enable 0x20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name "ipmisim1" | ||
|
||
set_working_mc 0x20 | ||
|
||
# Define a LAN channel on channel 1 | ||
startlan 1 | ||
addr 127.0.0.1 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 a123456789abcdefa123456789abcdef | ||
endlan | ||
|
||
serial 15 127.0.0.1 9002 codec VM | ||
|
||
startcmd "/etc/ipmi/fake_ipmi_host.sh" | ||
startnow false | ||
|
||
user 1 true "admin" "admin" user 10 none md2 md5 straight | ||
user 2 true "ipmiusr" "test" admin 10 none md2 md5 straight | ||
|