From: Nithin B R <nit...@gm...> - 2006-02-16 18:58:35
|
hi All, I am trying to bring up networking on my UML. I am using the root filesytem provided here: http://www.coherenthosting.com/prj/uml/henrique/pool_h01/fs_deb3B_2.ex2.bz2 When I boot my vmlinux, it gives out this error message: Configuring network interfaces: ip: Cannot find device "eth0" And we can expect, from within UML too, it shows that the device is not fou= nd. The FAQs do not talk about how I can add the eth0 interface. Looks like this is a very minor problem. Can anyone pls provide me some pointers. thanks in advance, - Nithin |
From: Blaisorblade <bla...@ya...> - 2006-02-17 01:40:15
|
On Thursday 16 February 2006 19:57, Nithin B R wrote: > hi All, > I am trying to bring up networking on my UML. I am using the root > filesytem provided here: > http://www.coherenthosting.com/prj/uml/henrique/pool_h01/fs_deb3B_2.ex2.bz2 > > When I boot my vmlinux, it gives out this error message: > Configuring network interfaces: ip: Cannot find device "eth0" > > And we can expect, from within UML too, it shows that the device is not > found. > > The FAQs do not talk about how I can add the eth0 interface. Looks > like this is a very minor problem. Can anyone pls provide me some > pointers. This is fairly comprehensive for the basics and will surely suffice for your needs: http://user-mode-linux.sourceforge.net/networking.html Btw, which FAQs? If it's on the Wiki it should be corrected to point here. Fixing documentation is also useful. -- 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! Messenger with Voice: chiama da PC a telefono a tariffe esclusive http://it.messenger.yahoo.com |
From: Stefano M. <ste...@op...> - 2006-02-20 10:45:46
|
On Thu, Feb 16, 2006 at 01:57:34PM -0500, Nithin B R wrote: hi All, > I am trying to bring up networking on my UML. I am using the root > filesytem provided here: > http://www.coherenthosting.com/prj/uml/henrique/pool_h01/fs_deb3B_2.ex2.b= z2 >=20 > When I boot my vmlinux, it gives out this error message: > Configuring network interfaces: ip: Cannot find device "eth0" >=20 > And we can expect, from within UML too, it shows that the device is not f= ound. >=20 > The FAQs do not talk about how I can add the eth0 interface. Looks > like this is a very minor problem. Can anyone pls provide me some > pointers. you need to configure the network on both host [1] and uml image [2], for instance: [1]=20 iface tap0 inet static address 10.0.1.99 netmask 255.255.255.0 network 10.0.1.0 broadcast 10.0.1.255 up echo 1 > /proc/sys/net/ipv4/ip_forward up iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE pre-up tunctl -u <your-user> [2] auto eth0 iface eth0 inet static address 10.0.1.100 netmask 255.255.255.0 network 10.0.1.0 up route add -net 0.0.0.0 dev eth0 up route add -net 0.0.0.0 gw <your-gateway-to-internet> Remember that your user must belong to the uml-net group. Try again and feed us back, please Cheers SteX --=20 Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> http://etinarcadiaego.dyndns.org -- http://www.stex.name |
From: Nithin B R <nit...@gm...> - 2006-02-23 06:11:16
|
hi Stefano, I was able to configure a TUN/TAP network with the prebuilt kernel that came with Debian. However, I am facing problem when I try to boot my custom kernel. I complied my image using 2.6.15. The booting freezes at > Configuring network interfaces: I am not able to figure out why. Pls find attached the boot log and my conf= ig. Should I beenabling anything during compilation ? thanks in advance, Nithin On 2/20/06, Stefano Melchior <ste...@op...> wrote: > On Thu, Feb 16, 2006 at 01:57:34PM -0500, Nithin B R wrote: > hi All, > > I am trying to bring up networking on my UML. I am using the root > > filesytem provided here: > > http://www.coherenthosting.com/prj/uml/henrique/pool_h01/fs_deb3B_2.ex2= .bz2 > > > > When I boot my vmlinux, it gives out this error message: > > Configuring network interfaces: ip: Cannot find device "eth0" > > > > And we can expect, from within UML too, it shows that the device is not= found. > > > > The FAQs do not talk about how I can add the eth0 interface. Looks > > like this is a very minor problem. Can anyone pls provide me some > > pointers. > > you need to configure the network on both host [1] and uml image [2], for > instance: > > [1] > iface tap0 inet static > address 10.0.1.99 > netmask 255.255.255.0 > network 10.0.1.0 > broadcast 10.0.1.255 > up echo 1 > /proc/sys/net/ipv4/ip_forward > up iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE > pre-up tunctl -u <your-user> > > [2] > auto eth0 > iface eth0 inet static > address 10.0.1.100 > netmask 255.255.255.0 > network 10.0.1.0 > up route add -net 0.0.0.0 dev eth0 > up route add -net 0.0.0.0 gw <your-gateway-to-internet> > > Remember that your user must belong to the uml-net group. > > Try again and feed us back, please > > Cheers > > SteX > -- > Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> > http://etinarcadiaego.dyndns.org -- http://www.stex.name > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iQCVAwUBQ/mc0olnkxrVLfgpAQJReAP+KJ6+L7ted4NA3BvIx4DjVhXAlemDWLvp > pnXS/xSopZ8QMZ3L/lvCt+uFIsyRn+cXJJnGfExeQx1davA497onESN+7iWiHl9g > 9PYTxEbSSQwVyZQaUzGt0mAPBIcJNFpguVZK6aOh69v4Ev5qOtYYsyrsSXTqqtH/ > VMhingu2HNM=3D > =3D2ttz > -----END PGP SIGNATURE----- > > > -- -- Nithin |
From: Stefano M. <ste...@op...> - 2006-02-23 08:13:30
|
On Thu, Feb 23, 2006 at 01:11:10AM -0500, Nithin B R wrote: Dear Nithin, > I was able to configure a TUN/TAP network with the prebuilt kernel > that came with Debian. However, I am facing problem when I try to boot > my custom kernel. I complied my image using 2.6.15. as discussed with Blaisorblade, 2.6 uml kernels don't work with network, provided by uml-utilities, because they both (uml-utilities and uml kernel) suppose to find uml_net in /usr/bin instead of /usr/lib/uml Debian is rigourous in applying the FHS policy: the temporary solution is to: ln -s /usr/lib/uml/uml_net /usr/bin/uml_net Try it and tell me if it is your solution. Cheers SteX --=20 Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> http://etinarcadiaego.dyndns.org -- http://www.stex.name Skype ID "stefanomelchior" |
From: Nithin B R <nit...@gm...> - 2006-02-23 15:51:41
|
It worked. thanks a lot. regards, Nithin On 2/23/06, Stefano Melchior <ste...@op...> wrote: > On Thu, Feb 23, 2006 at 01:11:10AM -0500, Nithin B R wrote: > Dear Nithin, > > I was able to configure a TUN/TAP network with the prebuilt kernel > > that came with Debian. However, I am facing problem when I try to boot > > my custom kernel. I complied my image using 2.6.15. > > as discussed with Blaisorblade, 2.6 uml kernels don't work with network, > provided by uml-utilities, because they both (uml-utilities and uml kerne= l) > suppose to find uml_net in > > /usr/bin > > instead of > > /usr/lib/uml > > Debian is rigourous in applying the FHS policy: the temporary solution is > to: > > ln -s /usr/lib/uml/uml_net /usr/bin/uml_net > > Try it and tell me if it is your solution. > > Cheers > > SteX > -- > Stefano Melchior, GPG key =3D D52DF829 - <ste...@op...> > http://etinarcadiaego.dyndns.org -- http://www.stex.name > Skype ID "stefanomelchior" > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iQCVAwUBQ/1tmYlnkxrVLfgpAQJ+hwQAlXV3udmU50Q8qPEREYddf5xSUOZ5+mdn > 0+zg0JLRDmbRvZYU7FtqHKamUWngT62NSavsrE4RpvVcixaKl/Ldoxq4v+LKrHYA > F0RjZ4hyoxO2tCHhyglQWjt5LYcKV2rD2CWTvNpeFpNg6f7TVTsIGrPrLf4d9Wzo > tQ79E+5NLQ0=3D > =3D0bw4 > -----END PGP SIGNATURE----- > > > -- -- Nithin |