I'm having some troubles with TTY logging.  My host system is Fedora
core 4 w/  2.6.11-1.1 Kernel.     



I've downloaded and patched the 2.6.17 vanilla kernel w/ the tty patch
found here:

 

http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.20-rc5/patch
es/tty-logging

 

(note I had to edit this line in the patch file:
INIT_WORK(&tty->SAK_work, NULL);  to INIT_WORK(&tty->SAK_work, NULL,
NULL);
 
 
The patch goes through successfully, I run 
make defconfig ARCH=um  
then 
make menuconfig ARCH=um
        enable tty logging in the options
 
Run a make ARCH=um
It builds fine, I run the UML with:
 
./linux.final ubda=FedoraCore5-x86-root_fs mem=128M tty_log_fd=3
3>/home/new/tty_log eth0=tuntap,tap0,00:10:B5:D6:8C:B0,172.20.243.189
 
 
When I run it w/ options: tty_log_fd=3 3>/home/new/tty_log  the log
appears to have a bunch of binary data in it and is pretty large after
starting up the uml instance (usually about 65kb).  I see some pieces of
text, but mostly junk characters.
 
I stumbled upon this, when I run 
 
./linux.final ubda=FedoraCore5-x86-root_fs mem=128M tty_log_fd=4
3>/home/thomas/new/tty_log
eth0=tuntap,tap0,00:10:B5:D6:8C:B0,172.20.243.189
 
tty_log_fd=4
 
I actually get a decent looking log(no time stamps or anything though).
However all user input is logged twice (I'm thinking it's getting stdin
and stdout) and I'm seeing shell color code I guess too.  
 
So if the user in the uml instance runs  host% ls -la   the log shows
host% llss -llaa
 
Is this normal?  Is there a way around it?
 
 
When trying to use the uml tools on the logs, the tty_log.pl and
playlog.pl give:
 
Short file - expected 1095114810 bytes, got 8025 at tty_log.pm line 47.
 
If I run playlog.pl on the large logs I mentioned above with the binary
data, it just sits there indefinitely.
 
 
Thanks for any help.
 
 
 
 
 
 
 
 

 



CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.
-------------------------------------------------------------------------
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