[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] QEMU IPMI support
From: |
Longever, Joseph |
Subject: |
Re: [Qemu-devel] QEMU IPMI support |
Date: |
Tue, 7 Apr 2015 08:24:50 -0400 |
Hi Corey,
Thanks so much for the support. I pulled down the 2.2-ipmi stable snapshot and
everything compiled with no issues.
Could you help confirm my configuration?
I ran lanserv with the serial parameter to create the socket that will
communicate with the QEMU IPMI device over port 9002:
Host lanserv config:
addr :: 623
# Define a serial VM inteface for channel 15 (the system interface) on
# port 9002, just available to the local system (localhost).
serial bt localhost 9002 codec VM ipmb 0x20
# startcmd is what to execute to start a VM associated with the
# codec above (localhost 9002). It also starts a console serial port
# on port 9003 that is also used as the monitor interface.
startcmd "qemu-system-x86_64 -vnc :1 --enable-kvm -chardev
socket,id=ipmi0,host=localhost,port=9002,reconnect=10 -device
isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -device
e1000,netdev=net0,mac=${VNETMAC} -netdev tap,id=net0 -device ich9-usb-ehci1
-daemonize -serial mon:tcp::9003,server,telnet,nowait -m ${VMEM} -smp ${VSMP}
${STARTCMD_OPTS}"
# Start startcmd at startup? Default is false.
startnow true
But the QEMU VM doesn't find the BMC over the BT channel. I've tried KCS
channel as well, similar problem. I also set the serial parameter for channel
15, same.
On VM:
[ 10.199536] ipmi message handler version 39.2
[ 10.201363] ipmi device interface
[ 10.203908] IPMI System Interface driver.
[ 10.204739] ipmi_si: Trying SMBIOS-specified bt state machine at i/o address
0xe4, slave address 0x20, irq 5
[ 10.206353] ipmi_si: There appears to be no BMC at this location
[ 10.342602] ipmi_si: Unable to find any System Interface(s)
[ 10.344943] IPMI Watchdog: driver initialized
The socket is listening on the host at port 9002 (the LAN port is the default
623):
address@hidden:~$ netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:9003 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 ::1:9002 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::23 :::* LISTEN
udp 0 0 :::623 :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
Thanks,
Joel
-----Original Message-----
From: Corey Minyard [mailto:address@hidden On Behalf Of Corey Minyard
Sent: Saturday, April 04, 2015 10:02 PM
To: Longever, Joseph; qemu-devel
Subject: Re: QEMU IPMI support
Ok, done. It's at https://github.com/cminyard/qemu on github. There are two
branches at the moment, stable-2.2-ipmi is based on the 2.2 release and will
not rebase. master-ipmi-rebase will rebase on master as it moves.
I haven't done extensive testing yet, and it has a few experimental things,
like an SMBus IPMI interface and an I2C mux device. I need to split all that
out at some point. I also need to rework the ACPI handling to use the new code
to build the ACPI tables.
Copying qemu-devel so that group knows.
Thanks,
-corey
On 04/03/2015 01:17 PM, Longever, Joseph wrote:
> Hi Corey,
>
> Yes please, setting up a git repo on git hub with IPMI support would be a
> tremendous help.
>
> Thank you,
> Joel
>
> -----Original Message-----
> From: Corey Minyard [mailto:address@hidden On Behalf Of Corey
> Minyard
> Sent: Friday, April 03, 2015 2:16 PM
> To: Longever, Joseph
> Subject: Re: QEMU IPMI support
>
> On 04/01/2015 07:23 AM, Longever, Joseph wrote:
>> Hi Corey,
>>
>>
>>
>> I noticed a lot of work you had done to add IPMI/BMC emulation to
>> QEMU ... great work!
>>
>> http://sourceforge.net/p/openipmi/mailman/openipmi-developer/thread/1
>> 3
>> 69865296-19584-1-git-send-email-minyard%40acm.org/#msg30911152
>>
>>
>>
>>
>> I was wondering if they were going to push those features into an
>> official QEMU release? To avoid porting the above patches over (not
>> sure which commit it's based on, 1.5.0?), would you have the patch
>> set to support the latest stable QEMU version? I would like to use
>> OpenIPMI's lanserv to spawn a QEMU KVM with IPMI char device enabled,
>> however I think I need your patches to enable the device in QEMU.
>>
>>
>>
>> Any suggestions or help is very much appreciated.
>>
>>
>>
>> Thanks,
>>
>> Joel
>>
>>
>>
> I'm not sure when I can get this pushed in. It's really more up to the qemu
> maintainers, and they are pretty busy with bigger stuff. Unless Redhat wants
> changes, which is how the qemu-char changes I needed for IPMI support got
> into the release.
>
> I can set up a git repository on github. Would that help?
>
> -corey