| View previous topic :: View next topic |
| Author |
Message |
LinuxMan Tux's lil' helper


Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sun Dec 31, 2006 10:42 am Post subject: User Mode Linux don't work |
|
|
Hello. I try to use UML. My guest kernel is sys-kernel/usermode-sources. I read both howto - on gentoo-wiki(http://gentoo-wiki.com/HOWTO_User_Mode_Linux) and gentoo docs(http://www.gentoo.org/doc/en/uml.xml). But when i run my uml i have this error:
| Code: | linuxman@dproject /uml/systems/pristine $ /usr/src/linux-2.6.18-usermode/linux load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=22000 initrd=gentoo.igz ubd0=root_fs ubd1=swap_fs ubd2=/dev/hdc eth0=tuntap,,,192.168.0.254
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
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
- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Linux version 2.6.18-usermode-skas3-v9-pre9-fremap (root@dproject.org.ua) (gcc version 4.1.1 (Gentoo 4.1.1-r1, pie-8.7.8-cg)) #1 Sat Dec 30 20:33:45 EET 2006
Built 1 zonelists. Total pages: 8192
Kernel command line: load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=22000 initrd=gentoo.igz ubd0=root_fs ubd1=swap_fs ubd2=/dev/hdc eth0=tuntap,,,192.168.0.254 root=98:0
PID hash table entries: 256 (order: 8, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
Memory: 28932k available
Mount-cache hash table entries: 256
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
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -1, 2048 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 512 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
Host TLS support detected
Checking host MADV_REMOVE support...MADV_REMOVE failed, err = -22
Can't release memory to the host - memory hotplug won't be supported
mconsole (version 2) initialized on /home/linuxman/.uml/pgwuKt/mconsole
Netdevice 0 : TUN/TAP backend - IP = 192.168.0.254
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
ubda: unknown partition table
ubdb: unknown partition table
Failed to open '/dev/hdc', errno = 123
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Usage: init 0123456SsQqAaBbCcUu
Kernel panic - not syncing: Attempted to kill init!
Modules linked in:
Pid: 1, comm: init Not tainted 2.6.18-usermode-skas3-v9-pre9-fremap
RIP: 0033:[<00000000401a262a>]
RSP: 0000007f7ffc5278 EFLAGS: 00000246
RAX: ffffffffffffffda RBX: 0000000040332008 RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: 0000000040332008 R08: 000000000000003c R09: 00000000000000e7
R10: 00000000401159a8 R11: 0000000000000246 R12: 0000000000000001
R13: 0000007f7ffc5618 R14: 0000007f7ffc6fa0 R15: 0000007f7ffc5350
Call Trace:
60963b88: [<60013cc7>] panic_exit+0x2f/0x49
60963ba8: [<60038a63>] notifier_call_chain+0x29/0x3e
60963bd8: [<60038b08>] atomic_notifier_call_chain+0x9/0xb
60963be8: [<6002b69a>] panic+0xe6/0x178
60963c58: [<60013451>] segv+0xa7/0x29f
60963c88: [<60023d22>] wait_stub_done+0x6f/0x124
60963cd8: [<6002df7d>] do_exit+0x7b/0x3fe
60963d18: [<6002e3eb>] sys_exit_group+0x0/0x14
60963d58: [<6002e3fd>] sys_exit_group+0x12/0x14
60963d68: [<600146ad>] handle_syscall+0x65/0x80
60963d98: [<60023fc6>] userspace+0x1ef/0x237
60963df0: [<6000f1e2>] init+0x0/0x132
60963df8: [<600142d5>] new_thread_handler+0xb8/0xca
|
The same i have when i try command from gentoo-wiki:
| Code: | linuxman@dproject /uml/systems/pristine $ /usr/src/linux-2.6.18-usermode/linux ubd0=root_fs ubd1=swap_fs eth0=tuntap,uml0 umid=pristine con=null con0=fd:0,fd:1
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
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
- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Linux version 2.6.18-usermode-skas3-v9-pre9-fremap (root@dproject.org.ua) (gcc version 4.1.1 (Gentoo 4.1.1-r1, pie-8.7.8-cg)) #1 Sat Dec 30 20:33:45 EET 2006
Built 1 zonelists. Total pages: 8192
Kernel command line: ubd0=root_fs ubd1=swap_fs eth0=tuntap,uml0 con=null con0=fd:0,fd:1 root=98:0
PID hash table entries: 256 (order: 8, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
Memory: 28828k available
Mount-cache hash table entries: 256
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
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -1, 2048 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 512 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
Host TLS support detected
Checking host MADV_REMOVE support...MADV_REMOVE failed, err = -22
Can't release memory to the host - memory hotplug won't be supported
mconsole (version 2) initialized on /home/linuxman/.uml/pristine/mconsole
Netdevice 0 : TUN/TAP backend -
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
ubda: unknown partition table
ubdb: unknown partition table
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Usage: init 0123456SsQqAaBbCcUu
Kernel panic - not syncing: Attempted to kill init!
Modules linked in:
Pid: 1, comm: init Not tainted 2.6.18-usermode-skas3-v9-pre9-fremap
RIP: 0033:[<00000000401a262a>]
RSP: 0000007f7fc57f38 EFLAGS: 00000246
RAX: ffffffffffffffda RBX: 0000000040332008 RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: 0000000040332008 R08: 000000000000003c R09: 00000000000000e7
R10: 00000000401159a8 R11: 0000000000000246 R12: 0000000000000001
R13: 0000007f7fc582d8 R14: 0000007f7fc59fc7 R15: 0000007f7fc58010
Call Trace:
6096bb88: [<60013cc7>] panic_exit+0x2f/0x49
6096bba8: [<60038a63>] notifier_call_chain+0x29/0x3e
6096bbd8: [<60038b08>] atomic_notifier_call_chain+0x9/0xb
6096bbe8: [<6002b69a>] panic+0xe6/0x178
6096bc58: [<60013451>] segv+0xa7/0x29f
6096bc88: [<60023d22>] wait_stub_done+0x6f/0x124
6096bcd8: [<6002df7d>] do_exit+0x7b/0x3fe
6096bd18: [<6002e3eb>] sys_exit_group+0x0/0x14
6096bd58: [<6002e3fd>] sys_exit_group+0x12/0x14
6096bd68: [<600146ad>] handle_syscall+0x65/0x80
6096bd98: [<60023fc6>] userspace+0x1ef/0x237
6096bdf0: [<6000f1e2>] init+0x0/0x132
6096bdf8: [<600142d5>] new_thread_handler+0xb8/0xca
|
After some googling i found that i need reverse x86-64 support patch. But if i reverse this patch, i think that i could not run UML on AMD64. Somebody can give me a solution? _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
| Back to top |
|
 |
juhah n00b

Joined: 03 Oct 2004 Posts: 46
|
Posted: Wed Jan 03, 2007 7:13 am Post subject: |
|
|
Kernel (?) called init with invalid arguments.
You seem to have a lot of interesting command line arguments. Perhaps starting with only two basic arguments ubd0 and ubd1 could help and add others once you booted your UML successfully.
Also, I'd try to re-create the root_fs as instructed in Gentoo UML guide. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|