
From:
Eric Blake <eblake@redhat.com>
To:
Richa Marwaha/Silicon Valley/IBM@IBMUS
Cc:
libvir-list@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
Eric Blake <eblake@redhat.com> wrote on 08/23/2012 04:32:02 PM: 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@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
[attachment "signature.asc" deleted by Richa Marwaha/Silicon Valley/IBM]