Menu

Personalize Clone

Help
2009-05-06
2013-04-05
  • Salingue  Thibault

    Hi

    First i would like to appologize my poor english and to thank for the soft ...

    I am currently using DRBL Server with CloneZilla and I make some different clone (ubuntu or debian).
    I am wondering if there is a way to personalize the clone (host, ip address),when I multicast an image.

    I think an example will be easier to understang

    Clone Image : Hostname UbuntuClone IP : 192.168.1.1

    when I clone it on two different computer I want this result

    Computer1 : Hostname FirstComputer IP : 192.168.1.2
    Computer1 : Hostname SecondComputer IP : 192.168.1.3

    Is there a way to do it ?
    By the way thanks for your help !

     
    • Steven Shiau

      Steven Shiau - 2009-05-07

      If you mean to assing a static IP address for the restored machine, yes, it's possible. You can edit the a customized script (say "mynet") in /opt/drbl/share/ocs/postrun/  to do so.
      Remember:
      1. Check option "-o1" in the advanced parametrs when you run /opt/drbl/sbin/dcs to start Clonezilla
      2. In your customized script "mynet", you have to mount the restored partition and create the etc/network/interfaces inside that partition on that machine.

      Steven.

       
    • Salingue  Thibault

      That is the way I planed to do but since there is no example of a post run script or pre run script, it is more difficult to create one, I have check the Internet and I do not find one ... too bad
      I'll try some script on differents machines to see how it works
      Thanks for your help I'll notice you later on my progress...

       
    • Salingue  Thibault

      I have got some questions again.
      I wonder if the script is  duplicated in the image machine when the clonage is launched ?
      Let me explain if I need to modify the script because I want to add some new machines with new hostname and new IP , I must edit the previous script but will it execute the modification's script or will it execute the previous script ???

      for example if I created a script named "mynet" (to modify IP address and host name) and make an image machine with that script. And I replace my script "mynet" with "mynet2" which contains new IP and hostname.
      Will clonezilla execute "mynet" or "mynet2" ??? (By the way I rename "mynet2" as "mynet" in the /ocs/postrun directiory )

       
      • Steven Shiau

        Steven Shiau - 2009-05-20

        You can run:
        run-parts --test /opt/drbl/share/ocs/postrun/
        to see which one will be run, and the order it will be run.

        Steven.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.