From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 5 14:04:38 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.ORG Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 601B216A41F for ; Wed, 5 Apr 2006 14:04:38 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A826A43D49 for ; Wed, 5 Apr 2006 14:04:37 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (uzmjkt@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k35E4Q27050395 for ; Wed, 5 Apr 2006 16:04:35 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k35E4QJw050394; Wed, 5 Apr 2006 16:04:26 +0200 (CEST) (envelope-from olli) Date: Wed, 5 Apr 2006 16:04:26 +0200 (CEST) Message-Id: <200604051404.k35E4QJw050394@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Apr 2006 16:04:35 +0200 (CEST) Cc: Subject: qemu serial console X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-emulation@FreeBSD.ORG List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 14:04:38 -0000 Hi, I'm running the current version of qemu from the ports collection (i.e. 0.8.0_5) with RELENG_6 (i.e. 6.1-BETA4) on i386. Host and guest are both FreeBSD. Since the server is headless, I have to run qemu with the -nographic switch. Basically that shouldn't be a problem, because we're not using graphical applications. However, for out-of-band management, there must be a way to connect to the console of the guest system. According to the docs, "-serial stdio" should do the trick. But it does not, it's simply dead (no output). Then I tried "-serial file:foo", just to see if anything appears, but the file is just one byte which is zero. :-( In the guest, I have enabled it in /etc/ttys: ttyd0 "/usr/libexec/getty std.9600" vt100 on secure And /dev/ttyd0 exists: crw------- 1 root wheel 0, 55 Apr 5 15:57 ttyd0 And the getty is indeed running: 417 ?? I 0:00.02 /usr/libexec/getty std.9600 ttyd0 But the tty is reported as "??". Shouldn't that be "d0"? There are no error messages in any log file or dmesg. The virtual serial port is detected fine in the guest: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16450 Am I doing anything wrong? What do I miss? Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered." -- Guido van Rossum