From: Dan L. <ar...@co...> - 2004-10-25 22:30:53
|
Or you could create the initial system with dhcp addressing, and set static addressing off of the mac. That's what I do in some cases, even with real machines. It just makes it easier. Ferdinand O. Tempel wrote: >On Fri, 2004-10-22 at 12:41 -0700, Jimmy Pan wrote: > > >>Hi, currently I create UMLs manully....and let them share the root file >>system using COW files. >>But when i create a UML (say, uml_6) the first time, its ip >>address/router configuration will be >>same as uml_1 (maybe there's a "default setting" in cow file or root >>filesystem so that they share >>the information???), so i have to goto the UML login window then setup >>the ipaddress and the >>network interfaces, hostnames manully by myself.....which means, if i >>want to create more UMLs >>from my host computer by a bash shell script, this is impossible since >>you can't do it automatically >>inside a script by ssh to the newly created UML(uml_6) bcoz its ip >>address/gateway hasn't been setup...... >> >> > >I solved this very same problem by creating a small filesystem on which >I keep each UML host's configuration in the form of a patch file. > >To boot the UMLs I use a shell script which calls the UML kernel with >the proper parameters, under which the hostname of the UML to boot. >On boot of the root_fs, init will kick off a "setup" script which: >1) patches the (COW) filesystem to make it unique (network >configuration, hostname, etc) >2) replaces inittab with the runtime version (well, /etc/inittab is a >symlink, actually) >3) reboots > >This is in short the mechanism I use to spawn 4 networked UMLs from a >single root_fs. > >I can provide you with a working example (root_fs, scripts, etc) on >request. > > > |