From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdjj1-0000I5-VX for qemu-devel@nongnu.org; Tue, 05 Nov 2013 11:43:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vdjiz-0008EO-Lw for qemu-devel@nongnu.org; Tue, 05 Nov 2013 11:43:31 -0500 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:43625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdjiz-0008E2-Eb for qemu-devel@nongnu.org; Tue, 05 Nov 2013 11:43:29 -0500 Received: by mail-pa0-f47.google.com with SMTP id lf10so9088111pab.34 for ; Tue, 05 Nov 2013 08:43:27 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20131105135305.GA3696@redhat.com> References: <20131105135305.GA3696@redhat.com> Date: Tue, 5 Nov 2013 10:43:27 -0600 Message-ID: From: Bret Ketchum Content-Type: multipart/alternative; boundary=047d7b1119155fcd1604ea70bb93 Subject: Re: [Qemu-devel] Qemu IPMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" --047d7b1119155fcd1604ea70bb93 Content-Type: text/plain; charset=ISO-8859-1 Will do, thanks. On Tue, Nov 5, 2013 at 7:53 AM, Michael S. Tsirkin wrote: > On Tue, Nov 05, 2013 at 07:27:42AM -0600, Bret Ketchum wrote: > > Gentlemen, > > > > Hope this email finds you well and hope you can point me in the right > > direction. I've a project which requires a VM to see a BMC at an IO Port > on an > > ISA bus. I've adapted (rather in the process of) the patches described > here: > > > > http://lists.gnu.org/archive/html/qemu-devel/2013-05/msg04335.html > > > > To 1.6.1 but am wondering about the process where a patch on > qemu-devel > > finds its way into a release. I'd like to see Corey's patch become > reality for > > obvious reasons. How may I facilitate this patch becoming a part of a > future > > release? > > > > Any insight is appreciated and thanks in advance. > > > > Bret > > > > > > I think it's a good idea to rebase this on top of latest bits. > > In particular, there's no need to add FW CFG interfaces > anymore, now that we generate the ACPI tables in QEMU. > > Pls Cc me on the series when you post them, > I'll try to help review. > > -- > MST > --047d7b1119155fcd1604ea70bb93 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=A0=A0 Will do, thanks.


On Tue, Nov 5, 2013 at = 7:53 AM, Michael S. Tsirkin <mst@redhat.com> wrote:
On T= ue, Nov 05, 2013 at 07:27:42AM -0600, Bret Ketchum wrote:
> Gentlemen,
>
> =A0=A0=A0 Hope this email finds you well and hope you can point me in = the right
> direction. I've a project which requires a VM to see a BMC at an I= O Port on an
> ISA bus. I've adapted (rather in the process of) the patches descr= ibed here:
>
> http://lists.gnu.org/archive/html/qemu-devel/201= 3-05/msg04335.html
>
> =A0=A0=A0 To 1.6.1 but am wondering about the process where a patch on= qemu-devel
> finds its way into a release. I'd like to see Corey's patch be= come reality for
> obvious reasons. How may I facilitate this patch becoming a part of a = future
> release?
>
> =A0=A0=A0 Any insight is appreciated and thanks in advance.
>
> =A0=A0=A0 Bret
>
>

I think it's a good idea to rebase this on top of latest bi= ts.

In particular, there's no need to add FW CFG interfaces
anymore, now that we generate the ACPI tables in QEMU.

Pls Cc me on the series when you post them,
I'll try to help review.

--
MST

--047d7b1119155fcd1604ea70bb93-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeZt8-0001Kg-DX for qemu-devel@nongnu.org; Sat, 04 Apr 2015 22:02:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeZt5-0004Wc-8G for qemu-devel@nongnu.org; Sat, 04 Apr 2015 22:02:14 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:33406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeZt5-0004WM-2a for qemu-devel@nongnu.org; Sat, 04 Apr 2015 22:02:11 -0400 Received: by obvd1 with SMTP id d1so3806428obv.0 for ; Sat, 04 Apr 2015 19:02:09 -0700 (PDT) Sender: Corey Minyard Message-ID: <5520979E.2080208@acm.org> Date: Sat, 04 Apr 2015 21:02:06 -0500 From: Corey Minyard MIME-Version: 1.0 References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> In-Reply-To: <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU IPMI support Reply-To: minyard@acm.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Longever, Joseph" , qemu-devel 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:tcminyard@gmail.com] 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/13 >> 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSf7-0007c3-PW for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfSf2-0007aS-JN for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:31:25 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:35313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSf2-0007aD-Ef for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:31:20 -0400 Received: by obbfy7 with SMTP id fy7so86015341obb.2 for ; Tue, 07 Apr 2015 05:31:19 -0700 (PDT) Sender: Corey Minyard Message-ID: <5523CE14.8090306@acm.org> Date: Tue, 07 Apr 2015 07:31:16 -0500 From: Corey Minyard MIME-Version: 1.0 References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> In-Reply-To: <5520979E.2080208@acm.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU IPMI support Reply-To: minyard@acm.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Longever, Joseph" , qemu-devel On 04/04/2015 09:02 PM, Corey Minyard wrote: > 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:tcminyard@gmail.com] 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/13 >>> 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. As a note, that last comment was neither true nor fair. I apologize for this statement, and nobody should make disparaging remarks about the maintainers that work so hard on this. -corey >> >> I can set up a git repository on github. Would that help? >> >> -corey From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSrH-0002qu-32 for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfSr9-0003x3-LP for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:43:59 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:35062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSr9-0003wx-H1 for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:43:51 -0400 Received: by obbfy7 with SMTP id fy7so86523517obb.2 for ; Tue, 07 Apr 2015 05:43:50 -0700 (PDT) Sender: Corey Minyard Message-ID: <5523D102.3010408@acm.org> Date: Tue, 07 Apr 2015 07:43:46 -0500 From: Corey Minyard MIME-Version: 1.0 References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> In-Reply-To: <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] QEMU IPMI support Reply-To: minyard@acm.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Longever, Joseph" , qemu-devel On 04/07/2015 07:24 AM, Longever, Joseph wrote: > 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? Can you send your complete configuration file and startup command file? I'm guessing you haven't enabled things properly in the startup command file or in the configuration file, and if you don't do that you won't get a valid BMC. It looks like it's connecting, just not working right. Also, what version of OpenIPMI did you try? The latest git release is probably the best. I just tried it out, BTW, and it worked ok for me. -corey > 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): > > root@vBMC1:~$ 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 > > - From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSZ3-0006PX-Ec for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfSZ0-0005qV-8B for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:09 -0400 Received: from mailuogwdur.emc.com ([128.221.224.79]:18318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSZ0-0005nn-3u for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:25:06 -0400 From: "Longever, Joseph" Date: Tue, 7 Apr 2015 08:24:50 -0400 Message-ID: <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> In-Reply-To: <5520979E.2080208@acm.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU IPMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "minyard@acm.org" , qemu-devel 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 comm= unicate 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=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,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 c= hannel as well, similar problem. I also set the serial parameter for chan= nel 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 add= ress 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 defau= lt 623): root@vBMC1:~$ 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=20 -----Original Message----- From: Corey Minyard [mailto:tcminyard@gmail.com] 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 t= wo 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 t= hat 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. =20 > > Thank you, > Joel > > -----Original Message----- > From: Corey Minyard [mailto:tcminyard@gmail.com] On Behalf Of Corey=20 > 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, >> >> =20 >> >> I noticed a lot of work you had done to add IPMI/BMC emulation to=20 >> QEMU ... great work! >> >> http://sourceforge.net/p/openipmi/mailman/openipmi-developer/thread/1 >> 3 >> 69865296-19584-1-git-send-email-minyard%40acm.org/#msg30911152 >> >> >> =20 >> >> 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=20 >> set to support the latest stable QEMU version? I would like to use=20 >> OpenIPMI's lanserv to spawn a QEMU KVM with IPMI char device enabled,=20 >> however I think I need your patches to enable the device in QEMU. >> >> =20 >> >> Any suggestions or help is very much appreciated. >> >> =20 >> >> Thanks, >> >> Joel =20 >> >> =20 >> > I'm not sure when I can get this pushed in. It's really more up to the q= emu maintainers, and they are pretty busy with bigger stuff. Unless Redhat= wants changes, which is how the qemu-char changes I needed for IPMI suppor= t got into the release. > > I can set up a git repository on github. Would that help? > > -corey From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSzU-00004z-Ho for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:52:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfSzQ-0006s3-9K for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:52:28 -0400 Received: from mailuogwhop.emc.com ([168.159.213.141]:53044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfSzQ-0006ru-3Z for qemu-devel@nongnu.org; Tue, 07 Apr 2015 08:52:24 -0400 From: "Longever, Joseph" Date: Tue, 7 Apr 2015 08:51:47 -0400 Message-ID: <9C46C997A77C834C81ACBF2B3F67C317056572397A@MX43A.corp.emc.com> References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> <5523D102.3010408@acm.org> In-Reply-To: <5523D102.3010408@acm.org> Content-Language: en-US Content-Type: multipart/mixed; boundary="_002_9C46C997A77C834C81ACBF2B3F67C317056572397AMX43Acorpemcc_" MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU IPMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "minyard@acm.org" , qemu-devel --_002_9C46C997A77C834C81ACBF2B3F67C317056572397AMX43Acorpemcc_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm sure this all works and it's just me... Attached is the config, I als= o pasted the text below: The startcmd starts a QEMU instance which then PXE boots Linux kernel 2.6.3= 4 with IPMI drivers enabled in the kernel: startcmd "qemu-system-x86_64 -vnc :1 --enable-kvm -chardev socket,id=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,server,telnet,nowait -m ${VMEM} -smp ${VSMP} ${STARTCMD_OPTS}" I'm running the latest version from sourceforge: OpenIPMI-2.0.21. # vbmc.conf # A configuration file for lanserv or ipmi_sim to configure the various # communication parameters for the device. # This is a name used to identify this instance, and used to create # the default name of the emulator startup command file and eventually # the storage facility for permanent storage. name "vbmc" # # Work on the BMC first set_working_mc 0x20 # Define a LAN channel on channel 1 startlan 1 # Define an IP address and port to listen on. You can define more # than one address/port to listen on multiple addresses. The :: # listens on all addresses. addr :: 623 # Maximum privilege limit on the channel. priv_limit admin # Allowed IPMI 1.5 authorization types 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 for IPMI 2.0 authorization You can also use a string guid a123456789abcdefa123456789abcdef #guid "I_AM_A_REAL_BMC!" # You can specify a BMC key for IPMI 2.0 authorization. See the # spec for details. #bmc_key "abcdefghijklmnopqrst" # A program to get and set the LAN configuration of the interface. #lan_config_program "/usr/local/bin/ipmi_sim_lancontrol eth0" lan_config_program "./ipmi_sim_lancontrol eth0" endlan #chassis_control "./ipmi_sim_chassiscontrol 0x20" # 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=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,server,telnet,nowait -m ${VMEM} -smp ${VSMP} ${STARTCMD_OPTS}"=20 =20 # Start startcmd at startup? Default is false. startnow true # The amount of time to wait for the startcmd to do a graceful shutdown # on a powerdown request. The simulator will send a request to the # target, wait this amount of time, and then do a SIGTERM kill on the # process. If this is zero, a SIGTERM will not be done (nor will a SIGKI= LL). # Note that if the simulator does not have a connection to the VM, the # graceful shutdown is skipped and a SIGTERM is done immediately. # Default time is 60 seconds. #poweroff_wait 30 =20 # The amount of time to wait for SIGTERM to kill the process. If the pro= cess # does not terminate in this period of time, send a SIGKILL kill. If thi= s # is zero, don't send the SIGKILL. Default time is 20 seconds. #kill_wait 5 # Now add some users. User 0 is invalid, user 1 is the special "anonymou= s" # user and cannot take a username. Note that the users here are only # used if the persistent user config doesn't exist. # # valid name passw priv-lim max-sess allowed-auths user 1 true "" "test" user 10 none md2 md5 straight user 2 true "admin" "password" admin 10 none md2 md5 straight # sol "/dev/ttyS0" 115200 history=3D4000 historyfru=3D10 -----Original Message----- From: Corey Minyard [mailto:tcminyard@gmail.com] On Behalf Of Corey Minyard Sent: Tuesday, April 07, 2015 8:44 AM To: Longever, Joseph; qemu-devel Subject: Re: QEMU IPMI support On 04/07/2015 07:24 AM, Longever, Joseph wrote: > Hi Corey, > > Thanks so much for the support. I pulled down the 2.2-ipmi stable snapsh= ot and everything compiled with no issues. > > Could you help confirm my configuration? Can you send your complete configuration file and startup command file?=20 I'm guessing you haven't enabled things properly in the startup command fil= e or in the configuration file, and if you don't do that you won't get a va= lid BMC. It looks like it's connecting, just not working right. Also, what version of OpenIPMI did you try? The latest git release is prob= ably the best. I just tried it out, BTW, and it worked ok for me. -corey > I ran lanserv with the serial parameter to create the socket that will co= mmunicate 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=3D= ipmi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev= =3Dipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC= } -netdev tap,id=3Dnet0 -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 ch= annel 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 a= ddress 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 def= ault 623): > > root@vBMC1:~$ 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:* LISTE= N > tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTE= N > tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTE= N > tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTE= N > tcp 0 0 ::1:9002 :::* LISTE= N > tcp 0 0 :::22 :::* LISTE= N > tcp 0 0 :::23 :::* LISTE= N > udp 0 0 :::623 :::* > Active UNIX domain sockets (only servers) > Proto RefCnt Flags Type State I-Node Path > > Thanks, > Joel > > - --_002_9C46C997A77C834C81ACBF2B3F67C317056572397AMX43Acorpemcc_ Content-Type: application/octet-stream; name="vbmc.conf" Content-Description: vbmc.conf Content-Disposition: attachment; filename="vbmc.conf"; size=3437; creation-date="Tue, 07 Apr 2015 12:47:05 GMT"; modification-date="Tue, 07 Apr 2015 12:28:12 GMT" Content-Transfer-Enco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gbWF4LXNlc3MgYWxsb3dlZC1hdXRocwogIHVzZXIgMSB0cnVlICAi IiAgICAgICJ0ZXN0IiAgICAgdXNlciAgICAgMTAgICAgICAgbm9uZSBtZDIgbWQ1IHN0cmFpZ2h0 CiAgdXNlciAyIHRydWUgICJhZG1pbiIgInBhc3N3b3JkIiBhZG1pbiAgICAxMCAgICAgICBub25l IG1kMiBtZDUgc3RyYWlnaHQKCiAjIHNvbCAiL2Rldi90dHlTMCIgMTE1MjAwIGhpc3Rvcnk9NDAw MCBoaXN0b3J5ZnJ1PTEwCgo= --_002_9C46C997A77C834C81ACBF2B3F67C317056572397AMX43Acorpemcc_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfV56-0001Aj-IV for qemu-devel@nongnu.org; Tue, 07 Apr 2015 11:06:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfV51-0004Pf-2t for qemu-devel@nongnu.org; Tue, 07 Apr 2015 11:06:24 -0400 Received: from mailuogwhop.emc.com ([168.159.213.141]:46478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfV50-0004PF-Us for qemu-devel@nongnu.org; Tue, 07 Apr 2015 11:06:19 -0400 From: "Longever, Joseph" Date: Tue, 7 Apr 2015 11:05:53 -0400 Message-ID: <9C46C997A77C834C81ACBF2B3F67C31705657239BE@MX43A.corp.emc.com> References: <9C46C997A77C834C81ACBF2B3F67C31705657234BF@MX43A.corp.emc.com> <551ED8C5.7020003@acm.org> <9C46C997A77C834C81ACBF2B3F67C31705657237D7@MX43A.corp.emc.com> <5520979E.2080208@acm.org> <9C46C997A77C834C81ACBF2B3F67C3170565723968@MX43A.corp.emc.com> <5523D102.3010408@acm.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU IPMI support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "minyard@acm.org" , qemu-devel Hi Corey, I got it working now. The port wasn't listening on the correct address wh= en set to localhost but when I set the address to 0.0.0.0 it started listen= ing on 127.0.0.1. Set serial parameters to: serial 15 0.0.0.0 9002 codec VM ipmb 0x20 [ 10.025336] ipmi message handler version 39.2 [ 10.026097] ipmi device interface [ 10.027495] IPMI System Interface driver. [ 10.028333] ipmi_si: Trying SMBIOS-specified bt state machine at i/o add= ress 0xe4, slave address 0x20, irq 5 [ 10.044514] IRQ 5/ipmi_si: IRQF_DISABLED is not guaranteed on shared IRQ= s [ 10.045493] Using irq 5 [ 10.100474] IPMI BT: req2rsp=3D10 secs retries=3D0 [ 10.232824] ipmi: Found new BMC (man_id: 0x001291, prod_id: 0x0f02, dev= _id: 0x00) [ 10.234981] IPMI bt interface initialized [ 10.245082] IPMI Watchdog: driver initialized Thanks, Joel=20 -----Original Message----- From: Longever, Joseph=20 Sent: Tuesday, April 07, 2015 8:52 AM To: 'minyard@acm.org'; 'qemu-devel' Subject: RE: QEMU IPMI support I'm sure this all works and it's just me... Attached is the config, I als= o pasted the text below: The startcmd starts a QEMU instance which then PXE boots Linux kernel 2.6.3= 4 with IPMI drivers enabled in the kernel: startcmd "qemu-system-x86_64 -vnc :1 --enable-kvm -chardev socket,id=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,server,telnet,nowait -m ${VMEM} -smp ${VSMP} ${STARTCMD_OPTS}" I'm running the latest version from sourceforge: OpenIPMI-2.0.21. # vbmc.conf # A configuration file for lanserv or ipmi_sim to configure the various # c= ommunication parameters for the device. # This is a name used to identify this instance, and used to create # the d= efault name of the emulator startup command file and eventually # the stora= ge facility for permanent storage. name "vbmc" # # Work on the BMC first set_working_mc 0x20 # Define a LAN channel on channel 1 startlan 1 # Define an IP address and port to listen on. You can define more # than one address/port to listen on multiple addresses. The :: # listens on all addresses. addr :: 623 # Maximum privilege limit on the channel. priv_limit admin # Allowed IPMI 1.5 authorization types 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 for IPMI 2.0 authorization You can also use a string guid a123456789abcdefa123456789abcdef #guid "I_AM_A_REAL_BMC!" # You can specify a BMC key for IPMI 2.0 authorization. See the # spec for details. #bmc_key "abcdefghijklmnopqrst" # A program to get and set the LAN configuration of the interface. #lan_config_program "/usr/local/bin/ipmi_sim_lancontrol eth0" lan_config_program "./ipmi_sim_lancontrol eth0" endlan #chassis_control "./ipmi_sim_chassiscontrol 0x20" # 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=3Dip= mi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev=3D= ipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC} -= netdev tap,id=3Dnet0 -device ich9-usb-ehci1 -daemonize -serial mon:tcp::900= 3,server,telnet,nowait -m ${VMEM} -smp ${VSMP} ${STARTCMD_OPTS}"=20 =20 # Start startcmd at startup? Default is false. startnow true # The amount of time to wait for the startcmd to do a graceful shutdown # on a powerdown request. The simulator will send a request to the # target, wait this amount of time, and then do a SIGTERM kill on the # process. If this is zero, a SIGTERM will not be done (nor will a SIGKI= LL). # Note that if the simulator does not have a connection to the VM, the # graceful shutdown is skipped and a SIGTERM is done immediately. # Default time is 60 seconds. #poweroff_wait 30 =20 # The amount of time to wait for SIGTERM to kill the process. If the pro= cess # does not terminate in this period of time, send a SIGKILL kill. If thi= s # is zero, don't send the SIGKILL. Default time is 20 seconds. #kill_wait 5 # Now add some users. User 0 is invalid, user 1 is the special "anonymou= s" # user and cannot take a username. Note that the users here are only # used if the persistent user config doesn't exist. # # valid name passw priv-lim max-sess allowed-auths user 1 true "" "test" user 10 none md2 md5 straight user 2 true "admin" "password" admin 10 none md2 md5 straight # sol "/dev/ttyS0" 115200 history=3D4000 historyfru=3D10 -----Original Message----- From: Corey Minyard [mailto:tcminyard@gmail.com] On Behalf Of Corey Minyard Sent: Tuesday, April 07, 2015 8:44 AM To: Longever, Joseph; qemu-devel Subject: Re: QEMU IPMI support On 04/07/2015 07:24 AM, Longever, Joseph wrote: > Hi Corey, > > Thanks so much for the support. I pulled down the 2.2-ipmi stable snapsh= ot and everything compiled with no issues. > > Could you help confirm my configuration? Can you send your complete configuration file and startup command file?=20 I'm guessing you haven't enabled things properly in the startup command fil= e or in the configuration file, and if you don't do that you won't get a va= lid BMC. It looks like it's connecting, just not working right. Also, what version of OpenIPMI did you try? The latest git release is prob= ably the best. I just tried it out, BTW, and it worked ok for me. -corey > I ran lanserv with the serial parameter to create the socket that will co= mmunicate 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=3D= ipmi0,host=3Dlocalhost,port=3D9002,reconnect=3D10 -device isa-ipmi,chardev= =3Dipmi0,interface=3Dbt,irq=3D5 -device e1000,netdev=3Dnet0,mac=3D${VNETMAC= } -netdev tap,id=3Dnet0 -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 ch= annel 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 a= ddress 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 def= ault 623): > > root@vBMC1:~$ 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:* LISTE= N > tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTE= N > tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTE= N > tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTE= N > tcp 0 0 ::1:9002 :::* LISTE= N > tcp 0 0 :::22 :::* LISTE= N > tcp 0 0 :::23 :::* LISTE= N > udp 0 0 :::623 :::* > Active UNIX domain sockets (only servers) > Proto RefCnt Flags Type State I-Node Path > > Thanks, > Joel > > -