#顯示虛擬機的日志,vm可以是開機
[root@node71 ~]# virt-log -a /home/data/vm/oel1/oel1_qcow2.img
Oct 24 03:30:01 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="963" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Oct 24 04:29:44 localhost init: serial (ttyS0) main process (1142) killed by TERM signal
Oct 24 04:29:44 localhost init: tty (/dev/tty2) main process (1146) killed by TERM signal
Oct 24 04:29:44 localhost init: tty (/dev/tty3) main process (1148) killed by TERM signal
Oct 24 04:29:44 localhost init: tty (/dev/tty4) main process (1150) killed by TERM signal
Oct 24 04:29:44 localhost init: tty (/dev/tty5) main process (1152) killed by TERM signal
Oct 24 04:29:44 localhost init: tty (/dev/tty6) main process (1154) killed by TERM signal
Oct 24 04:29:45 localhost acpid: exiting
Oct 24 04:29:45 localhost auditd[941]: The audit daemon is exiting.
Oct 24 04:29:45 localhost kernel: type=1305 audit(1477297785.679:49): audit_pid=0 old=941 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
Oct 24 04:29:45 localhost kernel: type=1305 audit(1477297785.808:50): audit_enabled=0 old=1 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditctl_t:s0 res=1
Oct 24 04:29:45 localhost kernel: Kernel logging (proc) stopped.
Oct 24 04:29:45 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="963" x-info="http://www.rsyslog.com"] exiting on signal 15.
Oct 25 02:57:31 localhost kernel: imklog 5.8.10, log source = /proc/kmsg started.
Oct 25 02:57:31 localhost rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="963" x-info="http://www.rsyslog.com"] start
Oct 25 02:57:31 localhost kernel: Initializing cgroup subsys cpuset
Oct 25 02:57:31 localhost kernel: Initializing cgroup subsys cpu
Oct 25 02:57:31 localhost kernel: Linux version 3.8.13-44.1.1.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #2 SMP Wed Sep 10 06:10:25 PDT 2014
Oct 25 02:57:31 localhost kernel: Command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM console=ttyS0 rhgb quiet
……
……
……
Oct 25 02:57:31 localhost kernel: NET: Registered protocol family 10
Oct 25 02:57:31 localhost kernel: type=1305 audit(1477378651.397:4): audit_pid=943 old=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
Oct 25 02:57:31 localhost kdump: No crashkernel parameter specified for running kernel
Oct 25 02:57:31 localhost acpid: starting up with proc fs
Oct 25 02:57:31 localhost acpid: skipping incomplete file /etc/acpi/events/video.conf
Oct 25 02:57:31 localhost acpid: 1 rule loaded
Oct 25 02:57:31 localhost acpid: waiting for events: event logging is off