Bug 466891

Summary: Feature Request: Inclusion of serial port redirection to a file in rhel
Product: Red Hat Enterprise Linux 5 Reporter: Gurhan Ozen <gozen>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: berrange, crobinso, jburke, nzhang, sghosh, xen-maint
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 09:21:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 475821    
Bug Blocks:    

Description Gurhan Ozen 2008-10-14 11:43:30 UTC
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

Comment 2 Cole Robinson 2009-02-16 00:05:51 UTC
Pretty certain this is present in upstream libvirt, so we get this for free if we rebase.

Comment 3 Daniel Berrangé 2009-03-30 11:03:46 UTC
This is available in 0.6.1 rebase.

Usage for logging to a file is described here

http://libvirt.org/formatdomain.html#elementsCharFle

Comment 6 Nan Zhang 2009-06-04 10:29:39 UTC
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.

Comment 8 errata-xmlrpc 2009-09-02 09:21:59 UTC
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