sysidcfg nameservice=NIS doesn't work in local zone

Installing a local zone I then do:

zoneadm -z $ZONE_NAME install

cp ${ZONE_NAME}/sysidcfg /${ZONE_DIR}/${ZONE_NAME}/root/etc

touch /${ZONE_DIR}/${ZONE_NAME}/root/etc/.NFS4inst_state.domain

zoneadm -z $ZONE_NAME boot

zlogin -C $ZONE_NAME

It hen count the descripters then bails out to the interactive sysidtool

it work without Nameservice, where does sysidtool log too, install.log?

Here is my sysidcfg:

name_service=NONE

network_interface=PRIMARY {primary

hostname=waszone1

ip_address=10.10.10.10

netmask=255.255.255.0

protocol_ipv6=no

default_route=10.10.10.1

}

root_password=SECRET

timeserver=localhost

timezone=NZ

terminal=vt100

system_locale=en_US

security_policy=none

[811 byte] By [MagnusScreen] at [2007-11-26 7:12:54]
# 1

And this sysidcfg doesn't work

name_service=NIS {domain_name=test.mydomain.co.nz

name_server=NISSERVER(10.10.10.223)}

network_interface=PRIMARY {primary

hostname=waszone1

ip_address=10.10.10.10

netmask=255.255.255.0

protocol_ipv6=no

default_route=10.10.10.1

}

root_password=SECRET

timeserver=localhost

timezone=NZ

terminal=vt100

system_locale=en_US

security_policy=none

MagnusScreen at 2007-7-6 16:08:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

I set sysidcfg nameservice=DNS and then manually add NIS after creation (but before first boot).

Here's the sysidcfg foo in my zone creation script:

==== ====

cat << END >> ${ZONEROOT}/etc/sysidcfg

system_locale=C

install_locale=C

timezone=US/Eastern

terminal=vt100

name_service=DNS {domain_name=sub.example.com name_server=10.0.0.2 search=sub.example.com,example.com}

security_policy=NONE

network_interface=PRIMARY {hostname=${ZONE} netmask=255.255.255.0 protocol_ipv6=no default_route=10.0.0.1}

root_password=AbCdEfGhIjkLmn

END

==== ====

Since the global zone is already configured for NIS, the process becomes easy (if you know the sol10 fu required to enable NIS):

==== more from zonecreate script ====

cp /etc/defaultdomain ${ZONEROOT}/etc/defaultdomain

gtar -C /var/yp/binding -cf - . | gtar -C ${ZONEROOT}/var/yp/binding -xf -

cat << END >> ${ZONEROOT}/etc/rc3.d/S89fixworld

PATH=/usr/bin:/usr/sbin:/sbin:/usr/local/bin ; export PATH

LD_LIBRARY_PATH=/usr/lib:/usr/local/lib ; export LD_LIBRARY_PATH

if [ -x /usr/sbin/svccfg -a -f /var/svc/profile/ns_nis.xml ]; then

/usr/sbin/svccfg apply /var/svc/profile/ns_nis.xml

fi

cp /etc/nsswitch.conf /etc/nsswitch.conf.FCS

sed -e 's/^passwd:.*$/passwd:files nis/' -e 's/^group:.*$/group:files nis/' /etc/nsswitch.conf.FCS > /etc/nsswitch.conf

mkdir -p /var/chroot/ssh

groupadd -g 16 sshd

groupadd -g 32 users

groupadd -g 84 sudo

useradd -s /sbin/sync -d /var/chroot/ssh -m -c "sshd Pseudo-User" -g 16 -u 16 sshd

chmod 700 /var/chroot/ssh

rm -f \${0}

END

==== ====

WRWindsor at 2007-7-6 16:08:21 > top of Java-index,Solaris Operating System,Solaris 10 Features...