[Qemu-devel] Serial Console / NoGraphic

2007-09-25 Thread Clemens Kolbitsch
hi!
i've been trying around for quite some time now trying to start qemu without 
the graphic screen... can someone tell me exactly what I'm supposed to do??

i want to redirect the output of my i386 debian linux to my host-console (also 
a i386 debian) to fully see the output of a kernel panic (see previous 
messages i have posted).

i'm starting qemu:

qemu -hda myimage -boot c -kernel-kqemu -kernel mykernel -initrd 
myinitrd -append root=/dev/hda1 console=/dev/ttyS0 -nographic

after tons of trial-and-error i finally got my system to boot, however, the 
login-screen is not displayed (i see all output of the starting system up 
until the login:). how do i connect to the serial line now to get to the 
login??

i have tried minicom, however that seems to just hang :-(

should i use (tell qemu to use) a different virtual serial console?? how to 
i start minicom correctly?? could you give me the parameter set you guys are 
using for
1.) qemu
2.) connector (minicom???)
3.) what i have to enable inside my guest-system (i have checked 
that /etc/securetty include ttyS0 already)

any help will - as always - be greatly appreciated!!
thanks :-)




Re: [Qemu-devel] Serial Console / NoGraphic

2007-09-25 Thread Michael McConnell

Clemens Kolbitsch wrote:

hi!
i've been trying around for quite some time now trying to start qemu without 
the graphic screen... can someone tell me exactly what I'm supposed to do??


i want to redirect the output of my i386 debian linux to my host-console (also 
a i386 debian) to fully see the output of a kernel panic (see previous 
messages i have posted).


i'm starting qemu:

qemu -hda myimage -boot c -kernel-kqemu -kernel mykernel -initrd 
myinitrd -append root=/dev/hda1 console=/dev/ttyS0 -nographic


after tons of trial-and-error i finally got my system to boot, however, the 
login-screen is not displayed (i see all output of the starting system up 
until the login:). how do i connect to the serial line now to get to the 
login??


Add this to /etc/inittab in the guest system:
co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav

Without that it's only going to put the login prompts on the (now 
hidden) virtual consoles.


The (emulated) hardware display still exists, it's just not shown. I use 
just such a setup for a Win2000 virtual-machine that's accessible by 
VNC. I've had issues with QEMU's own VNC server (it crashes with a core 
dump on disconnection, and no-one on the list was remotely interested) 
so instead I run UltraVNC within Win2000 and connect to that instead.


--
-- Michael Soruk McConnell
   Eridani Star System

   MailStripper - http://www.MailStripper.eu/ - UNIX spam filter
   Mail Me Anywhere - http://www.mailmeanywhere.com/ - email for phones





Re: [Qemu-devel] Serial Console / NoGraphic

2007-09-25 Thread GUERRAZ Francois
Hi Michael,

About your VNC problems : I have had problems w/ vnc too (see
http://qemu-forum.ipi.fi/viewtopic.php?p=10468) but had no answer as
well...

Anyway, it's better to do like you're doing : installing a VNC server
inside the vm is much better because you can have authentication and
such things... and no mouse / keyboard issues.

I'm using Qemu VNC server for the Qemu supervisor I'm developing (see
http://sourceforge.net/projects/casimir-web/ ) and it works very well
this way : ask qemu vnc to listen in a socket (-vnc
unix:/tmp//vmXXX.vnc) and use socat to make it listen on a tcp port when
you need it (socat TCP4-LISTEN:port UNIX-CONNECT:socket), socat will
die when the connexion closes, not Qemu :)
I don't know if it is because of the socat thing, but I don't have
problems anymore...

Le mardi 25 septembre 2007 à 11:11 +0100, Michael McConnell a écrit :
 Clemens Kolbitsch wrote:
  hi!
  i've been trying around for quite some time now trying to start qemu 
  without 
  the graphic screen... can someone tell me exactly what I'm supposed to do??
  
  i want to redirect the output of my i386 debian linux to my host-console 
  (also 
  a i386 debian) to fully see the output of a kernel panic (see previous 
  messages i have posted).
  
  i'm starting qemu:
  
  qemu -hda myimage -boot c -kernel-kqemu -kernel mykernel -initrd 
  myinitrd -append root=/dev/hda1 console=/dev/ttyS0 -nographic
  
  after tons of trial-and-error i finally got my system to boot, however, the 
  login-screen is not displayed (i see all output of the starting system up 
  until the login:). how do i connect to the serial line now to get to 
  the 
  login??
 
 Add this to /etc/inittab in the guest system:
 co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav
 
 Without that it's only going to put the login prompts on the (now 
 hidden) virtual consoles.
 
 The (emulated) hardware display still exists, it's just not shown. I use 
 just such a setup for a Win2000 virtual-machine that's accessible by 
 VNC. I've had issues with QEMU's own VNC server (it crashes with a core 
 dump on disconnection, and no-one on the list was remotely interested) 
 so instead I run UltraVNC within Win2000 and connect to that instead.