• Solaris 11 network config

    From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Thu Aug 13 09:53:10 2026
    From Newsgroup: comp.unix.solaris

    Hi guys !

    In general, Solaris 11 is a cool evolution to Solaris 10. But I'm not a
    fan of the configs buried in some weird places instead of plain files.

    After installing a zone (and before booting it for the first time), I
    can modify network settings in the initial profile /etc/svc/profile/incoming/config. Those are applied during zone init and
    the profile is apparently moved to /etc/svc/profile/sysconfig. When I
    edit the latter file later, the changes are ignored on the next reboot.
    Where is the actual config saved and how can I edit it to become active
    with the next boot?

    I liked the /etc/hostname.* (etc.) approach better ;) ...

    Any hints?

    Frank

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Mon Aug 17 14:01:28 2026
    From Newsgroup: comp.unix.solaris


    The AI bot of MOS just confirmed that this is currently not possible. I
    raised a RFE for that issue ;) ...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Sun Aug 23 20:02:02 2026
    From Newsgroup: comp.unix.solaris

    On 13/08/2026 08:53, Frank Winkler wrote:
    Hi guys !

    In general, Solaris 11 is a cool evolution to Solaris 10. But I'm not a
    fan of the configs buried in some weird places instead of plain files.

    After installing a zone (and before booting it for the first time), I
    can modify network settings in the initial profile /etc/svc/profile/ incoming/config. Those are applied during zone init and the profile is apparently moved to /etc/svc/profile/sysconfig. When I edit the latter
    file later, the changes are ignored on the next reboot. Where is the
    actual config saved and how can I edit it to become active with the next boot?

    I liked the /etc/hostname.* (etc.) approach better ;) ...

    Any hints?


    Just use the ipadm commands in the zone, it is (as you can see) all held
    in XML. This was to make it easier for machines/software to deal with, apparently.

    As it may be moved, not a good idea to mess around too much with the XML

    If you are not using anet (ie net) in the config then the IP address can
    be set there.
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Mon Aug 24 10:18:29 2026
    From Newsgroup: comp.unix.solaris

    On 23.08.2026 21:02, YTC1 wrote:

    >Just use the ipadm commands in the zone, it is (as you can see) all held
    >in XML. This was to make it easier for machines/software to deal with,
    >apparently.

    It's just held in the XML until the zone is booted for the first time. Afterwards, the config is buried in some database.
    At the moment, I'm forced to use "ipadm" but this is only possible while
    the zone is running - and that's also the main problem. I'd prefer to do
    the config while the zone is still down.

    >If you are not using anet (ie net) in the config then the IP address can
    >be set there.
    Yep - this does not work with exclusive IP zones, which I have.

    Regards

    Frank

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Mon Aug 24 17:37:49 2026
    From Newsgroup: comp.unix.solaris

    On 24/08/2026 09:18, Frank Winkler wrote:
    On 23.08.2026 21:02, YTC1 wrote:

    Just use the ipadm commands in the zone, it is (as you can see) all held
    in XML. This was to make it easier for machines/software to deal with,
    apparently.

    It's just held in the XML until the zone is booted for the first time. Afterwards, the config is buried in some database.
    At the moment, I'm forced to use "ipadm" but this is only possible while
    the zone is running - and that's also the main problem. I'd prefer to do
    the config while the zone is still down.


    Is this just for a 1st time config, or for each boot?
    As in, why do you want to change it, what is the project end point? Is
    it cloning?

    If you are not using anet (ie net) in the config then the IP address can
    be set there.
    Yep - this does not work with exclusive IP zones, which I have.

    Regards

    -a-a-a-aFrank

    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Tue Aug 25 09:32:58 2026
    From Newsgroup: comp.unix.solaris

    On 24.08.2026 18:37, YTC1 wrote:

    >Is this just for a 1st time config, or for each boot?

    Only for the initial config on the first boot ...
    I tried to place a suitable profile before booting but that is ignored.

    >As in, why do you want to change it, what is the project end point? Is
    >it cloning?
    Relocation of the host to a different DC with different networks. Of
    course, I can adjust the IP address of the XSCF in advance so that I'll
    be able to access the host and the zones but IMO, it's not nice to be
    forced to boot with "foreign" addresses and change them while online.
    Who knows what happens when those addresses suddenly appear? And even if
    I knew that there'll be dupes, I wouldn't be able to avoid trouble.
    I can rename the zone and zpools and everything non-invasively but
    that's impossible with IP addresses.

    Regards

    Frank

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Tue Aug 25 09:40:31 2026
    From Newsgroup: comp.unix.solaris

    On 25/08/2026 08:32, Frank Winkler wrote:
    On 24.08.2026 18:37, YTC1 wrote:

    Is this just for a 1st time config, or for each boot?

    Only for the initial config on the first boot ...
    I tried to place a suitable profile before booting but that is ignored.


    Right, so what you want is to create a
    <yadda>/zones/<zonename>/sc_profile.xml

    (oh, you are taking me back aways here ..... :-))

    https://docs.oracle.com/cd/E36784_01/html/E37628/glihn.html

    Once you have a "base" sc_profile, you can probably edit it by script as
    and when.

    I did all this for the JET (JumpStart Enterprise Toolkit) zones package
    for S11, tore my hair out a bit.


    As in, why do you want to change it, what is the project end point? Is
    it cloning?
    Relocation of the host to a different DC with different networks. Of
    course, I can adjust the IP address of the XSCF in advance so that I'll
    be able to access the host and the zones but IMO, it's not nice to be
    forced to boot with "foreign" addresses and change them while online.

    Add a new sc_profle.xml

    Who knows what happens when those addresses suddenly appear? And even if
    I knew that there'll be dupes, I wouldn't be able to avoid trouble.
    I can rename the zone and zpools and everything non-invasively but
    that's impossible with IP addresses.


    (Again, been a while) but pretty sure if you use zoneadm clone, you can
    add a fresh config
    https://docs.oracle.com/cd/E36784_01/html/E37628/gbwlp.html
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Tue Aug 25 12:11:05 2026
    From Newsgroup: comp.unix.solaris

    On 25.08.2026 10:40, YTC1 wrote:

    >Right, so what you want is to create a <yadda>/zones/<zonename>/
    >sc_profile.xml

    The profile for the initial config was created by "sysconfig" and is in /etc/svc/profile/incoming/config. Placing a modified file there later
    with a subsequent reboot does nothing - as already described.
    I now put the new config to /system/zones/<zone>/sc-profile.xml (so
    parallel to the zone's root) and rebooted. Again, nothing happened ;) ...

    >Once you have a "base" sc_profile, you can probably edit it by script as
    >and when.

    I do :) ...

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Tue Aug 25 12:24:18 2026
    From Newsgroup: comp.unix.solaris


    Maybe this was working with earlier Solaris versions? I'm using 11.4.94
    here and in the meantime, I have taught my script to do all the "ipadm"
    and "route" magic right after booting the zone(s). I don't like it that
    way but currently, there doesn't seem to be an option ...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Tue Aug 25 12:34:23 2026
    From Newsgroup: comp.unix.solaris

    On 25/08/2026 11:24, Frank Winkler wrote:

    Maybe this was working with earlier Solaris versions? I'm using 11.4.94
    here and in the meantime, I have taught my script to do all the "ipadm"
    and "route" magic right after booting the zone(s). I don't like it that
    way but currently, there doesn't seem to be an option ...

    Nope, currently works with S11.4
    The file needs to be in place before the 1st boot, it will then set the config.

    So, between zoneadm install and zoneadm boot, create the file
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Tue Aug 25 12:38:50 2026
    From Newsgroup: comp.unix.solaris

    On 25/08/2026 11:11, Frank Winkler wrote:
    On 25.08.2026 10:40, YTC1 wrote:

    Right, so what you want is to create a <yadda>/zones/<zonename>/
    sc_profile.xml

    The profile for the initial config was created by "sysconfig" and is
    in /etc/svc/profile/incoming/config. Placing a modified file there later with a subsequent reboot does nothing - as already described.
    I now put the new config to /system/zones/<zone>/sc-profile.xml (so
    parallel to the zone's root) and rebooted. Again, nothing happened ;) ..

    It is a 1st boot thing, create it between running zoneadm install and
    zoneadm boot

    When doing a zoneadm clone, it will run the sysconfig unconfigure

    Or, if zone already built and running, then run

    sysconfig unconfigure

    place the sc_profile.xml

    boot


    .

    Once you have a "base" sc_profile, you can probably edit it by script as
    and when.

    I do :) ...

    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Tue Aug 25 13:55:41 2026
    From Newsgroup: comp.unix.solaris

    On 25.08.2026 13:34, YTC1 wrote:

    >The file needs to be in place before the 1st boot, it will then set the
    >config.
    >
    >So, between zoneadm install and zoneadm boot, create the file
    That's the way the zones were built - I'm talking about existing zones
    which have to be modified after running for a period of time.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Tue Aug 25 14:09:07 2026
    From Newsgroup: comp.unix.solaris

    On 25.08.2026 13:38, YTC1 wrote:

    >Or, if zone already built and running, then run
    >
    >sysconfig unconfigure
    >place the sc_profile.xml
    >boot
    Hmm ... indeed, I was wondering what would have to be done that the
    initial config is done again. And I was also thinking about a
    "sysunconfig" but I'm not 100% sure if this doesn't remove more than the profile will repair later.

    But does the XML file has to be in /system/zones/<zone> or in .../root/etc/svc/profile/incoming/config?

    Maybe I'll try all that with my test zone ...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Tue Aug 25 17:29:56 2026
    From Newsgroup: comp.unix.solaris

    On 25/08/2026 13:09, Frank Winkler wrote:
    On 25.08.2026 13:38, YTC1 wrote:

    Or, if zone already built and running, then run

    sysconfig unconfigure
    place the sc_profile.xml
    boot
    Hmm ... indeed, I was wondering what would have to be done that the
    initial config is done again. And I was also thinking about a
    "sysunconfig" but I'm not 100% sure if this doesn't remove more than the profile will repair later.

    Do a man sysconfig. The unconfig function does the same as the S10 sysunconfig, you know what the setting you need are, just re-apply them

    But does the XML file has to be in /system/zones/<zone> or in .../root/ etc/svc/profile/incoming/config?
    /system/zones/<znone>

    If that is the base dir you use


    Maybe I'll try all that with my test zone ...
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Tue Aug 25 17:31:09 2026
    From Newsgroup: comp.unix.solaris

    On 25/08/2026 12:55, Frank Winkler wrote:
    On 25.08.2026 13:34, YTC1 wrote:

    The file needs to be in place before the 1st boot, it will then set the
    config.

    So, between zoneadm install and zoneadm boot, create the file
    That's the way the zones were built - I'm talking about existing zones
    which have to be modified after running for a period of time.

    sysconfig unconfigure
    create new sc_profile (or edit the one you saved post creation) in <yadda>/zones/<zone>
    boot zone
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Wed Aug 26 11:54:39 2026
    From Newsgroup: comp.unix.solaris

    On 25.08.2026 18:31, YTC1 wrote:

    >sysconfig unconfigure
    >create new sc_profile (or edit the one you saved post creation) in
    ><yadda>/zones/<zone>
    >boot zone
    Would that also work for the global zone?

    So far, I always ended up in a zone with absolutely no network config.
    Not even loopback. Maybe the new config hasn't been applied at all.

    Do you know what would to be done to fake a "sysconfig unconfigure" so
    that the profile is used without resetting the entire config? Is there
    any file to be touched/removed or is this also hidden somewhere deep inside?

    Regards

    Frank

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Wed Aug 26 12:51:18 2026
    From Newsgroup: comp.unix.solaris

    On 26/08/2026 10:54, Frank Winkler wrote:
    On 25.08.2026 18:31, YTC1 wrote:

    sysconfig unconfigure
    create new sc_profile (or edit the one you saved post creation) in
    <yadda>/zones/<zone>
    boot zone
    Would that also work for the global zone?

    yes, it is exactly the same principle as S10, when JumpStarting a
    sysidcfg can be put in place. Just some files and locations differ
    slightly with S11 (it was a bigger rewrite than S10).


    So far, I always ended up in a zone with absolutely no network config.
    Not even loopback. Maybe the new config hasn't been applied at all.

    If no config, then something in your approach is wrong. Check out the
    zone install logs and see what it thinks it is seeing or not seeing.

    You did run zoneadm install with -c <path to sc_profile> ???
    (sorry, I may have assumed you were doing this.)


    Do you know what would to be done to fake a "sysconfig unconfigure" so
    that the profile is used without resetting the entire config? Is there
    any file to be touched/removed or is this also hidden somewhere deep
    inside?

    Pretty sure it only applies what it is asked to apply.
    If you look at the sysconfig manpage then you can see it will apply "groupings".

    So, sysconfig unconfigure -g network

    Then add a sc_profile with the correct networking


    Regards

    -a-a-a-aFrank

    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Frank Winkler@usenet@f.winkler-ka.de to comp.unix.solaris on Wed Aug 26 17:09:56 2026
    From Newsgroup: comp.unix.solaris


    "-g network" is mandatory as otherwise, I would also lose users and so
    forth. After I started using it with attempt #3 or so, the zone at least
    had a loopback interface ;) ...

    I don't know what but apparently, I'm still doing something wrong. No
    matter to which of the dirs I put the exact same profile which had been
    used for installation (just with a different IP address) or the same
    file named "sc-profile.xml", the main interface is missing. I'll check
    the logs but the good news is that the renaming and the "ipadm" stuff
    now works for GZ and NGZ.

    Regards

    Frank

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From YTC1@ytc1@ytc1.co.uk to comp.unix.solaris on Wed Aug 26 18:13:52 2026
    From Newsgroup: comp.unix.solaris

    On 26/08/2026 16:09, Frank Winkler wrote:

    "-g network" is mandatory as otherwise, I would also lose users and so forth. After I started using it with attempt #3 or so, the zone at least
    had a loopback interface ;) ...

    I don't know what but apparently, I'm still doing something wrong. No
    matter to which of the dirs I put the exact same profile which had been
    used for installation (just with a different IP address) or the same
    file named "sc-profile.xml", the main interface is missing. I'll check

    You did use -c with the fille path to the file for zoneadm install ???

    I'm happy to see the CLI output

    the logs but the good news is that the renaming and the "ipadm" stuff
    now works for GZ and NGZ.


    Never doubted it world.

    The other way you could do it is create your own SMF that is set to run
    once only, enabled by default, calls a script to do all your gubbins and
    then disable the calling SMF and remove it.

    Or use JET with the S11 extensions and make your life easier :-)
    A history of JET https://www.maui.co.uk/projects/jet/

    And a FAQ https://jet.maui.co.uk/wiki/index.php/Main_Page

    If you are happy with Solaris JumpStart, then switching to JET makes
    life easier. It is all template driven, notes in the templates.

    And if you email me I may have a copy of JET (as Oracle have buried it
    now), it was actually the engine behind OpsCenter S10 installs as well.

    https://docs.oracle.com/cd/E59957_01/doc.123/e59971/GUID-F4CDD44A-CA38-48B4-A57D-C102B19B402F.htm#OCOPS5325

    https://www.oracle.com/solaris/technologies/userguide-installingjet.html
    --
    Bruce Porter
    "The internet is a huge and diverse community but mainly friendly" http://ytc1.blogspot.co.uk/
    There *is* an alternative! http://www.openoffice.org/
    --- Synchronet 3.22a-Linux NewsLink 1.2