From: William S. <wst...@po...> - 2000-09-20 15:31:33
|
Good day, Jeff, Vince and all, I'm trying to get UML to run with no console at all; I want it to run in the background as a network server. Here's the command line I'd like to use: /var/lib/uml/linux mem=32M </dev/null >/dev/null 2>/dev/null I get a core dump from that (I'd be glad to provide the core file, of course). By stracing the uml kernel with: strace -o /tmp/uml-no-console /var/lib/uml/linux mem=32M </dev/null >/dev/null 2>/dev/null , I get a trace file that ends with pages and pages of: rt_sigprocmask(SIG_BLOCK, [ALRM VTALRM IO], [ALRM VTALRM IO], 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [], NULL, 8) = 0 ioctl(0, SNDCTL_TMR_STOP, {0x1007 /* B??? */ -opost -isig -icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device) rt_sigprocmask(SIG_BLOCK, [ALRM VTALRM IO], [ALRM VTALRM IO], 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [], NULL, 8) = 0 ioctl(0, SNDCTL_TMR_STOP, {0x1007 /* B??? */ -opost -isig -icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device) rt_sigprocmask(SIG_BLOCK, [ALRM VTALRM IO], [ALRM VTALRM IO], 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [], NULL, 8) = 0 ioctl(0, SNDCTL_TMR_STOP, {0x1007 /* B??? */ -opost -isig -icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device) --- SIGSEGV (Segmentation fault) --- --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Without the redirects, the uml kernel starts up fine. If I try redirecting it to tty12 (the first 11 are used) with: /var/lib/uml/linux mem=32M </dev/tty12 >/dev/tty12 2>/dev/tty12 & I get none of the boot or login messages, only the usual: error stat'ing /dev/ttydirs/xxx/xxxxxxxxxxxxp1: No such file or directory error stat'ing /dev/ttydirs/xxx/xxxxxxxxxxxxp2: No such file or directory error stat'ing /dev/ttydirs/xxx/xxxxxxxxxxxxp3: No such file or directory error stat'ing /dev/ttydirs/xxx/xxxxxxxxxxxxp4: No such file or directory stair-stepping across the screen as the xterms start up. However, if I simply log in as a user blindly, I can log in successfully and run commands (I can verify that with "w" from one of the xterms). UML kernel is 2.4.0-test8: Linux version 2.4.0-test8-1um (jd...@cc...) (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Fri Sep 8 21:47:26 EST 2000 Host kernel is 2.4.0-test7-pre4 w/ Rik's vmpatch. The root filesystem happens to be an Immunix root_fs (essentially the same as rh 6.2). Cheers, - Bill --------------------------------------------------------------------------- FLASH! Intelligence of mankind decreasing! Details at...uh, when the little hand is on the.... (Courtesy of Joe <jg...@t-...>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |