Hi, On Mon, Feb 6, 2012 at 19:22, Saket Chawla <chawlasa...@gmail.com> wrote: > Can someone help me with setting up networking in UML?
There are several different ways of making the UML guest communicate with the host, each with its own strengths and weaknesses. The "old site" has a fairly comprehensive review of networking methods for UML, which explains how they differ: http://user-mode-linux.sourceforge.net/old/networking.html Since you're running Ubuntu, IMHO the easiest way to have the UML guest access the internet as a *client* is by use of the "slirp" program, which requires no root access. 1. Install the `slirp` package on the Ubuntu *host*: sudo apt-get install slirp 2. Run the UML guest with `eth0=slirp,,slirp-fullbolt`, e.g.: ./linux ubda=Debian-Squeeze-x86-root_fs umid=myuml mem=128m eth0=slirp,,slirp-fullbolt (You can also use `mconsole` to configure it in a running UML.) 3. Now configure the network in the Debian UML guest; as root edit the `/etc/network/interfaces` file so that it has the following content: # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.0.2.15 netmask 255.255.0.0 up route add -net 0.0.0.0 dev eth0 up route add -net 0.0.0.0 gw 10.0.2.2 Then you can run the command: ifup eth0 and you should be able to access the net from inside the UML guest. Best regards, Riccardo ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user