<html><body>
<p><tt>Eric Blake <eblake@redhat.com> wrote on 08/23/2012 04:32:02 PM:<br>
<br>
> From:</tt><br>
<tt>> <br>
> Eric Blake <eblake@redhat.com></tt><br>
<tt>> <br>
> To:</tt><br>
<tt>> <br>
> Richa Marwaha/Silicon Valley/IBM@IBMUS</tt><br>
<tt>> <br>
> Cc:</tt><br>
<tt>> <br>
> libvir-list@redhat.com</tt><br>
<tt>> <br>
> Date:</tt><br>
<tt>> <br>
> 08/23/2012 04:32 PM</tt><br>
<tt>> <br>
> Subject:</tt><br>
<tt>> <br>
> Re: [libvirt] Guest log getting written in cache directory rather /<br>
> var/log/libvirt/qemu</tt><br>
<tt>> <br>
> On 08/23/2012 02:19 PM, Richa Marwaha wrote:<br>
> > <br>
> > Hi Everyone<br>
> > <br>
> > I am running libvirt with selinux driver under unprivileged user and the<br>
> > Guest.log file is not written into /var/log/libvirt/qemu/Guest.log but<br>
> > remains in Home Directory/.cache/libvirt/qemu/log/Guest.log.<br>
> > Does anyone know why its not writing to the required log location.<br>
> <br>
> That _is_ the desired default location for qemu:///session, and can be<br>
> further tuned by setting appropriate values for XDG_CONFIG_DIR<br>
> (defaulting to $HOME/.config) and contents of<br>
> $XDG_CONFIG_DIR/libvirt/libvirtd.conf (set the log_outputs config<br>
> variable).  Only qemu:///system (for privileged users) has permissions<br>
> to write into /var/log.<br>
></tt><br>
<tt>Thanks a lot Eric for the information. <br>
> -- <br>
> Eric Blake   eblake@redhat.com    +1-919-301-3266<br>
> Libvirt virtualization library <a href="http://libvirt.org">http://libvirt.org</a><br>
> <br>
> [attachment "signature.asc" deleted by Richa Marwaha/Silicon Valley/IBM] </tt></body></html>