Re: [uml-user] Segfaulting applications inside UML

2006-03-10 Thread Blaisorblade
On Friday 10 March 2006 01:06, Itamar Reis Peixoto wrote:
> try
>
> rm -rf /lib/tls

At most mv /lib/tls /lib/tls.away - 2.6.15-bs3 supports TLS, and 2.6.17 should 
include officially the support.

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Re: TUN/TAP routing

2006-03-10 Thread Blaisorblade
On Friday 10 March 2006 12:34, Peter Methven wrote:
> Here are a few reasons I've found in the past that have stopped me pinging
> a virtual host from a physical host:

Could you avoid including unrelated mails in your answers?
You know, the netiquette, quote only what needed etc...
Your email weights 77k!

Thanks anyway for your answer to the question.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Error while java program running

2006-03-10 Thread Blaisorblade
On Friday 10 March 2006 00:54, Louai Al-Awami wrote:
> Hi all,

> My UML has been running quit well for some time.
>
> I have recently made a java program of a moderate size.
>
> The program runs many threads and they keep sending and receiving
> information from the network
>
> But each time I use it runs for a while and then I get the error below:

Are you using TLS libraries, which are unsupported by most UML kernels? Verify 
with:

ls /lib/tls

if that exists, then also Java is using them for threading and it won't work 
well.

Very recent UML releases (2.6.15-bs3 from my homepage) support TLS well. So, 
you may try upgrading.

> I suspect that the memory is not enough (I am using 80 MB), I also noticed
> that the SWAP is not used!

> Do you think is with my UML or with my Java program??

It can't be your Java program. If you get an Exception, it's your Java program 
(or the Java libraries, in rare cases); here the choice is a JVM bug or a UML 
bug.

> OS:Fedora Core release 1.92 (FC2 Test 3)
A beta Test 3?

> uname:Linux 2.6.8.1-1um #1 Sun Nov 13 18:59:22 AST 2005 i686

Such a old UML? It's very likely to be buggy when handling a JVM.

> libc:glibc 2.3.3 linuxthreads-0.10 (fixed stack)
>
> rlimit: STACK 2044k, CORE 0k, NPROC 237, NOFILE 1024, AS infinity
>
> load average:0.83 0.67 0.31
>
>
>
> CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse
>
>
>
> Memory: 4k page, physical 60900k(1184k free), swap 65528k(65528k free)
>
>
>
> vm_info: Java HotSpot(TM) Client VM (1.5.0_05-b05) for linux-x86, built on
> Aug 26 2005 16:24:31 by java_re with gcc 3.2.1-7a (J2SE release)

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Segfaulting applications inside UML

2006-03-10 Thread Julius Schwartzenberg

Blaisorblade schreef:

On Friday 10 March 2006 01:06, Itamar Reis Peixoto wrote:

try

rm -rf /lib/tls


At most mv /lib/tls /lib/tls.away - 2.6.15-bs3 supports TLS, and 2.6.17 should 
include officially the support.


Thanks a lot for the fix. It indeed solves the problem. I had actually 
also tried 2.6.15-bs3, but that gave me lot's of new TLS errors (and 
things still weren't working), so it seemed even worse.


Thanks,
Julius


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


[uml-user] Multiple UMLs sharing a single tap device

2006-03-10 Thread Julius Schwartzenberg

Hi,

I was wondering if it was possible to have multiple UMLs share a single 
tap device.
My goal is to have one subnet on tap0 in which all the UMLs are too, so 
you get one big virtual ethernet network.


I now get 'TUNSETIFF failed, errno = 16' when I try to get the second 
UML to work though.


What am I doing wrong here? What is the recommended way to build a 
virtual network using UMLs?


Thanks in advance,
Julius


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Multiple UMLs sharing a single tap device

2006-03-10 Thread Jim Carter
On Fri, 10 Mar 2006, Julius Schwartzenberg wrote:

> I was wondering if it was possible to have multiple UMLs share a single 
> tap device. My goal is to have one subnet on tap0 in which all the UMLs 
> are too, so you get one big virtual ethernet network.

I doubt it's possible, since each UML needs its own IP address and a shared
interface wouldn't know which guest to send packets to.  The tunnel driver 
can spawn arbitrarily many tun/tap devices at little cost; if you can 
create one, you can create ...  I actually don't know the upper bound, but 
it must be at least 16 and it might even be a module parameter if you need 
to raise the limit.

The host (configured as a router) will do the virtual Ethernet thing 
as its default behavior.

With many guests on one host, remember that the CPU is shared, and if 
several guests get CPU-intensive at the same time their individual 
performance will drop off.  Also UMLs take a lot of memory; be sure there's 
enough.

James F. Carter  Voice 310 825 2897FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA  90095-1555
Email: [EMAIL PROTECTED]http://www.math.ucla.edu/~jimc (q.v. for PGP key)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Segfaulting applications inside UML

2006-03-10 Thread Blaisorblade
On Friday 10 March 2006 17:35, Julius Schwartzenberg wrote:
> Blaisorblade schreef:
> > On Friday 10 March 2006 01:06, Itamar Reis Peixoto wrote:
> >>try
> >>
> >>rm -rf /lib/tls
> >
> > At most mv /lib/tls /lib/tls.away - 2.6.15-bs3 supports TLS, and 2.6.17
> > should include officially the support.
>
> Thanks a lot for the fix. It indeed solves the problem. I had actually
> also tried 2.6.15-bs3, but that gave me lot's of new TLS errors (and
> things still weren't working), so it seemed even worse.
It was -bs3 or -bs1? -bs1 gave a lot of messages, but -bs3 not, and until now 
all report say "-bs3 is ok".

If it's not ok for you, please let me know and we'll see what's happening.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Multiple UMLs sharing a single tap device

2006-03-10 Thread Blaisorblade
On Friday 10 March 2006 17:49, Julius Schwartzenberg wrote:
> Hi,
>
> I was wondering if it was possible to have multiple UMLs share a single
> tap device.

You can, but not the way you're trying.

> My goal is to have one subnet on tap0 in which all the UMLs are too, so
> you get one big virtual ethernet network.

That's possible, but you need to make UML use the daemon transport, and run 
uml_switch beforehand, connecting it to a pre-setup tap0 device. See the main 
page for more info (http://user-mode-linux.sourceforge.net/ -> Virtual 
networking).

> I now get 'TUNSETIFF failed, errno = 16' when I try to get the second
> UML to work though.

That's correct, you can't do it this way, like I said.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Multiple UMLs sharing a single tap device

2006-03-10 Thread Jason Lunz
[EMAIL PROTECTED] said:
>> My goal is to have one subnet on tap0 in which all the UMLs are too, so
>> you get one big virtual ethernet network.
>
> That's possible, but you need to make UML use the daemon transport, and run 
> uml_switch beforehand, connecting it to a pre-setup tap0 device. See the main 
> page for more info (http://user-mode-linux.sourceforge.net/ -> Virtual 
> networking).

You can also give each uml its own tap device, then use standard linux
bridging to bridge all the taps together on the host.

Though I wonder if this method has advantages or disadvantages compared
to using the switch daemon. I prefer using "normal" networking as
opposed to a special daemon. But maybe it's less efficient or something.

Jason



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


Re: [uml-user] Segfaulting applications inside UML

2006-03-10 Thread Julius Schwartzenberg

Blaisorblade schreef:

Thanks a lot for the fix. It indeed solves the problem. I had actually
also tried 2.6.15-bs3, but that gave me lot's of new TLS errors (and
things still weren't working), so it seemed even worse.


It was -bs3 or -bs1? -bs1 gave a lot of messages, but -bs3 not, and until now 
all report say "-bs3 is ok".


If it's not ok for you, please let me know and we'll see what's happening.


It was -bs3. I get a lot of these messages, when I try to use it with 
Debian Sarge:

load_TLS(O_FORCE) in fork_handler failed, errno 5, not EINVAL


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user


[uml-user] problem of building UML

2006-03-10 Thread sean yang
I downloaded a 2.4.21 kernel and the corresponding patch, when I try to 
build the UML, I met the following problem.

make xconfig ARCH=um
make linux ARCH=um

.(lots of output here discarded, the following is error message)
make[4]: Entering directory 
`/export/home/uml/linux-2.4.21/arch/um/kernel/tt/ptproxy'
gcc   -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ 
-DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE  
-I/export/home/uml/linux-2.4.21/arch/um/include 
-I/export/home/uml/linux-2.4.21/arch/um/kernel/tt/include -D_GNU_SOURCE -c 
-o proxy.o proxy.c
gcc   -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ 
-DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE  
-I/export/home/uml/linux-2.4.21/arch/um/include 
-I/export/home/uml/linux-2.4.21/arch/um/kernel/tt/include -D_GNU_SOURCE -c 
-o ptrace.o ptrace.c
gcc   -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ 
-DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE  
-I/export/home/uml/linux-2.4.21/arch/um/include 
-I/export/home/uml/linux-2.4.21/arch/um/kernel/tt/include -D_GNU_SOURCE -c 
-o sysdep.o sysdep.c

sysdep.c: In function `syscall_cancel':
sysdep.c:40: `errno' undeclared (first use in this function)
sysdep.c:40: (Each undeclared identifier is reported only once
sysdep.c:40: for each function it appears in.)
sysdep.c: In function `syscall_pause':
sysdep.c:56: `errno' undeclared (first use in this function)
make[4]: *** [sysdep.o] Error 1
make[4]: Leaving directory 
`/export/home/uml/linux-2.4.21/arch/um/kernel/tt/ptproxy'

make[3]: *** [first_rule] Error 2
make[3]: Leaving directory 
`/export/home/uml/linux-2.4.21/arch/um/kernel/tt/ptproxy'

make[2]: *** [_subdir_ptproxy] Error 2
make[2]: Leaving directory `/export/home/uml/linux-2.4.21/arch/um/kernel/tt'
make[1]: *** [_subdir_tt] Error 2
make[1]: Leaving directory `/export/home/uml/linux-2.4.21/arch/um/kernel'
make: *** [_dir_arch/um/kernel] Error 2

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user