* [Qemu-devel] Cant make the IPMI simulator work, help needed. @ 2015-06-02 10:58 RamakrishnaDeepak Battu 2015-06-04 18:45 ` Corey Minyard 0 siblings, 1 reply; 4+ messages in thread From: RamakrishnaDeepak Battu @ 2015-06-02 10:58 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: text/plain, Size: 1835 bytes --] Hi, I am trying to simulate the IPMI simulator for test purposes but was failing somehow.. I see lot of help being given in this forum , especially Corey Minyard. Thank you. I am new to IPMI and QEMU, but followed the threads and was able to fix up to some point. Right now struck and not able to figure out .So reaching for you guys help. I compiled and installed stable-2.2-ipmi Qemu branch, and new version of OpenIPMI. I am using the cirros image to boot up using the Qemu. My startcmd is as follows: /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net nic,model=e1000,macaddr=52:54:00:12:34:59 -net user,hostfwd=tcp::5555-10.0.2.15:22 -chardev socket,id=ipmi0,host=localhost,port=9002,reconnect=10 -device isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial mon:tcp::9003,server,telnet,nowait -initrd /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda console=ttyS0,115200' When ran Qemu command alone on the console get this error: qemu-system-x86_64: Unable to connect character device ipmi0: Error connecting to socket: Connection refused My BMC and lan.conf are https://gist.github.com/bot11/5d33a14a1cba442b5ef2 https://gist.github.com/bot11/3c385eea081609a8a7f4 Once I ran the ipmi_sim command, I can see the bmc variables read from the emu file, but I dont see the qemu instance booted up. And when I ran the ipmitool , I am getting the following errors: [root@localhost~]# ipmitool -I lanplus -v -H 127.0.0.1 -p 9002 -U ipmiusr power status Password: Get Auth Capabilities error Get Auth Capabilities error Error issuing Get Channel Authentication Capabilies request Error: Unable to establish IPMI v2 / RMCP+ session Unable to get Chassis Power Status ---- This is where I am struck. Please suggest. Thanks, Ramakrishna. [-- Attachment #2: Type: text/html, Size: 3868 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Cant make the IPMI simulator work, help needed. 2015-06-02 10:58 [Qemu-devel] Cant make the IPMI simulator work, help needed RamakrishnaDeepak Battu @ 2015-06-04 18:45 ` Corey Minyard 2015-06-08 5:24 ` RamakrishnaDeepak Battu 0 siblings, 1 reply; 4+ messages in thread From: Corey Minyard @ 2015-06-04 18:45 UTC (permalink / raw) To: RamakrishnaDeepak Battu Cc: openipmi-developer@lists.sourceforge.net, qemu-devel This question is probably best destined for the openipmi mailing list, not qemu, so I'll add that to the CC. This work is still not completely there, so it will be changing, but it should work as is. On 06/02/2015 05:58 AM, RamakrishnaDeepak Battu wrote: > Hi, > > I am trying to simulate the IPMI simulator for test purposes but was > failing somehow.. > I see lot of help being given in this forum , especially Corey > Minyard. Thank you. > I am new to IPMI and QEMU, but followed the threads and was able to > fix up to some point. Right now struck and not able to figure out .So > reaching for you guys help. > > I compiled and installed stable-2.2-ipmi Qemu branch, and new version > of OpenIPMI. > I am using the cirros image to boot up using the Qemu. > > My startcmd is as follows: > > /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net > nic,model=e1000,macaddr=52:54:00:12:34:59 -net > user,hostfwd=tcp::5555-10.0.2.15:22 -chardev > socket,id=ipmi0,host=localhost,port=9002,reconnect=10 -device > isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial > mon:tcp::9003,server,telnet,nowait -initrd > /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel > /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda > console=ttyS0,115200' > What happens when you run this by hand directly from the command line? > When ran Qemu command alone on the console get this error: > qemu-system-x86_64: Unable to connect character device ipmi0: Error > connecting to socket: Connection refused > > My BMC and lan.conf are > https://gist.github.com/bot11/5d33a14a1cba442b5ef2 > https://gist.github.com/bot11/3c385eea081609a8a7f4 > > Once I ran the ipmi_sim command, I can see the bmc variables read from > the emu file, but I dont see the qemu instance booted up. > And when I ran the ipmitool , I am getting the following errors: > > [root@localhost~]# ipmitool -I lanplus -v -H 127.0.0.1 -p 9002 -U > ipmiusr power status > Password: > Get Auth Capabilities error > Get Auth Capabilities error > Error issuing Get Channel Authentication Capabilies request > Error: Unable to establish IPMI v2 / RMCP+ session > Unable to get Chassis Power Status > ---- > You have the IPMI port set to 623 in the lan.conf config. You have the VM interface on port 9002. So you should use 623. -corey > > This is where I am struck. Please suggest. > > Thanks, > Ramakrishna. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Cant make the IPMI simulator work, help needed. 2015-06-04 18:45 ` Corey Minyard @ 2015-06-08 5:24 ` RamakrishnaDeepak Battu 2015-06-09 2:21 ` Corey Minyard 0 siblings, 1 reply; 4+ messages in thread From: RamakrishnaDeepak Battu @ 2015-06-08 5:24 UTC (permalink / raw) To: minyard; +Cc: openipmi-developer@lists.sourceforge.net, qemu-devel [-- Attachment #1: Type: text/plain, Size: 3760 bytes --] Thank you Corey. I haven't noticed the port 623, I changed it. If I ran this command alone: /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net nic,model=e1000,macaddr=52:54:00:12:34:59 -net user,hostfwd=tcp::5555-10.0.2.15:22 -chardev socket,id=ipmi0,host=localhost,port=623,reconnect=10 -device isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial mon:tcp::9003,server,telnet,nowait -initrd /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda console=ttyS0,115200' I am getting the following error: qemu-system-x86_64: Unable to connect character device ipmi0: Error connecting to socket: Connection refused I dont see the IPMI momdules installed on the server I was using , is that the cause? [root@redhat2 ~]# lsmod | grep ipmi_devintf [root@redhat2 ~]# lsmod | grep ipmi_si [root@redhat2 ~]# uname -s -r Linux 2.6.32-358.el6.x86_64 I tried installing from yum, and restarting the server , but in vain. [root@redhat2 ~]# yum install OpenIPMI.x86_64 ..... [root@redhat2 ~]# ls /dev/ipmi0 ls: cannot access /dev/ipmi0: No such file or directory Thanks, Ramakrishna. On Fri, Jun 5, 2015 at 12:15 AM, Corey Minyard <minyard@acm.org> wrote: > This question is probably best destined for the openipmi mailing list, > not qemu, so I'll add that to the CC. > > This work is still not completely there, so it will be changing, but it > should work as is. > > On 06/02/2015 05:58 AM, RamakrishnaDeepak Battu wrote: > > Hi, > > > > I am trying to simulate the IPMI simulator for test purposes but was > > failing somehow.. > > I see lot of help being given in this forum , especially Corey > > Minyard. Thank you. > > I am new to IPMI and QEMU, but followed the threads and was able to > > fix up to some point. Right now struck and not able to figure out .So > > reaching for you guys help. > > > > I compiled and installed stable-2.2-ipmi Qemu branch, and new version > > of OpenIPMI. > > I am using the cirros image to boot up using the Qemu. > > > > My startcmd is as follows: > > > > /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net > > nic,model=e1000,macaddr=52:54:00:12:34:59 -net > > user,hostfwd=tcp::5555-10.0.2.15:22 -chardev > > socket,id=ipmi0,host=localhost,port=9002,reconnect=10 -device > > isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial > > mon:tcp::9003,server,telnet,nowait -initrd > > /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel > > /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda > > console=ttyS0,115200' > > > > What happens when you run this by hand directly from the command line? > > > When ran Qemu command alone on the console get this error: > > qemu-system-x86_64: Unable to connect character device ipmi0: Error > > connecting to socket: Connection refused > > > > My BMC and lan.conf are > > https://gist.github.com/bot11/5d33a14a1cba442b5ef2 > > https://gist.github.com/bot11/3c385eea081609a8a7f4 > > > > Once I ran the ipmi_sim command, I can see the bmc variables read from > > the emu file, but I dont see the qemu instance booted up. > > And when I ran the ipmitool , I am getting the following errors: > > > > [root@localhost~]# ipmitool -I lanplus -v -H 127.0.0.1 -p 9002 -U > > ipmiusr power status > > Password: > > Get Auth Capabilities error > > Get Auth Capabilities error > > Error issuing Get Channel Authentication Capabilies request > > Error: Unable to establish IPMI v2 / RMCP+ session > > Unable to get Chassis Power Status > > ---- > > > > You have the IPMI port set to 623 in the lan.conf config. You have the > VM interface on port 9002. So you should use 623. > > -corey > > > > > This is where I am struck. Please suggest. > > > > Thanks, > > Ramakrishna. > > [-- Attachment #2: Type: text/html, Size: 5298 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Cant make the IPMI simulator work, help needed. 2015-06-08 5:24 ` RamakrishnaDeepak Battu @ 2015-06-09 2:21 ` Corey Minyard 0 siblings, 0 replies; 4+ messages in thread From: Corey Minyard @ 2015-06-09 2:21 UTC (permalink / raw) To: RamakrishnaDeepak Battu Cc: openipmi-developer@lists.sourceforge.net, qemu-devel On 06/08/2015 12:24 AM, RamakrishnaDeepak Battu wrote: > Thank you Corey. > > I haven't noticed the port 623, I changed it. > > If I ran this command alone: > /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net > nic,model=e1000,macaddr=52:54:00:12:34:59 -net > user,hostfwd=tcp::5555-10.0.2.15:22 -chardev > socket,id=ipmi0,host=localhost,port=623,reconnect=10 -device > isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial > mon:tcp::9003,server,telnet,nowait -initrd > /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel > /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda > console=ttyS0,115200' > > I am getting the following error: > qemu-system-x86_64: Unable to connect character device ipmi0: Error > connecting to socket: Connection refused > That was the wrong thing to change. The port there is the connection to OpenIPMI's VM interface, which is 9002. 623 is the port you use for ipmitool. Set the port back to 9002 in the command line above, run ipmi_sim, leave ipmi_sim running, and run qemu from the command line. That way it has something to connect to. Also, what branch in the qemu ipmi repository are you using? The 2.3 one may have an issue. The 2.2 one should work ok. > > I dont see the IPMI momdules installed on the server I was using , is > that the cause? No, that's irrelevant for this. -corey > [root@redhat2 ~]# lsmod | grep ipmi_devintf > [root@redhat2 ~]# lsmod | grep ipmi_si > [root@redhat2 ~]# uname -s -r > Linux 2.6.32-358.el6.x86_64 > > I tried installing from yum, and restarting the server , but in vain. > [root@redhat2 ~]# yum install OpenIPMI.x86_64 > ..... > [root@redhat2 ~]# ls /dev/ipmi0 > ls: cannot access /dev/ipmi0: No such file or directory > > > Thanks, > Ramakrishna. > > On Fri, Jun 5, 2015 at 12:15 AM, Corey Minyard <minyard@acm.org > <mailto:minyard@acm.org>> wrote: > > This question is probably best destined for the openipmi mailing list, > not qemu, so I'll add that to the CC. > > This work is still not completely there, so it will be changing, > but it > should work as is. > > On 06/02/2015 05:58 AM, RamakrishnaDeepak Battu wrote: > > Hi, > > > > I am trying to simulate the IPMI simulator for test purposes > but was > > failing somehow.. > > I see lot of help being given in this forum , especially Corey > > Minyard. Thank you. > > I am new to IPMI and QEMU, but followed the threads and was able to > > fix up to some point. Right now struck and not able to figure > out .So > > reaching for you guys help. > > > > I compiled and installed stable-2.2-ipmi Qemu branch, and new > version > > of OpenIPMI. > > I am using the cirros image to boot up using the Qemu. > > > > My startcmd is as follows: > > > > /usr/local/bin/qemu-system-x86_64 --enable-kvm -nographic -net > > nic,model=e1000,macaddr=52:54:00:12:34:59 -net > > user,hostfwd=tcp::5555-10.0.2.15:22 -chardev > > socket,id=ipmi0,host=localhost,port=9002,reconnect=10 -device > > isa-ipmi,chardev=ipmi0,interface=bt,irq=5 -serial > > mon:tcp::9003,server,telnet,nowait -initrd > > /opt/cirros/cirros-0.3.4-x86_64-initramfs -kernel > > /opt/cirros/cirros-0.3.4-x86_64-kernel --append 'root=/dev/hda > > console=ttyS0,115200' > > > > What happens when you run this by hand directly from the command line? > > > When ran Qemu command alone on the console get this error: > > qemu-system-x86_64: Unable to connect character device ipmi0: Error > > connecting to socket: Connection refused > > > > My BMC and lan.conf are > > https://gist.github.com/bot11/5d33a14a1cba442b5ef2 > > https://gist.github.com/bot11/3c385eea081609a8a7f4 > > > > Once I ran the ipmi_sim command, I can see the bmc variables > read from > > the emu file, but I dont see the qemu instance booted up. > > And when I ran the ipmitool , I am getting the following errors: > > > > [root@localhost~]# ipmitool -I lanplus -v -H 127.0.0.1 -p 9002 -U > > ipmiusr power status > > Password: > > Get Auth Capabilities error > > Get Auth Capabilities error > > Error issuing Get Channel Authentication Capabilies request > > Error: Unable to establish IPMI v2 / RMCP+ session > > Unable to get Chassis Power Status > > ---- > > > > You have the IPMI port set to 623 in the lan.conf config. You > have the > VM interface on port 9002. So you should use 623. > > -corey > > > > > This is where I am struck. Please suggest. > > > > Thanks, > > Ramakrishna. > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-09 2:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-06-02 10:58 [Qemu-devel] Cant make the IPMI simulator work, help needed RamakrishnaDeepak Battu 2015-06-04 18:45 ` Corey Minyard 2015-06-08 5:24 ` RamakrishnaDeepak Battu 2015-06-09 2:21 ` Corey Minyard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).