Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
A.6. Virtualization Logs
The following methods can be used to access logged data about events on your hypervisor and your guests. This can be helpful when troubleshooting virtualization on your system.
- Each guest has a log, saved in the
/var/log/libvirt/qemu/directory. The logs are named GuestName.log and are periodically compressed when a size limit is reached. - To view
libvirtevents in thesystemdJournal, use the following command:journalctl _SYSTEMD_UNIT=libvirtd.service
# journalctl _SYSTEMD_UNIT=libvirtd.serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow - The
auvirtcommand displays audit results related to guests on your hypervisor. The displayed data can be narrowed down by selecting specific guests, time frame, and information format. For example, the following command provides a summary of events on thetestguestvirtual machine on the current day.Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can also configure auvirt information to be automatically included in thesystemdJournal. To do so, edit the/etc/libvirt/libvirtd.conffile and set the value of theaudit_loggingparameter to1.For more information, see theauvirtman page. - If you encounter any errors with the Virtual Machine Manager, you can review the generated data in the
virt-manager.logfile in the$HOME/.virt-manager/directory. - For audit logs of the hypervisor system, see the
/var/log/audit/audit.logfile. - Depending on the guest operating system, various system log files may also be saved on the guest.
For more information about logging in Red Hat Enterprise Linux, see the System Administrator's Guide.