chip | 1 Nov 2003 17:01
Gravatar

RE: [uml-user] Networking with UML

Sounds like a routing problem.  If your host does a NAT to the UML, the 
UML must have the host IP as it's default route.  If it sends a response 
back via any other route the NAT will be broken.

If you are bridging to a real interface your UML should be able to talk 
directly on the network as your host does.  

Chip Schweiss

> -----Original Message-----
> From: kconaway [mailto:kconaway <at> ucwphilly.rr.com]
> Sent: Friday, October 31, 2003 12:48 PM
> To: Chip Schweiss
> Cc: user-mode-linux-user
> Subject: Re: [uml-user] Networking with UML
> 
> 
> I tried that do port forward ssh but it didnt work
> 
> iptables -t nat -A PREROUTING -p tcp -d realhost --dport 2200 -j DNAT 
> --to uml_ip:22
> 
> I can ping the uml from the host and the host from the uml.  
> i can also 
> ssh to the uml from the host.
> 
> Any other ideas why the port forwarding wouldnt work? Thanks
> 
> Kevin
> 
(Continue reading)

davidc | 1 Nov 2003 17:07

RE: [uml-user] Networking with UML

> > iptables -t nat -A PREROUTING -p tcp -d realhost --dport 2200 -j DNAT 
> > --to uml_ip:22
> > 
> > I can ping the uml from the host and the host from the uml.  
> > i can also 
> > ssh to the uml from the host.
> > 
> > Any other ideas why the port forwarding wouldnt work? Thanks

> Sounds like a routing problem.  If your host does a NAT to the UML, the 
> UML must have the host IP as it's default route.  If it sends a response 
> back via any other route the NAT will be broken.
> 
> If you are bridging to a real interface your UML should be able to talk 
> directly on the network as your host does.  

Did you remember to do:

echo 1 > /proc/sys/net/ipv4/ip_forward

As that could explain it.

David

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
(Continue reading)

s-uml | 1 Nov 2003 18:23

Re: [uml-user] Problems with UML Networking

> and I am able to:
> 
> * Ping the host from the UML
> * ping the outside world from the UML
> * ping the UML from the host.
> 
> but I can't ping the UML from the outside world.
> 

Do the pings from outside->uml time out, or do they receive some kind of
error?

I don't think it is a routing problem if you can ping uml->outside but not
outside->uml because the replies are being routed successfully.

Are you sure it isn't a firewall issue? Try 'iptables -t filter -F' on all
involved machines.

Is NAT involved?

Are you sure the ping command isn't sitting around waiting for DNS lookups
and only appearing to timeout? Try 'ping -n wherever'.

I would suggest using the tcpdump command to try and debug this. Do 'tcpdump
-i ethX/tunX -n icmp' on each involved machine while pinging. Try to spot
where the pings are being lost.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
(Continue reading)

pramod babu G | 2 Nov 2003 17:17
Picon

[uml-user] Networking Problem Urgent

hai,
  I have two Uml machines. 
Uml1 has 2 interfaces eth0 , eth1
Uml2 has only eth0 interface
The eth0 interface of Uml1 is tuntap and 
eth1 of Uml1 and eth0 of Uml2 are daemon interfaces.
Now if i ping host from Uml1 it is pinging nicely. But from Uml2 it is 
not. I added a route for host from Uml2 --> Uml1 --> host . But it is not 
going . My set up is as shown below

     Uml1  --- eth0  ------ tap0 -- Host 
          |
	  | 
	   --- eth1  ------ eth0 -- Uml2     
My Uml2 is not able to access Host. How to get out of this

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Jeff Dike | 3 Nov 2003 03:42

Re: [uml-user] Networking Problem Urgent

pramod <at> lantana.tenet.res.in said:
> My Uml2 is not able to access Host. How to get out of this 

Maybe

uml1# echo 1 > /proc/sys/net/ipv4/ip_forward

If that's not the problem, try providing some actual information about it.

				Jeff

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
pramod babu G | 3 Nov 2003 09:09
Picon

[uml-user] Memory

hai , 
 i am having a machine with 192 Megs of RAM. I want to start some 25 User 
mode linux kernels in that. So for that purpose i want to limit the memory 
of User mode linux Kernel. I know this can be done by passing mem= 
argument.
Now if i run Uml as
./linux mem=10m it is starting. But if i give memory less than 10 say
./linux mem=8m it is crashing with a segmentation fault. Why ......

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
pramod babu G | 3 Nov 2003 09:30
Picon

[uml-user] Memory


---------- Forwarded message ----------
Date: Mon, 3 Nov 2003 13:39:47 +0530 (IST)
From: pramod babu G <pramod <at> lantana.iitm.ernet.in>
To: user-mode-linux-user <at> lists.sourceforge.net
Subject: Memory

hai , 
 i am having a machine with 192 Megs of RAM. I want to start some 25 User 
mode linux kernels in that. So for that purpose i want to limit the memory 
of User mode linux Kernel. I know this can be done by passing mem= 
argument.
Now if i run Uml as
./linux mem=10m it is starting. But if i give memory less than 10 say
./linux mem=8m it is crashing with a segmentation fault. Why ......

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Nuno Silva | 3 Nov 2003 09:34

Re: [uml-user] Memory

Hi!

pramod babu G wrote:
> hai , 
>  i am having a machine with 192 Megs of RAM. I want to start some 25 User 
> mode linux kernels in that. So for that purpose i want to limit the memory 
> of User mode linux Kernel. I know this can be done by passing mem= 
> argument.
> Now if i run Uml as
> ./linux mem=10m it is starting. But if i give memory less than 10 say
> ./linux mem=8m it is crashing with a segmentation fault. Why ......
> 
> 

Maybe 8MB isn't really enough. Recompile UML and remove everything that 
you don't need.

Maybe that's a bug, but you provide nothing so we can't figure it out.
(.config, boot log, segfault message, backtrace from gdb, etc would be a 
start).

Regards,
Nuno Silva

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
(Continue reading)

pierre.gentile | 3 Nov 2003 09:29

[uml-user] how to upgrade a backing file with many COW files associated


Hello all,

Imagine I have a backing file with a number of COW files attached, what is
the best method to upgrade the backing file files so each COW can profit
from the updated files ?

Pierre

                    ////
                   (o o)
===============oOO==(_)==OOo=============

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
uml | 3 Nov 2003 20:39

[uml-user] SMP compile error (2.4.22)

Anyone success compile UML with SMP enable with kernel version 2.4.22?

Thank you.

Stenny

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane