From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYJ0D-0006HC-6F for qemu-devel@nongnu.org; Wed, 18 Mar 2015 14:47:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYJ06-0005Ox-F3 for qemu-devel@nongnu.org; Wed, 18 Mar 2015 14:47:37 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:33485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYJ06-0005ON-Ab for qemu-devel@nongnu.org; Wed, 18 Mar 2015 14:47:30 -0400 Received: by obcxo2 with SMTP id xo2so39045358obc.0 for ; Wed, 18 Mar 2015 11:47:29 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 19 Mar 2015 00:17:29 +0530 Message-ID: From: Toms Varghese Content-Type: multipart/alternative; boundary=001a113ce006e4e71505119483c1 Subject: [Qemu-devel] Output of fprintf messages in qemu source List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001a113ce006e4e71505119483c1 Content-Type: text/plain; charset=UTF-8 Hi all, I can see some fprintf (stderr, ...) statements in qemu source code. I expect the output to be shown in the terminal window. I use libvirt to manage my VMs and hence have no idea about the exact qemu command line being used. From the comments in the below post http://blog.vmsplice.net/2011/03/how-to-write-trace-analysis-scripts-for.html I found that libvirt is supposed to store the stderr outputs in /var/lib/libvirt/qemu/.log file. But I am unable to find any such log file in /var/lib/libvirt/qemu. Can anyone please tell me how to get the output of fprintfs in this case as it would help me a lot? I am using fedora 21, qemu 2.0.2 and libvirt 1.2.9.2. Thanks and Regards Toms Varghese --001a113ce006e4e71505119483c1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I can see some fprintf (stderr,= ...) statements in qemu source code. I expect the output to be shown in = =C2=A0the terminal window. I use libvirt to manage my VMs and hence have no= idea about the exact qemu command line being used. From the comments in th= e below post
I found that libvirt= is supposed to store the stderr outputs in=C2=A0/var/lib/libvirt/qemu/.log= file. But I am unable to find any such log file in /var/lib/libvirt/qemu. = Can anyone please tell me how to get the output of fprintfs in this case as= it would help me a lot?
I am using fedora 21, qemu 2.0.2 and lib= virt 1.2.9.2.

Thanks and Regards
Toms Va= rghese

--001a113ce006e4e71505119483c1-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1lO-0006Nw-27 for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya1lH-0005of-Lp for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:25 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1lH-0005oD-Ft for qemu-devel@nongnu.org; Mon, 23 Mar 2015 08:47:19 -0400 Received: by wibg7 with SMTP id g7so46318852wib.1 for ; Mon, 23 Mar 2015 05:47:18 -0700 (PDT) Date: Mon, 23 Mar 2015 12:47:16 +0000 From: Stefan Hajnoczi Message-ID: <20150323124716.GC9268@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WfZ7S8PLGjBY9Voh" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Output of fprintf messages in qemu source List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Toms Varghese Cc: qemu-devel@nongnu.org --WfZ7S8PLGjBY9Voh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 19, 2015 at 12:17:29AM +0530, Toms Varghese wrote: > Hi all, >=20 > I can see some fprintf (stderr, ...) statements in qemu source code. I > expect the output to be shown in the terminal window. I use libvirt to > manage my VMs and hence have no idea about the exact qemu command line > being used. From the comments in the below post > http://blog.vmsplice.net/2011/03/how-to-write-trace-analysis-scripts-for.= html > I found that libvirt is supposed to store the stderr outputs > in /var/lib/libvirt/qemu/.log file. But I am unable to find any such log > file in /var/lib/libvirt/qemu. Can anyone please tell me how to get the > output of fprintfs in this case as it would help me a lot? > I am using fedora 21, qemu 2.0.2 and libvirt 1.2.9.2. The file name is: /var/lib/libvirt/qemu/.log It includes the QEMU command-line as well as stderr output. Stefan --WfZ7S8PLGjBY9Voh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVEAtUAAoJEJykq7OBq3PIv+gH/1VyFCY06VT+Q48wfwtQNm0b dLdio8aywgN6C9QpnPqKPN+52mRnI4C4pBAH+FVMheTXAraas2ZpnZ7+t4VtC26e qoXAWbFt7ErXwzqJWiq13Pox/MEkpav0eXL80CbXV0ETpNELtMJZfvOixGJDVlwu jJ/hPLE+9Y0N5qMksqgsCImgSRr1ZHnJcDoYvcmwr/pSQN11VV16zHCgEXAowEFH NzutQ0CTLjWFT43qltf4XXLYi+rNlZ8812JsBg0I+yekjzGVot3iJQYApY/wshm+ ofpVscM6ZFdsi/C88DoSRkHqzK0O1Kc3tJe/aoiQ+7BjUXWz7lFSfzYNEmdL9eA= =Yha8 -----END PGP SIGNATURE----- --WfZ7S8PLGjBY9Voh-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaOz0-0006zX-KH for qemu-devel@nongnu.org; Tue, 24 Mar 2015 09:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaOyz-0004QW-1t for qemu-devel@nongnu.org; Tue, 24 Mar 2015 09:35:02 -0400 Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:34745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaOyy-0004QJ-SS for qemu-devel@nongnu.org; Tue, 24 Mar 2015 09:35:00 -0400 Received: by oier21 with SMTP id r21so167748836oie.1 for ; Tue, 24 Mar 2015 06:35:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150323124716.GC9268@stefanha-thinkpad.redhat.com> References: <20150323124716.GC9268@stefanha-thinkpad.redhat.com> Date: Tue, 24 Mar 2015 19:04:59 +0530 Message-ID: From: Toms Varghese Content-Type: multipart/alternative; boundary=001a113cc356673e65051208d96b Subject: Re: [Qemu-devel] Output of fprintf messages in qemu source List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org --001a113cc356673e65051208d96b Content-Type: text/plain; charset=UTF-8 In my Fedora, I couldn't find the file in the mentioned path. I got it finally from /var/log/libvirt/qemu/.log Thanks a lot for the help. Regards Toms Varghese On Mon, Mar 23, 2015 at 6:17 PM, Stefan Hajnoczi wrote: > On Thu, Mar 19, 2015 at 12:17:29AM +0530, Toms Varghese wrote: > > Hi all, > > > > I can see some fprintf (stderr, ...) statements in qemu source code. I > > expect the output to be shown in the terminal window. I use libvirt to > > manage my VMs and hence have no idea about the exact qemu command line > > being used. From the comments in the below post > > > http://blog.vmsplice.net/2011/03/how-to-write-trace-analysis-scripts-for.html > > I found that libvirt is supposed to store the stderr outputs > > in /var/lib/libvirt/qemu/.log file. But I am unable to find any such log > > file in /var/lib/libvirt/qemu. Can anyone please tell me how to get the > > output of fprintfs in this case as it would help me a lot? > > I am using fedora 21, qemu 2.0.2 and libvirt 1.2.9.2. > > The file name is: > /var/lib/libvirt/qemu/.log > > It includes the QEMU command-line as well as stderr output. > > Stefan > --001a113cc356673e65051208d96b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In my Fedora, I couldn't find the file in the mentione= d path. I got it finally from
/var/log/libvirt/qemu/<domain>.log<= /div>
Thanks a lot for the help.

Regards
=
Toms Varghese

On Mon, Mar 23, 2015 at 6:17 PM, Stefan Hajnoczi <stefanha@g= mail.com> wrote:
On Thu, Mar 19, 2015 at 12:17:29AM +0530, T= oms Varghese wrote:
> Hi all,
>
> I can see some fprintf (stderr, ...) statements in qemu source code. I=
> expect the output to be shown in=C2=A0 the terminal window. I use libv= irt to
> manage my VMs and hence have no idea about the exact qemu command line=
> being used. From the comments in the below post
> http://blog.vmsplice.net/2011/03/how-= to-write-trace-analysis-scripts-for.html
> I found that libvirt is supposed to store the stderr outputs
> in /var/lib/libvirt/qemu/.log file. But I am unable to find any such l= og
> file in /var/lib/libvirt/qemu. Can anyone please tell me how to get th= e
> output of fprintfs in this case as it would help me a lot?
> I am using fedora 21, qemu 2.0.2 and libvirt 1.2.9.2.

The file name is:
/var/lib/libvirt/qemu/<domain>.log

It includes the QEMU command-line as well as stderr output.

Stefan

--001a113cc356673e65051208d96b-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcbGV-0001ru-88 for qemu-devel@nongnu.org; Mon, 30 Mar 2015 11:06:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcbGP-0003SC-Tw for qemu-devel@nongnu.org; Mon, 30 Mar 2015 11:06:11 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:33349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcbGP-0003S6-O1 for qemu-devel@nongnu.org; Mon, 30 Mar 2015 11:06:05 -0400 Received: by wgbgs4 with SMTP id gs4so87498080wgb.0 for ; Mon, 30 Mar 2015 08:06:05 -0700 (PDT) Date: Mon, 30 Mar 2015 16:05:57 +0100 From: Stefan Hajnoczi Message-ID: <20150330150557.GN25181@stefanha-thinkpad.redhat.com> References: <20150323124716.GC9268@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b1ERR0FXR0PvNIRE" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Output of fprintf messages in qemu source List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Toms Varghese Cc: qemu-devel@nongnu.org --b1ERR0FXR0PvNIRE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 24, 2015 at 07:04:59PM +0530, Toms Varghese wrote: > In my Fedora, I couldn't find the file in the mentioned path. I got it > finally from > /var/log/libvirt/qemu/.log Sorry, my mistake. "lib" was a typo. Stefan --b1ERR0FXR0PvNIRE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVGWZVAAoJEJykq7OBq3PINloH/3pjAx1fWbDigaCcYfiCVOGL 9E+sJGIFKdyv/oF5hPZJ4zSGb6hpFiOLxaQdGA5DI8W8orN4kM5Fp7QHjDcmT9rU LeSUtv8As1PE9EQ4OpifeC27Qxa+RkVC3duGoGZRXNUx/SkRx3Sf397KO9+jItjr MkkmJzEwU4UVzWetu4JM8GpJu+zEIyDk6WF1r3VXjemejYVBqNK1Bc8YYxERjgCs 49Wz/9kZjSGvJQJSGkLAlyah+TBaGuqJokk/PLbCgTe4sakCtgLOZXGZSL88q/T7 1k7PWmNVi5KCwWypSh93aDnVfF7R3mxBTPpwbD66EBZwi4Wof3YT4eYkkI3DM54= =8NO9 -----END PGP SIGNATURE----- --b1ERR0FXR0PvNIRE--