On Thursday 03 March 2005 13:24, D. Bahi wrote: > nils toedtmann wrote: > >On Wed, Mar 02, 2005 at 06:18:34PM -0800, Matt Simonsen wrote: > >>I am using a bridge for 2 uml clients. It works beautifully with only one > >>client, then after I startup the second the network randomly cuts out for > >>each system. I've noticed I can "kill" one by pinging the other one. > >> > >>For example if UML#1 network dies and I ping it, suddenly UML#2 is > >> unpingable (from an outside machine). Then I ping UML#2 from the host, > >> no pings lost it responds, but UML#1 dies. > > > >Sounds as if they use the same MAC. Did you check that? > > > >/nils. > > Of course! this exact same thing recently happened to me because i had > several > UMLs using the same root_fs -- so the ip in the file system for eth0 was > the same --
I use some scripts inside the root_fs to get the IP to use from the command line, and some scripts on the host to get the IP on the cmd line from the hostname supplied. They are based on some umlbuilder stuff, adapted over time to my purposes. Usage: ./control <vmName> start [ -v ImageName ] Where vmName should be a host registered in /etc/hosts (you can fix ipfromname to use DNS lookup with the "host" utility), and have a corresponding vmName.rootfs. Put the content of UmlTools.tbz2 inside the /etc/umlutil dir inside the Root_fs. Finally, in the root_fs config file, as IP you can specify $(/etc/umlutil/myip). The command will parse /proc/cmdline and return the IP the machine should use. You can symlink multiple root_fs to the same files and use COW (the scripts are not configured to do that, uncomment something to get things going). Please review the scripts since they are not at all polished. There is no guarantee whatsoever, and please don't confuse my work on the kernel with the hacks I do here, the quality is very different. However you may find it useful. If anybody is interested I can provide some explainations on the scripts (don't write "Explain me them" as I've no time). -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
UmlTools.tbz2
Description: BZip2 compressed data
control
Description: application/shellscript