From: Blaisorblade <bla...@ya...> - 2006-05-04 20:17:22
|
On Thursday 04 May 2006 22:03, Nic wrote: > ") > Message-ID: <87o...@ni...> > MIME-Version: 1.0 > Content-Type: text/plain; charset=us-ascii > > Blaisorblade <bla...@ya...> writes: > > You don't need a bridge at all. Somebody uses a bridge to setup dozens of > > UMLs with little work and without installing setuid applications (i.e. > > uml_net in uml-utilities). But that's not needed. > > > > Look at http://user-mode-linux.sourceforge.net/networking.html, and > > choose TUN/TAP with the uml_net helper. You'll also need to assign a MAC > > to the interface,via: > > > > Use eth0=tuntap,,fe:fd:0:0:0:1,$hostip, and choose different MACs (leave > > the form fe:fd:x:x:x:x). > > Ok. Maybe I'm missing something... but when I start this way I am > currently under the impression that I have no way to obtain an > automatic IP address. DHCP away from the host machine certainly does > not work. > Am I wrong? Can I obtain an automatic IP via DHCP or some other means? Let me think... the problem I may think of is that your DHCP server is not listening on tap0. You need to change its configuration and restart it after creating the tap0 interface, i.e. after the UML has booted, and then start dhclient on the UML. Yes, troublesome probably. I don't know if the DHCP server can be made to listen on any interfaces so it will listen also on interfaces started after its boot. Improvements: a) there is dhcp-fwd which forwards DHCP requests from one Ethernet piece to another b) pre-setup a tap0 interface (possibly you'll want to run uml_switch to connect all UMLs to this tap0 device) so that you can run the DHCP server before starting UMLs. c) bridging those two Ethernet interfaces together would work,correct,but can be avoided. d) personally I pass the network params (IP and hostname) to each instance on a cmd line parameter and then inside the UML I parse those params (can be found in /proc/cmdline) and setup networking according to them,instead of using DHCP. > By "loaded" I meant "initialized" and not "heavily resourced". Poor > choice of words sorry. > Bridges make defining hotplug etc harder than just defining them for > stand alone interfaces. Ok, this is much clearer to me, and I understand you. -- 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 Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |