From: Ian Jackson Subject: Re: [PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile Date: Wed, 7 Oct 2015 10:59:35 +0100 Message-ID: <22036.60679.542278.41365@mariner.uk.xensource.com> References: <1444145468.5302.223.camel@citrix.com> <1444210442-27743-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444210442-27743-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] stubdom: Arrange for guest serial to go to a host logfile"): > By pointing the serial port at 'file:/var/log/dm-serial.log' it will > end up on mini-os's console and therefore in > /var/log/xen/qemu-dm-$guest.log. ... > - $cfg .= "serial='pty'\n"; > + # MINI-OS turns any open of a path starting /var/log/ into a > + # fd pointing to mini-os's console. IOW any such path used > + # here ends up in the host logs in /var/log/xen/qemu-dm-$guest.log > + $cfg .= "serial='file:/var/log/dm-serial.log'\n"; Wow. Acked-by: Ian Jackson Thanks for digging into this. Ian.