qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] ipmi_sim_chassiscontrol


From: Mach
Subject: [Qemu-discuss] ipmi_sim_chassiscontrol
Date: Wed, 21 Feb 2018 02:03:38 -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 b5 b6 c0 a8 08 10 00 00 00 00 00 00 00 00
 Receive message:
 06 00 ff 07 06 c0 82 01 00 00 0a 00 00 00 20 00 2c 8e 02 55 57 5a f5 d5 1d
29 eb ea a7 a8 9e 4d 7b 59 af 6a 7d 18 f9 95 52 b0 32 e0 67 b0 ff 95 ff ff
02 07 cb e4 90 45 a8 86 66 a6 75 26 ef b7
++ prog=/etc/ipmi/ipmi_sim_chassiscontrol
++ device=0x20
++ '[' x0x20 = x ']'
++ shift
++ op=set
++ '[' xset = x ']'
++ shift
++ case $op in
++ do_set boot pxe
++ '[' xboot '!=' x ']'
++ parm=boot
++ shift
++ '[' xpxe = x ']'
++ val=pxe
++ shift
++ case $parm in
++ case $val in
++ '[' x '!=' x ']'
++ echo End
++ set +x
Raw LAN send to:
 02 00 b5 b6 c0 a8 08 10 00 00 00 00 00 00 00 00 ff ff ff ff 00 00 00 00 58
13 88 eb 48 7f 00 00 f0 4d c2 ea 48 7f 00 00 e0 04 88 eb 48 7f 00 00 05 e3
80 1b 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 20 94 91
01 00 00 00 00 98 88 3c bb ff 7f 00 00 94 88 3c bb ff 7f 00 00 08 00 00 00
00 00 00 00 c0 87 3c bb ff 7f 00 00 03 00 00 00 00 00 00 00 23 31 41 00 00
00 00 00 10 00 00 00 06 00 00 00

Thank you for your help :-)





--
Sent from: http://qemu.11.n7.nabble.com/Discuss-f31862.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]