[libvirt] Guest log getting written in cache directory rather /var/log/libvirt/qemu

Richa Marwaha rmarwah at us.ibm.com
Thu Aug 23 20:39:22 UTC 2012



Eric Blake <eblake at redhat.com> wrote on 08/23/2012 04:32:02 PM:

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


More information about the libvir-list mailing list