KVM Logging 1. Guest OS enables /dev/ttyS2 on the guest application. 2. Guest application writes data to /dev/ttyS2 . 3. Libvirt emulates /dev/ttyS2 to /dev/pts/x on the host. 4. IOXMAN gets the emulated TCP path from the XML file. 5. IOXMAN opens an UNIX socket, and connects to the remote socket. 6. IOXMAN reads available data from the socket, sets the severity for the message, filters, parses, and queues the message. 7. Starts the timer to send the message to /dev/log device on the host using errmsg . 8. Data is saved to the Cisco IOS syslog. LXC Tracing 1. Guest OS enables /dev/ttyS3 on the guest application. 2. Configures syslogd to copy message to /dev/ttyS3 . 3.
Guest application writes data to /dev/ttyS3 . 4. Libvirt emulates /dev/ttyS3 to /dev/pts/y on the host. 5. IOXMAN gets the emulated serial device, /dev/pts/y from the XML file. 6. IOXMAN listens and reads available data from /dev/pts/y , filters, parses, and saves the message to IOx tracelog. 7. If IOx tracelog is full, IOXMAN rotates the tracelog file to /bootflash/tracelogs . KVM Tracing 1. Guest OS enables /dev/ttyS3 on the guest application. 2. Configures syslog to copy the message to /dev/ttyS3 . 3. Guest application writes data to /dev/ttyS3 . 4. Libvirt emulates /dev/ttyS3 to TCP path on the host. 5. IOXMAN gets the emulated TCP path from the XML file. 6.
IOXMAN opens an UNIX socket, and connects to the remote socket. 7. IOXMAN reads the available data from the socket, sets the severity level for the message, filters, parses, and saves the message to IOx tracelog. 8. If IOx tracelog is full, IOXMAN rotates the tracelog file to /bootflash/tracelogs . Logging and Tracing of Messages The following sections explains the logging and tracing of messages in to the Cisco IOS syslog. Guest Shell Logging and Tracing of Messages Guest Shell 10