[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] ipmi_sim_chassiscontrol-correct output
From: |
mach4 |
Subject: |
[Qemu-discuss] ipmi_sim_chassiscontrol-correct output |
Date: |
Wed, 21 Feb 2018 02:10:45 -0700 (MST) |
Hi
I want to setup "ipmi_sim" emulator, to be able to power on/off/reset and
additionally I want to set boot device using "ipmi_sim_chassiscontrol"
script. I've configured "lan.conf" file see below, I can successfully set
boot device:
# ipmitool -I lanplus -U admin -P admin -H 192.168.30.11 chassis bootdev pxe
options=persistent
Set Boot Device to pxe
Problem description:
My problem is that I can't power on the KVM guest anymore while having
"chassis_control" option set in "lan.conf", without this option I can
pwoerr off/on successfully.
used ipmi_sim_chassiscontrol file:
https://github.com/cminyard/openipmi/blob/master/lanserv/ipmi_sim_chassiscontrol
---
used "lan.conf" file:
"ipmisim1"
set_working_mc 0x20
startlan 1
addr 192.168.30.11 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_BMC_1"
lan_config_program "/etc/ipmi/ipmi_sim_lancontrol eth0"
endlan
chassis_control "/etc/ipmi/ipmi_sim_chassiscontrol 0x20"
serial 15 0.0.0.0 6231 codec VM
startcmd "virsh start node1"
startnow false
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 straight
EOF
used "power on" command:
# ipmitool -I lanplus -U admin -P admin -H 192.168.30.11 power on
Chassis Power Control: Up/On
"ipmi_sim" debug output
Raw LAN receive from:
02 00 9d c6 c0 a8 08 10 00 00 00 00 00 00 00 00
Receive message:
06 00 ff 07 06 c0 82 02 00 00 08 00 00 00 20 00 da be 9d a8 69 f7 35 e5 2e
7c 74 99 d4 b3 88 08 6c 1a 6f ab fa c0 9c 5d be d0 32 3a 02 97 0c 02 ff ff
02 07 47 b3 56 a8 7f fc b4 cc 4a 16 99 40
++ prog=/etc/ipmi/ipmi_sim_chassiscontrol
++ device=0x20
++ '[' x0x20 = x ']'
++ shift
++ op=set
++ '[' xset = x ']'
++ shift
++ case $op in
++ do_set power 1
++ '[' xpower '!=' x ']'
++ parm=power
++ shift
++ '[' x1 = x ']'
++ val=1
++ shift
++ case $parm in
++ '[' x '!=' x ']'
++ echo End
++ set +x
Raw LAN send to:
Thank you for your help :-)
--
Sent from: http://qemu.11.n7.nabble.com/Discuss-f31862.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-discuss] ipmi_sim_chassiscontrol-correct output,
mach4 <=