I'm trying to use UML so that I can hack on linux a bit but am having trouble getting UML up and running. Initially I tried the kernel and fs listed on the UML.sf.net site which worked ok except it didn't want to load the hostfs module so I couldn't easily copy over any files on my host system.
I'd like to be able to run my own compiled kernel + my own fs even if there are ways around using hostfs. So I created an fs and loaded it with the normal stuff, /lib/ld-linux.so, etc, /bin/sh, /bin/init, /bin/sulogin. Every time I ran UML it said Warning: unable to open an initial console. I looked at the console stuff on the sourceforge page but that didn't seem to have anything to do with /dev/console. I also noticed other pages saying you have to load devfs but there are no devfs options in 2.6( my linux source is 2.6.22.4 ). Didn't udev replace it? Anyway the basic run of my kernel is $ ./linux ubd0=../image Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK ...more init stuff... EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Warning: unable to open an initial console Try to run /sbin/init Trying to exec /sbin/init Succeeded in running /sbin/init. Jumping to 087fefbc Trying to exec /sbin/sulogin Trying to exec /sbin/sulogin ..repeat forever.. Those last couple of lines were added by me for debugging purposes. The "Trying to exec" message comes during the execve() call at some point. /sbin/init failed to exec too until I added the right libraries to /lib. I think I have all the right libraries for /sbin/sulogin in my image but it still won't exec. Any ideas? $ ldd mnt/sbin/sulogin linux-gate.so.1 => (0xffffe000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7ebe000) libc.so.6 => /lib/libc.so.6 (0xb7d96000) /lib/ld-linux.so.2 (0xb7ef6000) $ ls mnt/lib/libcrypt.so.1 mnt/lib/libc.so.6 mnt/lib/ld-linux.so.2 mnt/lib/ld-linux.so.2* mnt/lib/libc.so.6* mnt/lib/libcrypt.so.1* Sorry if my email is sort of all over the place. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user