Thanks Blaisorblade.  It turned out to be a problem in the /etc/inittab
in the guest UML.  I guess it's me who should be saying "Doh!". :D


> On Sunday 13 August 2006 19:00, Mathew Brown wrote:
>  > Thanks a lot for your reply Blaisorblade.  However, I've tried basically
>  > everything and nothing has worked so far.  Any other ideas?
>  >
>  > > On Friday 11 August 2006 20:18, Mathew Brown wrote:
>  > > > Hi,
>  > > >   I'm a UML newbie and am currently trying to configure consoles /
>  > > >   serial lines as illustrated here:
>  > > >   http://user-mode-linux.sourceforge.net/input.html  It seems that no
>  > > >   matter how I configure a console, nothing seems to be working.  For
>  > > >   example, I tried each of the following:
>  > > >
>  > > > uml_mconsole vZFvJC config con2=tty:/dev/tty12  (it returned OK)
>  > >
>  > > Then you'd do ctrl-alt-f12 and press Enter there.
>  >
>  > I did so but it gave me a blank screen.
>  
>  > I also tried to redirect it to 
>  > an active tty (/dev/tty6) but it also didn't change (still giving me the
>  > host login).
>  
>  You should at least stop the getty from host's /etc/inittab and kill -HUP 
> the 
>  host init first; however it does not matter until you open a getty inside 
> the 
>  guest (see below).
>  
>  > > > uml_mconsole vZFvJC config con1=pts:/dev/pts/7 (it returned OK)
>  > >
>  > > Has any program inside UML opened /dev/tty2 (first case) or /dev/tty1
>  > > (2nd case)?
>  >
>  > No.  Only /dev/tty0 is open for the initial login (fd0:fd1)
>  
>  What do you expect then to see on the new console? The kernel surely won't 
>  write stuff there.
>  You must add/uncomment a corresponding line to guest's /etc/inittab and 
>  kill -HUP init. Then you can look at other troubles (like master/slave stuff 
>  if it applies).
>  
>  > > Another problem (more likely) is the slave/master problem. Search this
>  > > mailing list for master/slave ttys - when two processes must talk via
>  > > ttys, you attach one to the master and the other to the slave (for
>  > > instance, /dev/ptypN and /dev/ttypN).
>  > >
>  > > > However, trying to attack screen to either /dev/tty12 or /dev/pts/7
>  > > > gives me the following error:
>  > >
>  > > Hmm, I frankly doubt you can attach to /dev/pts/7. Usually you attach to
>  > > "pts" and see in the kernel logs which pts has been choosed. In that
>  > > case, the kernel opens /dev/ptmx and you open /dev/pts/N following what
>  > > the kernel says, and it should work easily.
>  
>  > I tried attaching to pts and uml_mconsole told me that it's okay but
>  > there were no kernel logs telling me which pts was chosen.
>  
>  That's strange, look at dmesg output; on the main console only some messages 
>  (those with high loglevel, where "high" is configurable 
>  through /proc/sys/kernel/printk) are shown.
>  
 > > > /var/run/screen/S-root/3825.pts-1.Kano: No such file or directory
 
 > I think this is because the pts / tty device isn't being initialized or
 > started since there is no mention of it in the UML instance's kernel
 > logs.
 Show the screen command line to make sure. I've tried screen /dev/pts/7
 and it 
 never shows such an error (even on non-existing pts).
 > > This error is a strange one, you should check your screen syntax (it is
 > > probably trying to resume a detached screen session if you see the
 > > above).
 
 -- 
 Inform me of my mistakes, so I can keep imitating Homer Simpson's
 "Doh!".
 Paolo Giarrusso, aka Blaisorblade
 http://www.user-mode-linux.org/~blaisorblade
 Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
-- 
  Mathew Brown
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to