From: Jimmy P. <jp...@1s...> - 2004-10-22 19:41:46
|
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...... anyone knows how to solve this problem?? thanks a lot! Jimmy |
From: Jimmy P. <jp...@1s...> - 2004-10-22 19:46:26
|
also, is there anyways to edit COW files or the root filesystem?? Jimmy 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...... > > anyone knows how to solve this problem?? > thanks a lot! > > Jimmy > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > |
From: Ferdinand O. T. <ft...@li...> - 2004-10-25 18:27:36
|
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. -- Regards, Ferdinand O. Tempel Your friendly neighborhood linuxops.net administrator. |
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. > > > |