无法登录用户模式Linux(UML)

无法登录用户模式Linux(UML),linux,user-mode-linux,Linux,User Mode Linux,对于我的UML(用户模式linux),我构建了一个基于Debian的根文件系统,并添加了一个用户“UML”。但是当我尝试登录UML时,它没有被接受: <snip> (none) login: uml Ubuntu 5.10 "Breezy Badger" (none) tty0 (none) login: </snip> 更新:我尝试了与答案相同的方法,但得到了这个错误。注:我在32位i386中构建了2.6.27内核 [42949373.510000] VFS: M

对于我的
UML(用户模式linux)
,我构建了一个基于Debian的根文件系统,并添加了一个用户“UML”。但是当我尝试登录UML时,它没有被接受:

<snip>
(none) login: uml

Ubuntu 5.10 "Breezy Badger" (none) tty0

(none) login:
</snip>
更新:我尝试了与答案相同的方法,但得到了这个错误。注:我在32位i386中构建了2.6.27内核

[42949373.510000] VFS: Mounted root (ext3 filesystem) readonly.
modprobe: FATAL: Could not load /lib/modules/2.6.27/modules.dep: No such file or directory

INIT: version 2.88 booting
INIT: Entering runlevel: 2
[42949373.660000] Serial line 0 assigned device '/dev/pts/8'

INIT: Id "c0" respawning too fast: disabled for 5 minutes

Debian GNU/Linux 6.0 (none) tty0

(none) login: root

Login incorrect

我已经编辑了我的答案

这就是我所做的,它对我很有用

构建内核

# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.gz

# bunzip2 linux-2.6.39.tar.gz

# make ARCH=um defconfig

# make ARCH=um
下载根fs

# wget http://fs.devloop.org.uk/filesystems/Debian-Squeeze/Debian-Squeeze-AMD64-root_fs.bz2

# bunzip2 Debian-Squeeze-AMD64-root_fs.bz2
启动umllinux

./vmlinux ubda=/root/Debian-Squeeze-AMD64-root_fs mem=128m umid=debian
...
...
...
Debian GNU/Linux 6.0 (none) tty0

(none) login: root
Last login: Wed Jan 30 19:57:33 UTC 2013 on tty0
Linux (none) 2.6.39 #1 Wed Jan 30 11:49:25 PST 2013 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@(none):~# whoami
root

我刚刚发布了一个可能相关的消息。然后偶然找到了答案,这至少对我来说是有效的

您正在运行哪个主机版本?我发现在2.6.18-194.8.1.el5作为主机的情况下,这些版本的UML确实可以工作,而在2.6.9-89.0.11.SMP主机上则不行


为什么。。。我不知道:(

我两者都做了。事实上,我一直在关注这一页:。但仍然遇到同样的问题。你是从新的UML内核启动还是只是在玩chroot?发布一些错误消息并挖掘日志文件。如果没有它们,我想任何人都帮不上忙…嗨,我已经用登录会话的完整日志更新了我的问题。另外,我想知道是否没有以下是登录失败/不被接受时我可以检查的日志?我在启动“linux”的目录下找不到任何内容。检查/var/log/messages、/var/log/secure等。您是否在/dev dir中创建了所有设备?确保正在创建devtmpfs。我缺少该步骤。最小构建根映像:
./vmlinux ubda=/root/Debian-Squeeze-AMD64-root_fs mem=128m umid=debian
...
...
...
Debian GNU/Linux 6.0 (none) tty0

(none) login: root
Last login: Wed Jan 30 19:57:33 UTC 2013 on tty0
Linux (none) 2.6.39 #1 Wed Jan 30 11:49:25 PST 2013 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@(none):~# whoami
root