Re: [uml-user] hang after Starting crond: [ OK ]
On 12/09/2010 04:55 PM, Nicholas Mc Guire wrote: On Thu, 09 Dec 2010, hxqq wrote: Hi everyone, *** My OS is Fedora 11, I download Linux kernel 2.6.36.1 and use snip Initialized stdio console driver Console initialized on /dev/tty0 console [tty0] enabled Initializing software serial port version 1 console [mc-1] enabled snip I guess this simply means that you did not set up a getty process on the console device you are using - check your /etc/inittab to see if you have a getty process for tty0 set up (its not there by default) Fedora no longer uses inittab for ttys. Each distribution also does things slighly differently when it comes to that. Even Fedora has changed it more than once in the last few releases! I have updated the images on the website. To update an existing one (Fedora 13 or 14), loop mount it then chroot and run: mknod /dev/tty0 c 4 0 echo tty0 /etc/securetty sed -i -e 's/1-6/0-6/g' /etc/sysconfig/init sed -i -e 's/1-6/0-6/g' /etc/init/start-ttys.conf For Fedora 12 and earlier, use something like this instead (still from inside the chroot): mknod /dev/tty0 c 4 0 sed 's+tty1+tty0+g' /etc/event.d/tty1 /etc/event.d/tty0 I don't really use or test with UML very often nowadays, but if you find anything else wrong with these disk images just let me know. Cheers Antoine hofrat -- This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user -- ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] hang after Starting crond: [ OK ]
On 12/10/2010 08:43 PM, Antoine Martin wrote: On 12/09/2010 04:55 PM, Nicholas Mc Guire wrote: On Thu, 09 Dec 2010, hxqq wrote: Hi everyone, *** My OS is Fedora 11, I download Linux kernel 2.6.36.1 and use snip Initialized stdio console driver Console initialized on /dev/tty0 console [tty0] enabled Initializing software serial port version 1 console [mc-1] enabled snip I guess this simply means that you did not set up a getty process on the console device you are using - check your /etc/inittab to see if you have a getty process for tty0 set up (its not there by default) Fedora no longer uses inittab for ttys. Each distribution also does things slighly differently when it comes to that. Even Fedora has changed it more than once in the last few releases! I have updated the images on the website. To update an existing one (Fedora 13 or 14), loop mount it then chroot and run: mknod /dev/tty0 c 4 0 echo tty0 /etc/securetty sed -i -e 's/1-6/0-6/g' /etc/sysconfig/init sed -i -e 's/1-6/0-6/g' /etc/init/start-ttys.conf For Fedora 12 and earlier, use something like this instead (still from inside the chroot): mknod /dev/tty0 c 4 0 sed 's+tty1+tty0+g' /etc/event.d/tty1 /etc/event.d/tty0 I don't really use or test with UML very often nowadays, but if you find anything else wrong with these disk images just let me know. Apologies to those who don't know what I was talking about, the filesystems that this user was referring to can be found here: http://fs.devloop.org.uk/ And the kernels here (2.6.36.2 freshly built today): http://uml.devloop.org.uk/ Cheers Antoine Cheers Antoine hofrat -- This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] hang after Starting crond: [ OK ]
Thank you very much for your patient and nice advice. I follow your advice: I have updated the images on the website. To update an existing one (Fedora 13 or 14), loop mount it then chroot and run: mknod /dev/tty0 c 4 0 echo tty0 /etc/securetty sed -i -e 's/1-6/0-6/g' /etc/sysconfig/init sed -i -e 's/1-6/0-6/g' /etc/init/start-ttys.conf * and it really work! Many thanks! Kevin -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] hang after Starting crond: [ OK ]
On Thu, 09 Dec 2010, hxqq wrote: Hi everyone, *** My OS is Fedora 11, I download Linux kernel 2.6.36.1 and use snip Initialized stdio console driver Console initialized on /dev/tty0 console [tty0] enabled Initializing software serial port version 1 console [mc-1] enabled snip I guess this simply means that you did not set up a getty process on the console device you are using - check your /etc/inittab to see if you have a getty process for tty0 set up (its not there by default) hofrat -- This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] hang after Starting crond: [ OK ]
Could u build filesystem from scratch and tryout. For me , i built a filesystem and is running perfectly fine . -Ratheesh On Thu, Dec 9, 2010 at 2:08 PM, hxqq houq...@gmail.com wrote: Hi everyone, My OS is Fedora 11, I download Linux kernel 2.6.36.1 and use *make defconfig ARCH=um make menuconfig ARCH=um *to add support for ext-4 *make ARCH=um* So I get a UML kernel, and I use a filesystem from here: http://fs.devloop.org.uk/filesystems/Fedora14/Fedora14-x86-root_fs.bz2 and use *./linux ubd0=Fedora14-x86-root_fs mem=512M* to start the UML guest OS but It hang after Starting crond:[OK], I also use this kernel: http://uml.devloop.org.uk/kernels/kernel32-2.6.36.1.bz2 but the result is the same. The message print is below: ** Locating the bottom of the address space ... 0x0 Locating the top of the address space ... 0xc000 Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...OK Checking PROT_EXEC mmap in /dev/shm/...OK Checking for the skas3 patch in the host: - /proc/mm...not found: No such file or directory - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Adding 28512256 bytes to physical memory to account for exec-shield gap Linux version 2.6.36.1 (r...@localhost.localdomain) (gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) ) #1 Thu Dec 9 16:18:25 CST 2010 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 136954 Kernel command line: ubd0=../Fedora14-x86-root_fs mem=512M root=98:0 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 512152k available Hierarchical RCU implementation. Verbose stalled-CPUs detection is disabled. NR_IRQS:15 Calibrating delay loop... 5806.48 BogoMIPS (lpj=29032448) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Checking for host processor cmov support...Yes Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround Using 2.6 host AIO NET: Registered protocol family 16 bio: create slab bio-0 at 0 Switching to clocksource itimer NET: Registered protocol family 2 IP route cache hash table entries: 8192 (order: 3, 32768 bytes) TCP established hash table entries: 32768 (order: 6, 262144 bytes) TCP bind hash table entries: 32768 (order: 5, 131072 bytes) TCP: Hash tables configured (established 32768 bind 32768) TCP reno registered UDP hash table entries: 512 (order: 1, 8192 bytes) UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) NET: Registered protocol family 1 mconsole (version 2) initialized on /root/.uml/baPFFj/mconsole Checking host MADV_REMOVE support...OK Host TLS support detected Detected host type: i386 (GDT indexes 6 to 9) VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) msgmni has been set to 1000 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) TCP cubic registered NET: Registered protocol family 17 Initialized stdio console driver Console initialized on /dev/tty0 console [tty0] enabled Initializing software serial port version 1 console [mc-1] enabled ubda: unknown partition table EXT3-fs (ubda): error: couldn't mount because of unsupported optional features (240) EXT2-fs (ubda): error: couldn't mount because of unsupported optional features (244) EXT4-fs (ubda): INFO: recovery required on readonly filesystem EXT4-fs (ubda): write access will be enabled during recovery EXT4-fs (ubda): recovery complete EXT4-fs (ubda): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) readonly on device 98:0. Welcome to Fedora Starting udev: udevd[227]: failed to create queue file: No such file or directory udevd[227]: error creating queue file error sending message: Connection refused udevadm[230]: error sending message: Connection refused [FAILED] Setting hostname localhost: [ OK ] Checking filesystems Checking all file systems. [ OK ] Remounting root filesystem in read-write mode: EXT4-fs (ubda): re-mounted. Opts: (null) [ OK ] Mounting local filesystems: [ OK ] Enabling /etc/fstab swaps: [ OK ] modprobe: FATAL: Could not load /lib/modules/2.6.36.1/modules.dep: No such file or directory modprobe: FATAL: Could not load /lib/modules/2.6.36.1/modules.dep: No such file or directory Entering non-interactive startup Starting auditd: modprobe: FATAL: Could not load /lib/modules/ 2.6.36.1/modules.dep: No such file or directory