Results 1 to 2 of 2

Thread: Autoyast config opensuse 13.1

  1. #1

    Default Autoyast config opensuse 13.1

    Hello all

    Hope someone in here can help me with my issue. I am trying to set up an automated installation of opensuse 13.1 but the network part in the autoyast xml file doesn't seem to work really.
    Here is the code I am using for it:
    Code:
    <networking>
            <net-udev type="list">
    <%  
    config.networkList.each {
    if(it.mac != null && it.mac.length() > 6) {
          
    %>    
                    <rule>
                       <rule>ATTR{address}</rule>
                       <value>${it.mac.replace('-',':')}</value>
                       <name>${it.eth}</name>
                      </rule>
    <%    
    }       
    }   
    %>
             </net-udev>
        <dns>
          <dhcp_hostname config:type="boolean">false</dhcp_hostname>
          <domain>${config.network.domain}</domain>
          <hostname>${config.network.hostname}</hostname>
          <nameservers config:type="list">
    <%          
      config.network.dns.each {
    %> 
              <nameserver>${it}</nameserver>
    <%  
      }     
    %>      
          </nameservers>
          <resolv_conf_policy>auto</resolv_conf_policy>
          <searchlist config:type="list">
            <search>${config.network.domain}</search>
          </searchlist>
          <write_hostname config:type="boolean">false</write_hostname>
        </dns>
        <interfaces config:type="list">
          <interface>
            <aliases>
    <%        
      config.network.ip.eachWithIndex { it, i ->
        if (i == 0) {
          return; // Skip primary IP
        } 
    %>    
              <alias${i}>
                <IPADDR>${it.ip}</IPADDR> 
                <NETMASK>${it.netmask}</NETMASK>
              </alias${i}>
    <%
      }       
    %>      
            </aliases>
            <bootproto>static</bootproto>
            <device>${config.network.eth}</device>
            <ipaddr>${config.network.ip.get(0).ip}</ipaddr>
            <netmask>${config.network.ip.get(0).netmask}</netmask>
            <startmode>auto</startmode>
            <usercontrol>no</usercontrol>
          </interface>
        </interfaces>
        <ipv6 config:type="boolean">false</ipv6>
        <managed config:type="boolean">false</managed>
        <routing>
          <ip_forward config:type="boolean">false</ip_forward>
          <routes config:type="list"> 
            <route>  
              <destination>default</destination>
              <device>-</device>
              <gateway>${config.network.gateway}</gateway>
              <netmask>-</netmask>
            </route>
          </routes>
        </routing>
      </networking>
    It doesn't seem like the udev rule is working since it aint renaming anything but just recreating a new interface called eth0 with no NIC linked to it. This configuration is working on any of the older opensuse system.

  2. #2
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Autoyast config opensuse 13.1

    stokbaek wrote:
    >
    > Hello all
    >
    > Hope someone in here can help me with my issue. I am trying to set up an
    > automated installation of opensuse 13.1 but the network part in the
    > autoyast xml file doesn't seem to work really.
    > Here is the code I am using for it:
    >
    > Code:
    > --------------------
    > <networking>
    > <net-udev type="list">
    > <%
    > config.networkList.each {
    > if(it.mac != null && it.mac.length() > 6) {
    >
    > %>
    > <rule>
    > <rule>ATTR{address}</rule>
    > <value>${it.mac.replace('-',':')}</value>
    > <name>${it.eth}</name>
    > </rule>
    > <%
    > }
    > }
    > %>
    > </net-udev>
    > <dns>
    > <dhcp_hostname config:type="boolean">false</dhcp_hostname>
    > <domain>${config.network.domain}</domain>
    > <hostname>${config.network.hostname}</hostname>
    > <nameservers config:type="list">
    > <%
    > config.network.dns.each {
    > %>
    > <nameserver>${it}</nameserver>
    > <%
    > }
    > %>
    > </nameservers>
    > <resolv_conf_policy>auto</resolv_conf_policy>
    > <searchlist config:type="list">
    > <search>${config.network.domain}</search>
    > </searchlist>
    > <write_hostname config:type="boolean">false</write_hostname>
    > </dns>
    > <interfaces config:type="list">
    > <interface>
    > <aliases>
    > <%
    > config.network.ip.eachWithIndex { it, i ->
    > if (i == 0) {
    > return; // Skip primary IP
    > }
    > %>
    > <alias${i}>
    > <IPADDR>${it.ip}</IPADDR>
    > <NETMASK>${it.netmask}</NETMASK>
    > </alias${i}>
    > <%
    > }
    > %>
    > </aliases>
    > <bootproto>static</bootproto>
    > <device>${config.network.eth}</device>
    > <ipaddr>${config.network.ip.get(0).ip}</ipaddr>
    > <netmask>${config.network.ip.get(0).netmask}</netmask>
    > <startmode>auto</startmode>
    > <usercontrol>no</usercontrol>
    > </interface>
    > </interfaces>
    > <ipv6 config:type="boolean">false</ipv6>
    > <managed config:type="boolean">false</managed>
    > <routing>
    > <ip_forward config:type="boolean">false</ip_forward>
    > <routes config:type="list">
    > <route>
    > <destination>default</destination>
    > <device>-</device>
    > <gateway>${config.network.gateway}</gateway>
    > <netmask>-</netmask>
    > </route>
    > </routes>
    > </routing>
    > </networking>
    > --------------------
    >
    >
    > It doesn't seem like the udev rule is working since it aint renaming
    > anything but just recreating a new interface called eth0 with no NIC
    > linked to it. This configuration is working on any of the older opensuse
    > system.
    >
    >

    openSUSE has moved on to PredictableNetworkInterfaceNames

    http://www.freedesktop.org/wiki/Soft...nterfaceNames/

    --
    GNOME 3.10.1
    openSUSE 13.1 (Bottle) (x86_64) 64-bit
    Kernel Linux 3.11.6-4-desktop

Posting Permissions

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