[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]