From: Alexander N. <ale...@ne...> - 2003-12-28 20:36:28
|
Hello, I try to install the latest SuSE 9.0 within an uml session. Therefor I installed the complete system on a normal mashine, created an image and copied all the files to the image. I alter /etc/inittab and changed lines like "1:2345:respawn:/sbin/mingetty --noclear tty1" to "c1:1235:respawn:/sbin/agetty 38400 tty1 linux". I also modified /etc/fstab to match the new disk layout Booting looks ok until init level 3 should be reached. The complete boot process looks like: sh-2.05a$ ./linux fakehd ubd0=./root_fs.suse mem=128m eth0=tuntap,tap0,,192.168.0.33 umid=suse Checking for the skas3 patch in the host...not found Checking for /proc/mm...not found tracing thread pid = 26184 Linux version 2.4.23-1um (ale...@ho...) (gcc version 3.2) #2 Sat Dec 27 23:27:38 CET 2003 On node 0 totalpages: 32768 zone(0): 32768 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: fakehd ubd0=./root_fs.suse mem=128m eth0=tuntap,tap0,,192.168.0.33 umid=suse root=/dev/ubd0 fakehd : Changing ubd_gendisk.major_name to "hd". Calibrating delay loop... 352.28 BogoMIPS Memory: 124404k available Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 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 Checking for /dev/anon on the host...Not available (open failed with errno 2) 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 Installing knfsd (copyright (C) 1996 ok...@mo...). pty: 256 Unix98 ptys configured Software Watchdog Timer: 0.05, timer margin: 60 sec 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) bonding.c:v2.4.1 (September 15, 2003) bonding_init(): either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details. bond0 registered without MII link monitoring, in load balancing (round-robin) mode. bond0 registered without ARP monitoring PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered Equalizer1996: $Revision: 1.2.1 $ $Date: 1996/09/22 13:52:00 $ Simon Janes (si...@nc...) Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky Initializing software serial port version 1 mconsole (version 2) initialized on /home/alexander/.uml/suse/mconsole Partition check: hda: unknown partition table Initializing stdio console driver Netdevice 0 : TUN/TAP backend - IP = 192.168.0.33 NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) ip_conntrack version 2.1 (971 buckets, 7768 max) - 292 bytes per conntrack ip_tables: (C) 2000-2002 Netfilter core team ipt_recent v0.3.1: Stephen Frost <sf...@sn...>. http://snowman.net/projects/ipt_recent/ arp_tables: (C) 2002 David S. Miller NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. IPv6 v0.8 for NET4.0 IPv6 over IPv4 tunneling driver ip6_tables: (C) 2000-2002 Netfilter core team VFS: Mounted root (ext2 filesystem) readonly. Mounted devfs on /dev INIT: version 2.82 booting System Boot Control: Running /etc/init.d/boot Mounting /proc filesystem done Mounting /dev/pts done showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel Activating swap-devices in /etc/fstab... failed showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel Checking file systems... fsck 1.34 (25-Jul-2003) done Mounting local file systems... proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) nothing was mounted done Loading required kernel modules done Restore device permissions done Activating remaining swap-devices in /etc/fstab... failed Mounting shared memory FS on /dev/shm done Setting up the CMOS clockUsing a channel type which is configured out of UML hwclock is unable to get I/O port access: the iopl(3) call failed. hwclock is unable to get I/O port access: the iopl(3) call failed. failed Setting up timezone done Setting scheduling unused Setting up hostname 'linux' done Setting up loopback interface /sbin/ifup: line 119: /dev/fd/62: No such file or directory /sbin/ifup: line 540: /dev/fd/62: No such file or directory /sbin/ifup: line 171: /dev/fd/62: No such file or directory /sbin/ifup: line 1: /dev/fd/62: No such file or directory /sbin/ifup: line 1: /dev/fd/61: No such file or directory /sbin/ifup: line 431: /dev/fd/62: No such file or directory /etc/sysconfig/network/scripts/ifup-route: line 433: /dev/fd/62: No such file or directory /etc/sysconfig/network/scripts/ifup-route: line 1: /dev/fd/62: No such file or directory /etc/sysconfig/network/scripts/ifup-route: line 1: /dev/fd/61: No such file or directory done Enabling syn flood protection done Disabling IP forwarding done Disabling IPv6 forwarding done Creating /var/log/boot.msg done showconsole: Warning: the ioctl TIOCGDEV is not known by the kernel open(/dev/tty1): No such file or directory System Boot Control: The system has been setup Skipped features: boot.sched System Boot Control: Running /etc/init.d/boot.local done INIT: Entering runlevel: 3 After that all stops. I can see that the uml is still running. With um_console I can access proc files and wonder if this is OK: (suse) proc loadavg OK 0.31 0.14 0.05 1/11 362 (suse) proc devices OK Character devices: 1 mem 2 pty/m%d 3 pty/s%d 4 vc/%d 5 ptmx 10 misc 108 ppp 128 ptm 136 pts/%d 162 raw Block devices: 1 ramdisk 7 loop 43 nbd 98 ubd (suse) proc mounts OK rootfs / rootfs rw 0 0 /dev/root / ext2 rw 0 0 none /dev devfs rw 0 0 proc /proc proc rw 0 0 devpts /dev/pts devpts rw 0 0 tmpfs /dev/shm tmpfs rw 0 0 (suse) proc tty/drivers OK UML console /dev/vc/%d 4 0-7 console UML serial line /dev/tts/%d 4 64-127 serial pty_slave /dev/pts/%d 136 0-255 pty:slave pty_master /dev/ptm 128 0-255 pty:master pty_slave /dev/pty/s%d 3 0-255 pty:slave pty_master /dev/pty/m%d 2 0-255 pty:master /dev/ptmx /dev/ptmx 5 2 system /dev/console /dev/console 5 1 system:console /dev/tty /dev/tty 5 0 system:/dev/tty (suse) quit I just wonder about the %d after some /dev files and about "none /dev devfs rw 0 0" I also wonder why /dev/fd/62 isn't availabe. The config of my uml linux can be viewed at http://linux.newald.de/config_uml.txt (9843 Byte) Thanks for reading this long message. Alexander Newald |
From: <s-...@rh...> - 2003-12-28 20:57:14
|
> I alter /etc/inittab and changed lines like > "1:2345:respawn:/sbin/mingetty --noclear tty1" to > "c1:1235:respawn:/sbin/agetty 38400 tty1 linux". I also modified /etc/fstab > to match the new disk layout mingetty should work fine, you just need to change it to tty0. All that proc stuff you checked in mconsole is fine. -Steve |
From: Alexander N. <ale...@ne...> - 2003-12-28 21:07:42
|
Thanks. And what are these lines about? Setting up loopback interface /sbin/ifup: line 119: /dev/fd/62: No such file or directory /sbin/ifup: line 540: /dev/fd/62: No such file or directory /sbin/ifup: line 1: /dev/fd/62: No such file or directory /sbin/ifup: line 1: /dev/fd/61: No such file or directory /sbin/ifup: line 171: /dev/fd/62: No such file or directory /sbin/ifup: line 431: /dev/fd/62: No such file or directory /etc/sysconfig/network/scripts/ifup-route: line 433: /dev/fd/62: No such file or directory Thanks, Alexander Newald ----- Original Message ----- From: <s-...@rh...> To: "Alexander Newald" <ale...@ne...> Cc: <Use...@li...> Sent: Sunday, December 28, 2003 11:00 PM Subject: Re: [uml-user] Problems while booting /dev/fd/62 & devpts > > I alter /etc/inittab and changed lines like > > "1:2345:respawn:/sbin/mingetty --noclear tty1" to > > "c1:1235:respawn:/sbin/agetty 38400 tty1 linux". I also modified /etc/fstab > > to match the new disk layout > > mingetty should work fine, you just need to change it to tty0. > > All that proc stuff you checked in mconsole is fine. > > > -Steve > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > |
From: <s-...@rh...> - 2003-12-28 22:24:09
|
On Sun, Dec 28, 2003 at 10:08:47PM +0100, Alexander Newald wrote: > Thanks. > > And what are these lines about? > > Setting up loopback interface /sbin/ifup: line 119: /dev/fd/62: No such file > or directory > /sbin/ifup: line 540: /dev/fd/62: No such file or directory Your distro had a symlink from /dev/fd to /proc/self/fd in the filesystem. Under UML you're using devfs and devfs does not have this /dev/fd symlink. I suppose your distro was not designed to work with devfs. You could not use devfs, or change those init scripts to use /proc/self/fd instead of /dev/fd. -Steve |
From: Alexander N. <ale...@ne...> - 2003-12-28 22:42:56
|
Hello, thanks for the hint! I added "devfs=nomount" to the kernel boot cmdline and now the boot process goes up to the point of entering run level 3 ... INIT: Entering runlevel: 3 And nothing more. And hint for this thing? Thanks Alexander Newald ----- Original Message ----- From: <s-...@rh...> To: "Alexander Newald" <ale...@ne...> Cc: <Use...@li...> Sent: Monday, December 29, 2003 12:27 AM Subject: Re: [uml-user] Problems while booting /dev/fd/62 & devpts > On Sun, Dec 28, 2003 at 10:08:47PM +0100, Alexander Newald wrote: > > Thanks. > > > > And what are these lines about? > > > > Setting up loopback interface /sbin/ifup: line 119: /dev/fd/62: No such file > > or directory > > /sbin/ifup: line 540: /dev/fd/62: No such file or directory > > Your distro had a symlink from /dev/fd to /proc/self/fd in the filesystem. > Under UML you're using devfs and devfs does not have this /dev/fd symlink. I > suppose your distro was not designed to work with devfs. > > You could not use devfs, or change those init scripts to use /proc/self/fd > instead of /dev/fd. > > > -Steve > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > |
From: <s-...@rh...> - 2003-12-29 00:27:29
|
On Sun, Dec 28, 2003 at 11:44:02PM +0100, Alexander Newald wrote: > Hello, > > thanks for the hint! I added "devfs=nomount" to the kernel boot cmdline and > now the boot process goes up to the point of entering run level 3 > > ... > INIT: Entering runlevel: 3 > > And nothing more. I'm not familiar with suse, so I'm not sure what it is supposed to be doing at that point. All I can suggest would be to make sure a getty is being run on tty0 (non devfs) in that runlevel. Maybe try logging in from the network if possible and see what is going on. -Steve |
From: Jeff D. <jd...@ad...> - 2004-01-06 02:39:24
|
ale...@ne... said: > INIT: Entering runlevel: 3 > And nothing more. > And hint for this thing? I think everything is fine. Last time I checked, SuSE didn't put a getty on the main console, so you won't see a login prompt there. Attach to one of the other consoles or add a getty to tty0 in inittab and you should be able to log in. Jeff |