I *think* I see how it works. Like this, right?
ipmi_sim_lancontrol get name1 name2 ...
prints:
name1: val1\n
name2: val2\n
...
ipmi_sim_lancontrol set name1 val1 name2 val2 ...
I'll do some debugging and get teh values. That's for getting and setting
the properties of the interface that ipmi_sim is listening on, right?
Right now I'm stuck on this:
sudo ipmi_sim -d -c lan-ipmi1.conf
IPMI Simulator version 1.0.13
No bmc_ipmb specified or configured.
Here's my config. Where does "bmc_ipmb" go?
name "ipmi1"
set_working_mc 0x20
startlan 1
addr :: 9001
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
lan_config_program "./ipmi_sim_lancontrol ipmi1"
endlan
serial 15 localhost 9011 codec VM
startcmd "/home/noel/local/usr/bin/qemu-system-x86_64 --enable-kvm
-chardev socket,id=ipmi0,host=localhost,port=9011,reconnect=10 -device
isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial
mon:tcp::9021,server,telnet,nowait -drive file=node1.qcow2 -boot order=n
-net nic -net tap,ifname=data1,script=no,downscript=no -smp cpus=4 -m 4M
-display sdl -machine accel=kvm -enable-kvm"
# Start startcmd at startup? Default is false.
startnow false
# # valid name passw priv-lim max-sess allowed-auths
user 1 true "admin" "admin" admin 10 none md2 md5 straight
Cheers,
--
Noel
On Fri, Apr 24, 2015 at 5:28 PM, Corey Minyard <[email protected]> wrote:
> On 04/24/2015 04:57 PM, Noel Burton-Krahn wrote:
> > Thanks, Corey.
> >
> > How does the lan_config_program in lan.conf work? I couldn't find an
> > example in the OpenIPMI-2.0.21 tarball. Our central controller
> > expects each node's ipmi module to dhcp for an address. I'm trying to
> > decide if I need to run dhcpc on the interface that ipmi_sim runs on.
> > Can I just bind ipmi_sim to an interface and let it dhcp for its
> > address? If not, how does it work with lan_config_program?
> >
>
> That program is for handling the LAN configuration commands over IPMI.
> If you don't want to be able to control your host's LAN configuration
> over IPMI, you can just ignore this and not have one.
>
> If you do want that, it will take some digging, it's not well documented.
>
> -corey
>
> >
> > FYI, In our setup, we have two networks for ipmi and data. One
> > control node is connected to both networks and provides dhcp
> >
> > controller node1 node2 ...
> > IPMI eth0 ----- ipmi0 ---- ipmi0
> > DATA eth1 ----- eth0 ----- eth0
> >
> > I'm using veth pairs with one end in a bridge for the ipmi interfaces
> > and tap devices for qemu simulating the nodes.
> >
> > --
> > Noel
> >
> >
> >
> >
> > On Thu, Apr 23, 2015 at 2:42 PM, Corey Minyard <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > On 04/22/2015 07:25 PM, Noel Burton-Krahn wrote:
> > > OK, I've build qemu and openipmi. I'm simulating a system where a
> > > central control node boots from USB, then uses IPMI to boot a
> > cluster
> > > of slave nodes and provisions them by tftpboot. If I understand
> > > correctly, I'll be running one ipmi_sim per slave node, and my
> > control
> > > node will tell that to boot a qemu instance for each slave. Sounds
> > > good so far?
> >
> > Yes, that is correct.
> >
> > >
> > > The sample lan.conf has two sections started by set_working_mc 0x20
> > > and set_working_mc 0x30. Is that for configuring multiple ipmi
> > > simulators in a single config file?
> > >
> >
> > That is just for testing, really. IPMI supports configurations with
> > multiple management controllers, say if you put a management
> > controller
> > in a power supply that just managed that device.
> >
> > However, you should be able to manage multiple VMs from a single IPMI
> > simulator. Create an MC for each VM and set it up, and send the
> > chassis
> > management commands to the individual MC. You can use the "-t"
> option
> > of ipmitool to set the particular MC you are addressing.
> >
> > -corey
> >
> > -corey
> >
> >
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer