[Netkit.users] Building a Custom Netkit Kernel

Costa >> rui.rcosta at gmail.com
Mon Sep 12 14:52:42 CEST 2011


Dear Massimo,

compiling for a newer kernel won't make the UML patch useless?
I thought that the UML patch provided in netkit is specific for kernel
2.6.26.5.
For a newer kernel the files are not the same or don't have the same content

and therefore the same patch wouldn't work correct?


Best Regards,
Rui Costa



On Sat, Sep 10, 2011 at 3:00 PM, Massimo Rimondini <rimondin at dia.uniroma3.it
> wrote:

>  Dear Rui,
>
> could you try by recompiling a more recent version of the kernel?
> The Makefile contains appropriate parameters to choose the release to work
> on, see
> https://github.com/maxonthegit/netkit-uml-kernel/blob/master/Makefile.devel#L35.
> Most likely, you will need to disable MPLS support, which requires quite a
> bit of tweaking of the Makefile itself (or just a round of kernel
> compilation by hand).
>
> Regards,
> Massimo
>
> Il 09/09/2011 16.25, Costa >> ha scritto:
>
>
> Hi all,
>
> I'm new with netkit as well as with kernel building and I'm
> having some trouble setting up a custom kernel for netkit.
> I've tried both the ways that come in netkit's documentation
> (automatic and manual) and tried a few more tweaks by myself.
>
> Compiling the customized kernel always goes OK, in whatever
> way I do it, but the netkit's virtual machines crash on
> booting. The trace results (you can check them at the end of
> the e-mail below) are always extremely similar to another
> issue reported on the netkit mailing list:
>
> http://list.dia.uniroma3.it/pipermail/netkit.users/2010-November/000686.html
> I've also tried the approach explained in this thread but
> ended up with the same result as before.
>
>
> Does anyone have any hint on what is causing this or how to
> solve it?
>
> Thanks in advance,
> Best Regards,
>
> Rui Costa
>
>
>
>
>
> Here is the Netkit output:
>
> ============= Starting virtual machine "pc1" =============
>    Kernel:
> /home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linu
> x-2.6.26.5/linux
>    Memory:     32 MB
>    Model fs:   /home/user-netkit/Desktop/netkit/netkit/fs/netkit-fs
>    Filesystem: /home/user-netkit/Desktop/netkit/pc1.disk (new)
>    Hostfs at:  /home/user-netkit
>    Other args: sch_teql.max_equalizers=0
>
> Running ==>
> /home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linux-2
> .6.26.5/linux name=pc1 title=pc1 umid=pc1 mem=36M
> ubd0=/home/user-netkit/Desktop
> /netkit/pc1.disk,/home/user-netkit/Desktop/netkit/netkit/fs/netkit-fs
> root=98:1
> uml_dir=/home/user-netkit/.netkit/mconsole hosthome=/home/user-netkit
> sch_teql.
> max_equalizers=0 quiet con0=fd:0,fd:1 con1=null SELINUX_INIT=0
> Locating the bottom of the address space ... 0x10000
> Locating the top of the address space ... 0xc0000000
> Core dump limits :
>         soft - 0
>         hard - NONE
> 0xc0000000
> Core dump limits :
>         soft - 0
>         hard - NONE
> 0xc0000000
> Core dump limits :
>         soft - 0
>         hard - NONE
> 0xc0000000
> Core dump limits :
>         soft - 0
>         hard - NONE
> Checking for tmpfs mount on /dev/shm...OK
> Checking PROT_EXEC mmap in /dev/shm/...OK
> OK
> OK
> OK
> UML running in SKAS0 mode
> Adding 2260992 bytes to physical memory to account for exec-shield gap
> 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 the skas3 patch in the host:
>   - /proc/mm...not found: No such file or directory
>   - PTRACE_FAULTINFO...not found
>   - PTRACE_LDT...not found
> *** buffer overflow detected ***:
> /home/user-netkit/Desktop/netkit/custom-kernel
> /netkit/kernel/linux-2.6.26.5/linux terminated
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x1f2390]
> /lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0x1f12ca]
> /lib/tls/i686/cmov/libc.so.6(+0xe0c29)[0x1f0c29]
> /lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0x1f0b14]
>
> /home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linux-2.6.26.5/linu
> x[0x808cdee]
> [0x0]
> ======= Memory map: ========
> 00110000-00263000 r-xp 00000000 68:01 9438224
> /lib/tls/i686/cmov/libc-2.11.1.
> so
> 00263000-00264000 ---p 00153000 68:01 9438224
> /lib/tls/i686/cmov/libc-2.11.1.
> so
> 00264000-00266000 r-xp 00153000 68:01 9438224
> /lib/tls/i686/cmov/libc-2.11.1.
> so
> 00266000-00267000 rwxp 00155000 68:01 9438224
> /lib/tls/i686/cmov/libc-2.11.1.
> so
> 00267000-0026a000 rwxp 00000000 00:00 0
> 0026a000-00272000 r-xp 00000000 68:01 9438245
> /lib/tls/i686/cmov/libnss_nis-2
> .11.1.so
> 00272000-00273000 r-xp 00007000 68:01 9438245
> /lib/tls/i686/cmov/libnss_nis-2
> .11.1.so
> 00273000-00274000 rwxp 00008000 68:01 9438245
> /lib/tls/i686/cmov/libnss_nis-2
> .11.1.so
> 00276000-00291000 r-xp 00000000 68:01 9306137    /lib/ld-2.11.1.so
> 00291000-00292000 r-xp 0001a000 68:01 9306137    /lib/ld-2.11.1.so
> 00292000-00293000 rwxp 0001b000 68:01 9306137    /lib/ld-2.11.1.so
> 00402000-00404000 rwxp 00000000 00:00 0
> 00429000-00446000 r-xp 00000000 68:01 9306195    /lib/libgcc_s.so.1
> 00446000-00447000 r-xp 0001c000 68:01 9306195    /lib/libgcc_s.so.1
> 00447000-00448000 rwxp 0001d000 68:01 9306195    /lib/libgcc_s.so.1
> 004f9000-004fc000 rwxp 00000000 00:00 0
> 00681000-00694000 r-xp 00000000 68:01 9438235
> /lib/tls/i686/cmov/libnsl-2.11.
> 1.so
> 00694000-00695000 r-xp 00012000 68:01 9438235
> /lib/tls/i686/cmov/libnsl-2.11.
> 1.so
> 00695000-00696000 rwxp 00013000 68:01 9438235
> /lib/tls/i686/cmov/libnsl-2.11.
> 1.so
> 00696000-00698000 rwxp 00000000 00:00 0
> 0072f000-00730000 rwxp 00000000 00:00 0
> 00747000-00748000 rwxp 00000000 00:00 0
> 008a2000-008a3000 r-xp 00000000 00:00 0          [vdso]
> 009c0000-009ca000 r-xp 00000000 68:01 9438241
> /lib/tls/i686/cmov/libnss_files
> -2.11.1.so
> 009ca000-009cb000 r-xp 00009000 68:01 9438241
> /lib/tls/i686/cmov/libnss_files
> -2.11.1.so
> 009cb000-009cc000 rwxp 0000a000 68:01 9438241
> /lib/tls/i686/cmov/libnss_files
> -2.11.1.so
> 00d36000-00d37000 rwxp 00000000 00:00 0
> 00d9b000-00d9d000 r-xp 00000000 68:01 9438258
> /lib/tls/i686/cmov/libutil-2.11
> .1.so
> 00d9d000-00d9e000 r-xp 00001000 68:01 9438258
> /lib/tls/i686/cmov/libutil-2.11
> .1.so
> 00d9e000-00d9f000 rwxp 00002000 68:01 9438258
> /lib/tls/i686/cmov/libutil-2.11
> .1.so
> 00e05000-00e0b000 r-xp 00000000 68:01 9438237
> /lib/tls/i686/cmov/libnss_compa
> t-2.11.1.so
> 00e0b000-00e0c000 r-xp 00006000 68:01 9438237
> /lib/tls/i686/cmov/libnss_compa
> t-2.11.1.so
> 00e0c000-00e0d000 rwxp 00007000 68:01 9438237
> /lib/tls/i686/cmov/libnss_compa
> t-2.11.1.so
> 08048000-08422000 rwxp 00000000 68:01 12327718
> /home/user-netkit/Desktop/netki
> t/custom-kernel/netkit/kernel/linux-2.6.26.5/linux
> 08422000-08446000 rwxp 00000000 00:00 0
> 0864d000-0866e000 rwxp 00000000 00:00 0          [heap]
> 0866e000-0a670000 rwxs 00626000 00:10 8225       /dev/shm/vm_file-RhLyFA
> (delete
> d)
> bf8fb000-bf910000 rwxp 00000000 00:00 0          [stack]
> Terminated
>
>
>
> _______________________________________________
> Netkit.users mailing listNetkit.users at list.dia.uniroma3.ithttp://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>
>
> _______________________________________________
> Netkit.users mailing list
> Netkit.users at list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20110912/7ed29ce4/attachment.html>


More information about the Netkit.users mailing list