* [Qemu-devel] Displaying serial terminals on qemu
[not found] <1551402227.194941291674940024.JavaMail.root@zms2.eecs.wsu.edu>
@ 2010-12-06 22:37 ` Stevens, Weston
2010-12-07 0:59 ` Serge E. Hallyn
0 siblings, 1 reply; 3+ messages in thread
From: Stevens, Weston @ 2010-12-06 22:37 UTC (permalink / raw)
To: qemu-devel
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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Displaying serial terminals on qemu
2010-12-06 22:37 ` Stevens, Weston
@ 2010-12-07 0:59 ` Serge E. Hallyn
0 siblings, 0 replies; 3+ messages in thread
From: Serge E. Hallyn @ 2010-12-07 0:59 UTC (permalink / raw)
To: Stevens, Weston; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Displaying serial terminals on qemu
[not found] <1645156028.195541291686931930.JavaMail.root@zms2.eecs.wsu.edu>
@ 2010-12-07 1:59 ` Stevens, Weston
0 siblings, 0 replies; 3+ messages in thread
From: Stevens, Weston @ 2010-12-07 1:59 UTC (permalink / raw)
To: Serge E. Hallyn; +Cc: qemu-devel
I forgot to mention we must also use our own devices also located on the floppy disk, E.G. /fd0/dev/tty0, /fd0/dev/ttyS0, /fd0/dev/ttyS1 instead of /dev/tty0, /dev/ttyS0, and /dev/ttyS1 on the host OS. How could I get 3 qemu SDL windows to pop up at once, 1 of the terminals running on /fd0/dev/tty0, 1 on /fd0/dev/ttyS0, and one on /fd0/dev/ttyS1 and they would all be tied together by the guest OS?
----- Original Message -----
From: "Serge E. Hallyn" <serge@hallyn.com>
To: "Weston Stevens" <wstevens@eecs.wsu.edu>
Cc: qemu-devel@nongnu.org
Sent: Monday, December 6, 2010 4:59:52 PM
Subject: Re: [Qemu-devel] Displaying serial terminals on qemu
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-07 1:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1645156028.195541291686931930.JavaMail.root@zms2.eecs.wsu.edu>
2010-12-07 1:59 ` [Qemu-devel] Displaying serial terminals on qemu Stevens, Weston
[not found] <1551402227.194941291674940024.JavaMail.root@zms2.eecs.wsu.edu>
2010-12-06 22:37 ` Stevens, Weston
2010-12-07 0:59 ` Serge E. Hallyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).