From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47548 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPlth-00066k-70 for qemu-devel@nongnu.org; Mon, 06 Dec 2010 19:59:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPltf-0005sJ-M9 for qemu-devel@nongnu.org; Mon, 06 Dec 2010 19:59:13 -0500 Received: from 184-106-158-135.static.cloud-ips.com ([184.106.158.135]:43365 helo=mail) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPltf-0005r1-IR for qemu-devel@nongnu.org; Mon, 06 Dec 2010 19:59:11 -0500 Date: Tue, 7 Dec 2010 00:59:52 +0000 From: "Serge E. Hallyn" Subject: Re: [Qemu-devel] Displaying serial terminals on qemu Message-ID: <20101207005952.GA9811@mail.hallyn.com> References: <1551402227.194941291674940024.JavaMail.root@zms2.eecs.wsu.edu> <1796512284.194981291675034351.JavaMail.root@zms2.eecs.wsu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1796512284.194981291675034351.JavaMail.root@zms2.eecs.wsu.edu> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Stevens, Weston" Cc: qemu-devel@nongnu.org Quoting Stevens, Weston (wstevens@eecs.wsu.edu): > I run Ubuntu 10.04 LTS and have qemu 0.12.3. For a class project, we are building our own pseudo-linux operating system, so we have our own kernel AND user processes that we built, and we run this OS from a virtual floppy disk. So we don't borrow anything from the Ubuntu host OS like the login, init, sh, etc process images, just the ones we wrote ourselves that exist on the floppy's file system. > > I'd like to configure qemu to not just display tty0, but ALSO display virtual serial terminals ttyS0 and ttyS1. Then I will run an instance of the login process that I wrote on each of them and go from there. Help appreciated! > IIUC you'll want to use the -serial option. I.e. kvm -serial stdio ... image.img Will give you ttyS0 in the terminal from which you called kvm. Or, you can do kvm -serial tcp:localhost:2222,server ... image.img and then telnet localhost 2222 from another terminal, to get serial port redirected through telnet. -serge