Hi Jeff,

Jon Rafkind wrote:
> 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 had similar problems when I tried to run my own UML guest kernel and
root filesystem. In my case the problem was that I misconfigured the UML
guest kernel and disabled support for xterm console. My gentoo was never
able to spawn the agettys. Enabling xterm console support solved the
problem for me. Also disabling all but one virtual console in inittab is
a great idea. Once I had set up the sshd, I disabled all consoles and
now, I log in via ssh only.

> 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?
The initial console is needed before udev is started, because the init
process is started with standard output and error connected with it.
Later on, after checking and mounting the root fs, udev creates device
nodes in a ramdisk mounted on /dev.

I think your problem is not the missing console device node but a
missing feature of your uml guest kernel or permission problem to open
the specified console on your host system. Maybe have a look into the
chapter on console support in the linux kernel documentation in
uml/UserModeLinux-HOWTO.txt.

PS: For testing purposes, I ran /bin/bash instead of /bin/init. But of
course, you need some libraries for that too. I would expect sulogin to
start a shell anyway. You may get around some other issues like access
to /etc/passwd.

Hope that is of help
Jan


-- 
Jan Wolff - [EMAIL PROTECTED]


-------------------------------------------------------------------------
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

Reply via email to