Introduce ipmi device emulations for the power management of the hypervisor
I. IPMI (intelligent platform maintenance interface)
II. Use the qemu & virsh command line as the "startcmd" parameter for IPMI emulations
1. for qemu command line
- Supported qemu version: at least from qemu v2.2
- How to define:
#1 Create a BMC, normally done from ipmi_sim
#1.1 for internal: basic BMC inside qemu, like watchdog timer.
-device ipmi-bmc-sim,id=bmc0
#or 1.2 for external: connects to an external BMC over a chardev, like power
#management, watchdog timer, set sensor value.
#(need to install OpenIPMI in the hypervisor)
-chardev socket,id=ipmi0,host=localhost,port=9002,reconnect=10 \
-device ipmi-bmc-extern,id=bmc1,chardev=ipmi0 \
#2 Attach the BMC to an interface
-device isa-ipmi-kcs,bmc=bmc1 \
I. IPMI (intelligent platform maintenance interface)
II. Use the qemu & virsh command line as the "startcmd" parameter for IPMI emulations
1. for qemu command line
- Supported qemu version: at least from qemu v2.2
- How to define:
#1 Create a BMC, normally done from ipmi_sim
#1.1 for internal: basic BMC inside qemu, like watchdog timer.
-device ipmi-bmc-sim,id=bmc0
#or 1.2 for external: connects to an external BMC over a chardev, like power
#management, watchdog timer, set sensor value.
#(need to install OpenIPMI in the hypervisor)
-chardev socket,id=ipmi0,host=localhost,port=9002,reconnect=10 \
-device ipmi-bmc-extern,id=bmc1,chardev=ipmi0 \
#2 Attach the BMC to an interface
-device isa-ipmi-kcs,bmc=bmc1 \