From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJdY6-0004Nn-Ai for qemu-devel@nongnu.org; Thu, 17 Jul 2008 20:10:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJdY5-0004MV-04 for qemu-devel@nongnu.org; Thu, 17 Jul 2008 20:10:13 -0400 Received: from [199.232.76.173] (port=51265 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJdY4-0004MQ-Th for qemu-devel@nongnu.org; Thu, 17 Jul 2008 20:10:12 -0400 Received: from py-out-1112.google.com ([64.233.166.181]:39878) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJdY4-0000CW-55 for qemu-devel@nongnu.org; Thu, 17 Jul 2008 20:10:12 -0400 Received: by py-out-1112.google.com with SMTP id p76so109583pyb.10 for ; Thu, 17 Jul 2008 17:10:09 -0700 (PDT) Message-ID: <487FDF5A.1010200@quinthar.com> Date: Thu, 17 Jul 2008 17:10:02 -0700 From: David Barrett MIME-Version: 1.0 Subject: Re: [Qemu-devel] How to get target system display with qemu -nographic option? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Atoosah wrote: > When -nographic is specified, no graphical window is created. The only > way to see the graphics window is using the VNC option. > > If I run the program with graphics enabled (i.e. no -nographic option) I > get the login prompt and then the password. From then on, the display is > in shell prompt mode. So, does -nographic mean that I won't be able to > access this display? If so, it seems very limiting without being able to > run experiments on our guest machine. Ah, "graphics" means "display" -- it doesn't matter whether your guest VM is running X or using a simple terminal, it all looks like one big graphic to qemu. Said another way, "-nographic" disables the display entirely, whether that display is used for graphics or text. > Furthermore, when -nographic is specified, I think "-monitor" defaults > to "serial", meaning the actual serial output is overridden by the qemu > monitor. To change this, look at "-monitor" and direct it somewhere > else (such as to a TCP stream). > > I'd appreciate if you'd explain a bit more what you mean by "serial > output is overridden by the qemu > monitor".. The "monitor" is the command-line interface to control qemu (start and stop the VM, snapshots, etc). Normally, you can get to it with the Control-Alt key combination: the display window switches to a terminal showing the qemu monitor. However, when "-nographic" is specified, there is no display window. So, it pretends you specified "-monitor serial", which enables access to the qemu monitor via the virtual serial cable. Unfortunately, that means that you can no longer access the *real* virtual serial cable. So, when you specify -nographic, I think if you just also specify "-monitor none" then it'll disable the qemu monitor entirely and leave the virtual serial port alone, letting you log on to your VM through the virtual serial cable as you expect. I *think* this is accurate, but I honestly haven't logged on to a qemu vm via the serial port before (I just set up SSH), so there's some guesswork involved. Take a look at the documentation for "-serial" and "-monitor" and that should shed some light. > Does this help? > > > Thank you. I'm still looking at the vnc option. Just to make sure the > /etc/inittab that is modified (with 7:2345:respawn:/sbin/mgetty ttyS0 > 9600 vt100-nav) should be the guests or the hosts? I'm a newbie in this > area, so any help would be appreciated. I don't know what you're trying to do with /etc/inittab. That doesn't mean it's wrong, it just means I've never found it necessary to go that route. I'm guessing you should probably undo all your changes there and just stick with whatever was the default, and then use the "-nographic -monitor none" option I mention above. -david