<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Dear Rui,<br>
<br>
it would be interesting to know in more detail what you mean when
you say "still does not boot as a Netkit node".<br>
However, if it's just a folder issue, it is likely easily
solvable. Consider that, when you tell Netkit to use a custom
kernel in your/own/path, compiled modules will be looked for in
your/own/path/modules/lib/modules. Does this help somehow?<br>
The problem described in the post you mention should have been
solved as of Netkit release 2.8.<br>
<br>
Regards,<br>
Massimo<br>
</tt><br>
On 09/15/2011 12:07 PM, Costa >> wrote:
<blockquote
cite="mid:CACS32yAmWZYZui-U1ZFvZ_dQhXXZDCKBcdWi7Yn-E8yia6UG-Q@mail.gmail.com"
type="cite">Dear Massimo,<br>
<br>
Thank you very much for your help! <br>
It seems that part of the problem is solved.<br>
Although <a moz-do-not-send="true" href="http://kernel.org">kernel.org</a>
is down I got the kernel sources from Linus Torvalds github.<br>
I tried a few kernels manually until I got one that booted as a
netkit node:<br>
<br>
=> kernel v2.6.27.0 does the uml patch ok, has issues with an
already reported bug on vde_user.c, has a bug on making the kernel
oldconfig (already reported), but still does not boot as a netkit
node.<br>
<br>
<div class="gmail_quote">=> kernel v2.6.31.0 has issues with
the uml patch which be skipped, has the same bug on making the
kernel oldconfig (already reported), but still does not boot as
a netkit node.<br>
<br>
=> kernel v2.6.28.0 has issues with the uml patch which be
skipped, has the same bug on making the kernel oldconfig
(already reported), boots _almost_ ok as netkit node.<br>
<br>
It has a fatal error on loading the "modules.dep" file from
v2.6.28-0. It seems that it can't find the file belonging to
kernel v2.6.28.0-k2.8. It seems that is searching on the wrong
folder.. i'm not sure if it's because i've been passing the
kernel path as an argument on the vstart command (a similar
issue has been reported on <a moz-do-not-send="true"
href="http://list.dia.uniroma3.it/pipermail/netkit.users/2010-August/000638.html">http://list.dia.uniroma3.it/pipermail/netkit.users/2010-August/000638.html</a>)<br>
Any ideas on how to solve this modules.dep path ?<br>
<br>
Best regards,<br>
Rui Costa<br>
<br>
<br>
<br>
<br>
On Mon, Sep 12, 2011 at 2:57 PM, Massimo Rimondini <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:rimondin@dia.uniroma3.it">rimondin@dia.uniroma3.it</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <tt>Dear Rui,<br>
<br>
not really useless. It may still be possible to apply them
with minor offsets. I would give them a --dry-run try and
see what happens.<br>
Or it may also be that the fixes/functionalities they
provide are no longer necessary. Consider that about half
of the provided patches are only required for MPLS support
to work.<br>
<br>
Regards,<br>
<font color="#888888"> Massimo<br>
</font></tt>
<div>
<div class="h5"><br>
On 09/12/2011 02:52 PM, Costa >> wrote:
<blockquote type="cite">Dear Massimo,<br>
<br>
compiling for a newer kernel won't make the UML patch
useless?<br>
I thought that the UML patch provided in netkit is
specific for kernel 2.6.26.5. <br>
For a newer kernel the files are not the same or don't
have the same content <br>
and therefore the same patch wouldn't work correct?<br>
<br>
<br>
Best Regards,<br>
Rui Costa<br>
<br>
<br>
<br>
<div class="gmail_quote">On Sat, Sep 10, 2011 at 3:00
PM, Massimo Rimondini <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:rimondin@dia.uniroma3.it"
target="_blank">rimondin@dia.uniroma3.it</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Dear
Rui,<br>
<br>
could you try by recompiling a more recent
version of the kernel?<br>
The Makefile contains appropriate parameters
to choose the release to work on, see <a
moz-do-not-send="true"
href="https://github.com/maxonthegit/netkit-uml-kernel/blob/master/Makefile.devel#L35"
target="_blank">https://github.com/maxonthegit/netkit-uml-kernel/blob/master/Makefile.devel#L35</a>.
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).<br>
<br>
Regards,<br>
Massimo<br>
</tt><br>
Il 09/09/2011 16.25, Costa >> ha scritto:
<blockquote type="cite">
<div>
<div><br>
Hi all,<br>
<br>
I'm new with netkit as well as with kernel
building and I'm <br>
having some trouble setting up a custom
kernel for netkit.<br>
I've tried both the ways that come in
netkit's documentation <br>
(automatic and manual) and tried a few
more tweaks by myself.<br>
<br>
Compiling the customized kernel always
goes OK, in whatever <br>
way I do it, but the netkit's virtual
machines crash on <br>
booting. The trace results (you can check
them at the end of <br>
the e-mail below) are always extremely
similar to another <br>
issue reported on the netkit mailing list:<br>
<a moz-do-not-send="true"
href="http://list.dia.uniroma3.it/pipermail/netkit.users/2010-November/000686.html"
target="_blank">http://list.dia.uniroma3.it/pipermail/netkit.users/2010-November/000686.html</a><br>
I've also tried the approach explained in
this thread but <br>
ended up with the same result as before.<br>
<br>
<br>
Does anyone have any hint on what is
causing this or how to <br>
solve it?<br>
<br>
Thanks in advance,<br>
Best Regards,<br>
<br>
Rui Costa<br>
<br>
<br>
<br>
<br>
<br>
Here is the Netkit output:<br>
<br>
============= Starting virtual machine
"pc1" =============<br>
Kernel:
/home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linu<br>
x-2.6.26.5/linux<br>
Memory: 32 MB<br>
Model fs:
/home/user-netkit/Desktop/netkit/netkit/fs/netkit-fs<br>
Filesystem:
/home/user-netkit/Desktop/netkit/pc1.disk
(new)<br>
Hostfs at: /home/user-netkit<br>
Other args: sch_teql.max_equalizers=0<br>
<br>
Running ==>
/home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linux-2<br>
.6.26.5/linux name=pc1 title=pc1 umid=pc1
mem=36M ubd0=/home/user-netkit/Desktop<br>
/netkit/pc1.disk,/home/user-netkit/Desktop/netkit/netkit/fs/netkit-fs
root=98:1<br>
uml_dir=/home/user-netkit/.netkit/mconsole
hosthome=/home/user-netkit sch_teql.<br>
max_equalizers=0 quiet con0=fd:0,fd:1
con1=null SELINUX_INIT=0<br>
Locating the bottom of the address space
... 0x10000<br>
Locating the top of the address space ...
0xc0000000<br>
Core dump limits :<br>
soft - 0<br>
hard - NONE<br>
0xc0000000<br>
Core dump limits :<br>
soft - 0<br>
hard - NONE<br>
0xc0000000<br>
Core dump limits :<br>
soft - 0<br>
hard - NONE<br>
0xc0000000<br>
Core dump limits :<br>
soft - 0<br>
hard - NONE<br>
Checking for tmpfs mount on /dev/shm...OK<br>
Checking PROT_EXEC mmap in /dev/shm/...OK<br>
OK<br>
OK<br>
OK<br>
UML running in SKAS0 mode<br>
Adding 2260992 bytes to physical memory to
account for exec-shield gap<br>
Checking that ptrace can change system
call numbers...OK<br>
Checking syscall emulation patch for
ptrace...OK<br>
Checking advanced syscall emulation patch
for ptrace...OK<br>
Checking for the skas3 patch in the host:<br>
- /proc/mm...not found: No such file or
directory<br>
- PTRACE_FAULTINFO...not found<br>
- PTRACE_LDT...not found<br>
*** buffer overflow detected ***:
/home/user-netkit/Desktop/netkit/custom-kernel<br>
/netkit/kernel/linux-2.6.26.5/linux
terminated<br>
======= Backtrace: =========<br>
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x1f2390]<br>
/lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0x1f12ca]<br>
/lib/tls/i686/cmov/libc.so.6(+0xe0c29)[0x1f0c29]<br>
/lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0x1f0b14]<br>
/home/user-netkit/Desktop/netkit/custom-kernel/netkit/kernel/linux-2.6.26.5/linu<br>
x[0x808cdee]<br>
[0x0]<br>
======= Memory map: ========<br>
00110000-00263000 r-xp 00000000 68:01
9438224 /lib/tls/i686/cmov/libc-2.11.1.<br>
so<br>
00263000-00264000 ---p 00153000 68:01
9438224 /lib/tls/i686/cmov/libc-2.11.1.<br>
so<br>
00264000-00266000 r-xp 00153000 68:01
9438224 /lib/tls/i686/cmov/libc-2.11.1.<br>
so<br>
00266000-00267000 rwxp 00155000 68:01
9438224 /lib/tls/i686/cmov/libc-2.11.1.<br>
so<br>
00267000-0026a000 rwxp 00000000 00:00 0<br>
0026a000-00272000 r-xp 00000000 68:01
9438245 /lib/tls/i686/cmov/libnss_nis-2<br>
.<a moz-do-not-send="true"
href="http://11.1.so" target="_blank">11.1.so</a><br>
00272000-00273000 r-xp 00007000 68:01
9438245 /lib/tls/i686/cmov/libnss_nis-2<br>
.<a moz-do-not-send="true"
href="http://11.1.so" target="_blank">11.1.so</a><br>
00273000-00274000 rwxp 00008000 68:01
9438245 /lib/tls/i686/cmov/libnss_nis-2<br>
.<a moz-do-not-send="true"
href="http://11.1.so" target="_blank">11.1.so</a><br>
00276000-00291000 r-xp 00000000 68:01
9306137 /lib/<a moz-do-not-send="true"
href="http://ld-2.11.1.so"
target="_blank">ld-2.11.1.so</a><br>
00291000-00292000 r-xp 0001a000 68:01
9306137 /lib/<a moz-do-not-send="true"
href="http://ld-2.11.1.so"
target="_blank">ld-2.11.1.so</a><br>
00292000-00293000 rwxp 0001b000 68:01
9306137 /lib/<a moz-do-not-send="true"
href="http://ld-2.11.1.so"
target="_blank">ld-2.11.1.so</a><br>
00402000-00404000 rwxp 00000000 00:00 0<br>
00429000-00446000 r-xp 00000000 68:01
9306195 /lib/libgcc_s.so.1<br>
00446000-00447000 r-xp 0001c000 68:01
9306195 /lib/libgcc_s.so.1<br>
00447000-00448000 rwxp 0001d000 68:01
9306195 /lib/libgcc_s.so.1<br>
004f9000-004fc000 rwxp 00000000 00:00 0<br>
00681000-00694000 r-xp 00000000 68:01
9438235 /lib/tls/i686/cmov/libnsl-2.11.<br>
1.so<br>
00694000-00695000 r-xp 00012000 68:01
9438235 /lib/tls/i686/cmov/libnsl-2.11.<br>
1.so<br>
00695000-00696000 rwxp 00013000 68:01
9438235 /lib/tls/i686/cmov/libnsl-2.11.<br>
1.so<br>
00696000-00698000 rwxp 00000000 00:00 0<br>
0072f000-00730000 rwxp 00000000 00:00 0<br>
00747000-00748000 rwxp 00000000 00:00 0<br>
008a2000-008a3000 r-xp 00000000 00:00
0 [vdso]<br>
009c0000-009ca000 r-xp 00000000 68:01
9438241 /lib/tls/i686/cmov/libnss_files<br>
-<a moz-do-not-send="true"
href="http://2.11.1.so" target="_blank">2.11.1.so</a><br>
009ca000-009cb000 r-xp 00009000 68:01
9438241 /lib/tls/i686/cmov/libnss_files<br>
-<a moz-do-not-send="true"
href="http://2.11.1.so" target="_blank">2.11.1.so</a><br>
009cb000-009cc000 rwxp 0000a000 68:01
9438241 /lib/tls/i686/cmov/libnss_files<br>
-<a moz-do-not-send="true"
href="http://2.11.1.so" target="_blank">2.11.1.so</a><br>
00d36000-00d37000 rwxp 00000000 00:00 0<br>
00d9b000-00d9d000 r-xp 00000000 68:01
9438258 /lib/tls/i686/cmov/libutil-2.11<br>
.1.so<br>
00d9d000-00d9e000 r-xp 00001000 68:01
9438258 /lib/tls/i686/cmov/libutil-2.11<br>
.1.so<br>
00d9e000-00d9f000 rwxp 00002000 68:01
9438258 /lib/tls/i686/cmov/libutil-2.11<br>
.1.so<br>
00e05000-00e0b000 r-xp 00000000 68:01
9438237 /lib/tls/i686/cmov/libnss_compa<br>
<a moz-do-not-send="true"
href="http://t-2.11.1.so"
target="_blank">t-2.11.1.so</a><br>
00e0b000-00e0c000 r-xp 00006000 68:01
9438237 /lib/tls/i686/cmov/libnss_compa<br>
<a moz-do-not-send="true"
href="http://t-2.11.1.so"
target="_blank">t-2.11.1.so</a><br>
00e0c000-00e0d000 rwxp 00007000 68:01
9438237 /lib/tls/i686/cmov/libnss_compa<br>
<a moz-do-not-send="true"
href="http://t-2.11.1.so"
target="_blank">t-2.11.1.so</a><br>
08048000-08422000 rwxp 00000000 68:01
12327718 /home/user-netkit/Desktop/netki<br>
t/custom-kernel/netkit/kernel/linux-2.6.26.5/linux<br>
08422000-08446000 rwxp 00000000 00:00 0<br>
0864d000-0866e000 rwxp 00000000 00:00
0 [heap]<br>
0866e000-0a670000 rwxs 00626000 00:10
8225 /dev/shm/vm_file-RhLyFA (delete<br>
d)<br>
bf8fb000-bf910000 rwxp 00000000 00:00
0 [stack]<br>
Terminated<br>
<br>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Netkit.users mailing list
<a moz-do-not-send="true" href="mailto:Netkit.users@list.dia.uniroma3.it" target="_blank">Netkit.users@list.dia.uniroma3.it</a>
<a moz-do-not-send="true" href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users" target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
</pre>
</blockquote>
</div>
<br>
_______________________________________________<br>
Netkit.users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Netkit.users@list.dia.uniroma3.it"
target="_blank">Netkit.users@list.dia.uniroma3.it</a><br>
<a moz-do-not-send="true"
href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users"
target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a><br>
<br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
Netkit.users mailing list
<a moz-do-not-send="true" href="mailto:Netkit.users@list.dia.uniroma3.it" target="_blank">Netkit.users@list.dia.uniroma3.it</a>
<a moz-do-not-send="true" href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users" target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Netkit.users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Netkit.users@list.dia.uniroma3.it">Netkit.users@list.dia.uniroma3.it</a><br>
<a moz-do-not-send="true"
href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users"
target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Netkit.users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Netkit.users@list.dia.uniroma3.it">Netkit.users@list.dia.uniroma3.it</a>
<a class="moz-txt-link-freetext" href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
</pre>
</blockquote>
</body>
</html>