For some reason, this just won't work for me when I try to redirect to a
port. Vincent also responded with a redirection to tty option like this:
./linx <other options> con0=tty:/dev/tty8 con1=tty:/dev/tty9 > \
/dev/tty8 2> /dev/tty8 &
which works great. But when I try redirecting to a port and telnet to
allow the boot process to continue, it just flashes up:
Red Hat Linux release 7.2 (Enigma)
Kernel 2.4.17-1um on an i686
And then says connection closed by remote host. Every time I try to
connect the same thing happens, it flashes up the O/S header and then
disconnects me. I also noticed that every time, after the first attempt
the linux process on the host system shoots up to 100% CPU usage and gets
My problem is essentially solved with the tty method, but out of curiosity
I'd still like to know what I did wrong WRT the port method.
Thanks for the quick suggestion!
On Sat, 23 Feb 2002, Jeff Dike wrote:
> louis@... said:
> > The response was that the console had to be redirected or else it
> > would freeze. I have followed the UML docs and tried redirection to
> > network ports, to ptys etc etc but it always continues to freeze so
> > long as that & is there. (eg with con=port:9000 etc)
> > Could somebody wet-nurse me and give me an example command line they
> > know to allow UML to continue booting in the background without having
> > to have X loaded to accomodate the consoles?
> You seem to be mixing two different problems. Getting rid of the console
> xterms can be done with 'con0=fd:0,fd:1 con=port:9000'. This doesn't allow
> you to background UML, although you can run it in a screen session and detach
> As for actually backgrounding UML, here's one way:
> % ./linux con=port:9000 ...rest of command line...
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 2048)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Initializing stdio console driver
> ... it hangs here, until...
> Another window:
> % telnet localhost 9000
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Red Hat Linux release 7.1 (Seawolf)
> Kernel 2.4.17 on an i686
> Initializing software serial port version 1
> mconsole initialized on /home/jdike/.uml/debian/mconsole
> UML Audio Relay: Feb 23 2002 14:39:35
> VFS: Mounted root (ext2 filesystem) readonly.
> ... boot continues...
> Back to original window any time:
> + Stopped ./linux ubd0=/home/jdike/roots/cow.debian,/home/jdike/roots/debian2.2 umid=debian ssl=port:9000 con=port:9000 mem=32M
> % bg
> + ./linux ubd0=/home/jdike/roots/cow.debian,/home/jdike/roots/debian2.2 umid=debian ssl=port:9000 con=port:9000 mem=32M &