[uml-devel] [Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0"]
I received this bug report from a Debian user. It seems that something is wrong with tt mode in 2.4.26-2um; I can reproduce a similar (though not identical) hang by trying to boot with mode=tt (my host kernel is 2.6.6 with skas3). In my case, it hangs after init has started. Booting in skas mode works fine (which is why I didn't notice this in the first place).
Signature · 1 line
- mdz
Package: user-mode-linux
Version: 2.4.26-2um-1
Severity: normal
On upgrading user-mode-linux, my guest machines all hang during startup, as below.
When I ran again with "|tee log.txt" to generate the log below, the machine makes it through the kernel startup and hangs on usermode daemons trying to start.
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
Kernel virtual memory size shrunk to 243269632 bytes
Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Linux version 2.4.26-2um (root@mizar) (gcc version 3.3.4 (Debian 1:3.3.4-3)) #2 Fri Jul 16 17:51 :17 PDT 2004
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: -s mem=256M eth0=daemon root=/dev/ubd/0 devfs=mount hostfs=/home/brian/uml/ hostfs ubd0=/home/brian/uml/drives/mcg.root ubd1=/home/brian/uml/drives/mcg.swap Calibrating delay loop... 2090.59 BogoMIPS
Memory: 252584k available
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 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 ([email protected])
devfs: boot_options: 0x1
SGI XFS with ACLs, no debug enabled
SGI XFS Quota Management subsystem
Disabling 2.6 AIO in tt mode
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Initializing Cryptographic API
Initializing software serial port version 1
Netdevice 0 : daemon backend (uml_switch version 3) - unix:/var/run/uml-utilities/uml_switch.ctl mconsole (version 2) initialized on /home/brian/.uml/mcg/mconsole
Partition check:
ubda: unknown partition table
ubdb: unknown partition table
Initializing stdio console driver
NET4: Linux TCP/IP 1.0 for NET4.0
[hang here]
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=C, LC_CTYPE=C
Versions of packages user-mode-linux depends on:
ii uml-utilities 20040406-1 User-mode Linux (utility programs)
-- no debconf information
Quoted 11 lines
On upgrading user-mode-linux, my guest machines all hang during startup, as below.
[...]
mconsole (version 2) initialized on/home/brian/.uml/mcg/mconsolePartition check:
ubda: unknown partition table
ubdb: unknown partition table
Initializing stdio console driver
NET4: Linux TCP/IP 1.0 for NET4.0
[hang here]
Quoted 4 lines
This is about the point where the consoles should be initialized. You didn't specify a console configuration parameter, so it is presumably trying to open terminal emulators. Any reason why that might not work?
I'm not sure if I know enough to answer your question. I normally achieve a terminal with the below in inittab. I'm not running X, and the only user mode linux tool I'm using besides the kernel itself is the net daemon:
1:2345:respawn:/sbin/getty 38400 /dev/ttys/0
If it's helpful, I rolled back to the user-mode-linux version in testing, and with that version, this is what follows the NET4 line in the boot sequence:
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768) Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly. Mounted devfs on /dev
[followed by INIT and userland stuff]
Have they tried with 2.4 host kernels?
There are some NTPL issues with UML.
See
http://sourceforge.net/mailarchive/message.php?msg_id=6991583
I know I had a similar problem with 2.6 host. Currently I'm running debian/sid with 2.4-skas host.
I haven't retried 2.6 host kernel yet, due to unrelated issues. SATA driver problem, causing my system to lockup.
Nicholas
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 4 lines · Nicholas Lee
Have they tried with 2.4 host kernels?
There are some NTPL issues with UML.
I'm the original submitter.
I tried both 2.4 and 2.6 kernels. The problem is the same with each.
Well this is odd.
I can get it to start with my 2.4.25 kernel.
/uml/weather/linux-2.4.25 con=null con0=fd:0,fd:1 mem=256M \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs \
eth0=tuntap,uml-weather eth1=tuntap,uml-weather-int
This fails
uml/weather/linux-2.4.26 con=null con0=fd:0,fd:1 mem=256M \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs \
eth0=tuntap,uml-weather eth1=tuntap,uml-weather-int
This sometimes works, but not this time:-
nic@stateless:/uml/weather] /uml/weather/linux-2.4.26 con=null \
con0=fd:0,fd:1 mem=256M ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs
Checking for the skas3 patch in the host...found
Checking for /proc/mm...found
Kernel virtual memory size shrunk to 258998272 bytes Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux version 2.4.26-2um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Sat Jul 17 11:46:02 NZST 2004 On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: con=null con0=fd:0,fd:1 mem=256M
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs root=/dev/ubd0
Calibrating delay loop... 3525.83 BogoMIPS
Kernel panic: Segfault with no mm
In idle task - not syncing
<6>SysRq : Show Regs
EIP: 0000:[<00000000>] CPU: 0 Not tainted EFLAGS: 00000000 Not tainted
EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
ESI: 00000000 EDI: 00000000 EBP: 00000000 DS: 0000 ES: 0000
Call Trace: [<a00ec2f0>] [<a00d4d5f>] [<a001db8d>] [<a0011c48>] [<a00d3fcb>] [<a01c69d2>] [<a0166ae4>] [<a00d1a23>] [<a00d4425>] [<a00da944>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a0195905>] [<a01783c2>] [<a01c698d>] [<a01c698d>] [<a0007bc8>] [<a01c95b1>] [<a01c6766>] [<a017eb37>] [<a00d2fea>] [<a01c6766>] [<a01783c2>] [<a0008387>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a00da8e5>] [<a00da8dd>] [<a00d4535>] [<a01669f8>] [<a001ae05>] [<a001af46>] [<a001b127>] [<a00d3699>] [<a01669f8>] [<a00d98f3>] [<a00d9969>] [<a00d3670>] [<a01669f8>] [<a01669f8>] [<a01669f8>] [<a00d9db0>] [<a01669f8>] [<a0166ae4>] [<a00d1920>] [<a00d9db0>] [<a00d99e1>] [<a00ce641>] [<a01667ec>] [<a00d9929>] [<a00da168>] [<a00df103>] [<a00d4bed>] [<a000c1b0>] [<a000c3ee>] [<a017eacb>] [<a017a681>] [<a0177fca>] [<a01783c2>] [<a017f234>] [<a0198f5a>] [<a01666f0>] [<a01661cc>] [<a000c021>] [<a000c210>] [<a0166690>] [<a01666f0>] [<a000c000>]
Strangely this works:
/uml/weather/linux-2.4.26 con=null con0=fd:0,fd:1 mem=256M \
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs | tee log2.txt
and this:
/uml/weather/linux-2.4.26 con=null con0=fd:0,fd:1 mem=256M
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs
eth0=tuntap,uml-weather eth1=tuntap,uml-weather-int | tee log3.txt
full networking works on the last.
Note versions used:
Linux version 2.4.26-2um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Sat Jul 17 11:46:02 NZST 2004 Linux version 2.4.25-1um (nic@stateless) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #1 Mon Mar 8 11:09:39 NZDT 2004
[nic@stateless:/uml/weather] uname -a
Linux stateless 2.4.25 #1 SMP Sat Mar 27 16:35:34 NZST 2004 i686 GNU/Linux
Both hosts and guest using SKAS.
These seems to be the only major differences in the tee log files:
+aio_thread failed to initialize context, err = 38 +2.6 AIO not supported on the host - reverting to 2.4 AIO
+ip_tables: (C) 2000-2002 Netfilter core team
This works as well:
/uml/weather/linux-2.4.26 con=null con0=fd:0,fd:1 mem=256M
ubda=/uml/weather/weather.ext2 ubd1=/uml/weather/swapfs
eth0=tuntap,uml-weather eth1=tuntap,uml-weather-int 2>&1 | tee /dev/null
So 2.4.25 works, and 2.4.26 requires tee to work.
Nicholas
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 6 lines · Nicholas Lee
Well this is odd.
[...]
So 2.4.25 works, and 2.4.26 requires tee to work.
Yes, that was the case for me. However, tee only prolonged the life of the machine.
With tee, I can bring up the machine in single-user mode if I use tee, but attempting to boot fully results in a hang when exim4 is coming up. Attempting to go to multi-user mode from single user mode results in a hang when inetd is coming up.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel