* [Qemu-devel] Question on QEMU : How to record debug log in VM of QEMU
@ 2019-05-07 2:29 S KH
2019-05-09 13:45 ` Stefan Hajnoczi
0 siblings, 1 reply; 3+ messages in thread
From: S KH @ 2019-05-07 2:29 UTC (permalink / raw)
To: qemu-devel
This is a question I have encountered while using QEMU.
I want to compile the source directly rather than through apt or yum and
install QEMU and input the output statement to the source to check the
output value.
When I compiled QEMU using dpkg-buildpackage in Ubuntu, I verified that
when QEMU's VM is executed by inputting and compiling the output statement,
the output value is recorded in the log file(ex.
/var/log/libvirt/qemu/win7.log) of that VM.
In Centos, I tried to use rpmbuild to input the output to QEMU source,
compile and check the output value. I confirmed that the log file is not
written, but I have confirmed that the output value is rare from the
terminal during the compilation process.
What I want to do is to get the output to be written to the log file like
in Ubuntu.
Thank you
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Question on QEMU : How to record debug log in VM of QEMU
2019-05-07 2:29 [Qemu-devel] Question on QEMU : How to record debug log in VM of QEMU S KH
@ 2019-05-09 13:45 ` Stefan Hajnoczi
2019-05-09 14:20 ` Daniel P. Berrangé
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2019-05-09 13:45 UTC (permalink / raw)
To: S KH; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1098 bytes --]
On Tue, May 07, 2019 at 11:29:03AM +0900, S KH wrote:
> This is a question I have encountered while using QEMU.
>
> I want to compile the source directly rather than through apt or yum and
> install QEMU and input the output statement to the source to check the
> output value.
>
> When I compiled QEMU using dpkg-buildpackage in Ubuntu, I verified that
> when QEMU's VM is executed by inputting and compiling the output statement,
> the output value is recorded in the log file(ex.
> /var/log/libvirt/qemu/win7.log) of that VM.
>
> In Centos, I tried to use rpmbuild to input the output to QEMU source,
> compile and check the output value. I confirmed that the log file is not
> written, but I have confirmed that the output value is rare from the
> terminal during the compilation process.
>
> What I want to do is to get the output to be written to the log file like
> in Ubuntu.
Try diffing /etc/libvirt/qemu.conf between the Ubuntu and CentOS hosts.
Maybe they have different logging setups. In particular, the
stdio_handler setting might be different.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Question on QEMU : How to record debug log in VM of QEMU
2019-05-09 13:45 ` Stefan Hajnoczi
@ 2019-05-09 14:20 ` Daniel P. Berrangé
0 siblings, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2019-05-09 14:20 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: qemu-devel, S KH
On Thu, May 09, 2019 at 02:45:25PM +0100, Stefan Hajnoczi wrote:
> On Tue, May 07, 2019 at 11:29:03AM +0900, S KH wrote:
> > This is a question I have encountered while using QEMU.
> >
> > I want to compile the source directly rather than through apt or yum and
> > install QEMU and input the output statement to the source to check the
> > output value.
> >
> > When I compiled QEMU using dpkg-buildpackage in Ubuntu, I verified that
> > when QEMU's VM is executed by inputting and compiling the output statement,
> > the output value is recorded in the log file(ex.
> > /var/log/libvirt/qemu/win7.log) of that VM.
> >
> > In Centos, I tried to use rpmbuild to input the output to QEMU source,
> > compile and check the output value. I confirmed that the log file is not
> > written, but I have confirmed that the output value is rare from the
> > terminal during the compilation process.
> >
> > What I want to do is to get the output to be written to the log file like
> > in Ubuntu.
>
> Try diffing /etc/libvirt/qemu.conf between the Ubuntu and CentOS hosts.
> Maybe they have different logging setups. In particular, the
> stdio_handler setting might be different.
That shouldn't matter - regardless of which stdio_handler is in use,
the logs end up in the same file, with no buffering added by libvirt.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-09 14:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 2:29 [Qemu-devel] Question on QEMU : How to record debug log in VM of QEMU S KH
2019-05-09 13:45 ` Stefan Hajnoczi
2019-05-09 14:20 ` Daniel P. Berrangé
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.