From: <jur...@ph...> - 2004-05-14 06:17:25
|
Are you sure it just hangs ? I had this problem too, until I noticed that I did get response on my network, so I settled for another configuration. I notice now that you do have networking up. Instead of trying now with conserver, first check if you can connect with telnet or ssh. If it is possible then your UML instance runs fine, and the only problem is the configuration of the consoles. I noticed that the default configuration for the Debian woody images had in /etc/inittab only an instance for running a console on tty1, which resolved to an xterm. I wanted to be able to run my UML's in the background without them spawning xterms. The first thing I did in my experimentation, was to make sure that on tty0 also a getty was spawned. This also meant that I had to modify /etc/securetty before getty would present a login prompt on tty0. Then I started experimenting with the con setting, to be able to suppress the xterm, using con=pty, con=fd, well all possible settings of con eventually. The point I got to is that after some experimentation and much rebooting of UML instances, I could get them to run like this : uml_kernel ubd0=... ubd1= ... con=null con0=fd:1 > logfile With con=null I remove all consoles. However, I found out that when the console cannot write to anything the UML exits. For that you need the part 'con0=fd:1', and the I redirect the output to a logfile. This way I can properly start my UML instances in the background, have a look at their boot output, and I connect to them using the network. Oh, and have you tried doing $ uml_mconsole 4LQFlS cad This will invoke the control-alt-delete handler in your UML instance. If this works this means that init is running in it. That way you would know for certain that you UML instance is up, and that it is a problem with your console configuration. Regards, Jurgen Darren Bolding <da...@fa...> Sent by: use...@li... 2004-05-13 12:29 PM To: Use...@li... cc: (bcc: Jurgen Defurne/BRG/CE/PHILIPS) Subject: [uml-user] Conserver shows ttys down Classification: Hello, Thanks to the help of some kind folks on IRC today, I managed to get over a few hurdles, but I still can't seem to figure one out. I'm trying to follow Russell Adams nifty howto on using conserver to manage consoles for multiple uml's. I can get a guest kernel up and running, and have the networking working the way I like. However, whenever I try and connect con0 and con1 to a pty, such as /dev/ptyp3 or /dev/ptyy0, I can't seem to get conserver to see anything on the associated tty (/dev/ttyp3 or /dev/ttyy0). Conserver comes up and says the hosts are down. I've passed conserver -O1 to have it repoll every minute, and I've hit the conserver processes with USR1 to get it to repoll- to no avail. The kernel runs until it gets to "Initializing stdio console driver" and then just hangs. Someone mentioned that I should verify that the console drivers were compiled in- can someone point me to which kernel options they refer to? I've looked at the kernel config output, and it looks correct. I've attached some debugging information below. Can anyone point me in the right direction? Thanks again for your help! --D -- Output below -- [darren@cappuccino uml]$ uname -a Linux cappuccino 2.6.4-skas3-bridge #1 Thu May 13 03:40:14 EDT 2004 i686 i686 i386 GNU/Linux [darren@cappuccino uml]$ ./linux-2.4.24 ubd0=root_fs.fc-2-client.pristine.20040504 con0=tty:/dev/ptyp3 con1=tty:/dev/ptyp4 con=null Checking for the skas3 patch in the host...found Checking for /proc/mm...found Checking for /dev/anon on the host...Not available (open failed with errno 2) Linux version 2.4.24-1um (root@cappuccino) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Apr 15 18:22:43 EDT 2004 On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ubd0=root_fs.fc-2-client.pristine.20040504 con0=tty:/dev/ptyp3 con1=tty:/dev/ptyp4 con=null root=/dev/ubd0 Calibrating delay loop... 3460.30 BogoMIPS Memory: 29012k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block Device driver loaded devfs: v1.12c (20020818) Richard Gooch (rg...@at...) devfs: boot_options: 0x1 JFFS version 1.0, (C) 1999, 2000 Axis Communications AB JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. pty: 256 Unix98 ptys configured SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) PPP generic driver version 2.4.2 Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky SCSI subsystem driver Revision: 1.00 scsi0 : scsi_debug, Version: 0.61 (20020815), num_devs=1, dev_size_mb=8, opts=0x0 Vendor: Linux Model: scsi_debug Rev: 0004 Type: Direct-Access ANSI SCSI revision: 03 blkmtd: error: missing `device' name Initializing software serial port version 1 mconsole (version 2) initialized on /home/darren/.uml/4LQFlS/mconsole Partition check: ubda: unknown partition table UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer) Initializing stdio console driver (It just hangs at this point) [darren@cappuccino uml]$ ./linux-2.4.24 --showconfig | grep CHAN CONFIG_FD_CHAN=y CONFIG_NULL_CHAN=y CONFIG_PORT_CHAN=y CONFIG_PTY_CHAN=y CONFIG_TTY_CHAN=y CONFIG_XTERM_CHAN=y CONFIG_CON_ZERO_CHAN="fd:0,fd:1" CONFIG_CON_CHAN="xterm" CONFIG_SSL_CHAN="pty" Thanks again for any and all help! --D ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |