Description of problem: This is a feature request spun off of #465148 . It'd be helpful for our automated testing efforts if we could have serial port redirection to a file feature included in RHEL. Version-Release number of selected component (if applicable): RHEL
Pretty certain this is present in upstream libvirt, so we get this for free if we rebase.
This is available in 0.6.1 rebase. Usage for logging to a file is described here http://libvirt.org/formatdomain.html#elementsCharFle
Add the following section to guest domain xml. <serial type="file"> <source path="/var/log/serial.log"/> <target port="1"/> </serial> Edit guest menu.lst, append the following to kernel line to support serial port output, and reboot guest domain. console=ttyS0,115200n8 console=tty0 On host, cat /var/log/serial.log, boot messages was displayed. This bug has been verified with libvirt 0.6.3-3 on rhel-5.4. Fixed.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1269.html