[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [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.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Osstest/TestSupport.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 69da459..f9eba6b 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1822,7 +1822,10 @@ END
     my $stubdom = guest_var_boolean($gho, 'stubdom');
     if ($stubdom) {
        $cfg .= "device_model_stubdomain_override=1\n";
-       $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";
     } else {
        $cfg .= "serial='file:/dev/stderr'\n";
     }
-- 
2.5.3


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.