Find the answer to your Linux question:
Results 1 to 2 of 2
Hello all, I´m new to the forum so excuse any unknown transgressions and missing information that should been in the post Coming from the Solaris world and being a bit ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    2

    Network configuration problem during autoyast installation

    Hello all,

    I´m new to the forum so excuse any unknown transgressions and missing information that should been in the post
    Coming from the Solaris world and being a bit new to the SLES world, there might be confusion on my part.

    I´m currently setting up a solution at work where I automatically install servers through autoyast and PXE-booting (SLES 11 on HP Proliant machines, DL360/DL380).
    I´ve gotten a ISO-file delivered that usually has been deployed through a DVD+autoinst.xml solution, but now we want to automate the whole flow.
    So I have had to write a script that sets the server to be installed to PXE-boot through the LOM/iLo-console, and also updates a autoyast-template according to parameters supplied by user (IP-addresses etc etc).
    That works fine and the autoyast server sends out the correct ISO and corresponding controlfile (autoinst.xml) to the machine thats going to be installed and away we go...

    The first problem I encountered was that the existing autoinst.xml/installation from DVD didn´t need any network before the installation was finished and that was something that
    the enduser configured through a supplied script.
    So I had to include a chroot script that created the correct network config file for the interface (ex: /etc/sysconfig/network/ifcfg-bnx20) before the first reboot during installation.
    That worked out well as the installation could request the last package from the autoyast server after reboot.

    However somwhere during the installation after that the created file under /etc/sysconfig/network disappears and I´m suspecting the "clean up"-phase as the culprit.
    But since I´m quite new to the OS I´m not sure exactly what happens under the hood and I´m having a hard time finding the right information through the google-machine.

    So my question is, does the installation in fact clean up all the network config files (excpept the ifcfg-lo file) before the first real bootup?
    If so how can I make sure that there is a ifcfg-bnx20 file ready when we reboot the first time after installation (the network settings a static IP-addresses configured manually)?
    If you happen to have tips and pointers on good tutorials/information about autoyast in Linux SLES that would be greatly appreciated, I have mostly been using the Solaris counterpart "jumpstart" before.

  2. #2
    Just Joined!
    Join Date
    Mar 2011
    Posts
    2

    Answer found

    So to answer my own thread, I found some answers to the questions I wanted.

    Yes there is a step in autoyast after the installation that removes the network configurations, it´s actually function called removeNetwork() located in the file: ayast_setup.ycp

    I wanted to post the link to the changelog so you could inspect the code for yourself, but I´m apparently to much of a newbie here at the forum (15 posts before submitting links), so just google for "commit autoyast2 keep_install_network" and you will find the changelog done 2007-08-15-18:21:09

    So when I found this that also told me that I could keep the network settings by setting the parameter keep_install_network to true.

    here is what I did to the <networking>-section in my controller file.
    <networking>
    <keep_install_network config:type="boolean">true</keep_install_network>
    </networking>

    Hopefully this can help someone else another day with a simillar question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...