Hi,

I have an AI server running build 157. I have an install service for build 158. On the grub menu I chose to specify custom manifest nv-2.xml (attached with this mail) which uses the SC file name sc_ai1.xml. The install completes, but svc:/system/install/config:default is always in maintenance mode.

root@solaris:~# svcs -xv
svc:/system/install/config:default (system configuration)
State: maintenance since Thu Feb 24 02:39:48 2011
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-install-config:default.log
Impact: This service is not running.

root@solaris:~# cat /var/svc/log/system-install-config\:default.log
[ Feb 24 02:39:39 Enabled. ]
[ Feb 24 02:39:46 Executing start method ("/lib/svc/method/svc-system-config"). 
]
Configuring root account.
Setting root password.
Configuring root account as type <normal>.
Removing property group <root_account>.
root account successfully configured.
Configuring user account.
Creating user home directory on <rpool/export/home/jack> ZFS dataset.
Home mountpoint: /export/home/jack
Calling useradd(1M) to create user account.
cmd: useradd  -u 101 -g 10 -s /usr/bin/bash -R root -d /export/home/jack jack
UX: useradd: ERROR: root is not a valid role name.  Choose another.
useradd(1M) failed to create user account, 
ret=/lib/svc/method/svc-system-config[598]: printf: aborting.: no parent
[ Feb 24 02:39:48 Method "start" exited with status 95. ]
[ Feb 24 02:40:06 Rereading configuration. ]


Is something wrong with my SC file?

Thanks
Anna

<?xml version="1.0" encoding="UTF-8"?>
<!--
 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License (the "License").
 You may not use this file except in compliance with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

 Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.

-->
<!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
<auto_install>
  <ai_instance name="default" auto_reboot="true">
	<target>
		<target_device>
			<disk>
			<disk_keyword key="boot_disk"/>
			<partition action="create" part_type="SOLARIS">
			<size val="0GB"/>
			</partition>
			</disk>
		</target_device>
		<target_device>
			<swap>
			<zvol action="create" name="swap">
			<size val="5140"/>
			</zvol>
			</swap>
		</target_device>
	</target>

    <software>
      <source>
        <publisher name="solaris">
          <origin name="http://ipkg.sfbay.sun.com/dev/solaris"/>
        </publisher>
      </source>
      <!--
	By default the latest build available, in the specified IPS
	repository, is installed.  If another build is required, the 
	build number has to be appended to the 'entire' package in following
	form:

	<name>pkg:/[email protected]#</name>
      -->
      <software_data action="install" type="IPS">
        <name>pkg:/[email protected]</name>
        <name>pkg:/babel_install</name>
      </software_data>
      <!--
	    babel_install and slim_install are group packages used to
	    define the default installation.  They are removed here so
	    that they do not inhibit removal of other packages on the
	    installed system.
        -->
      <software_data action="uninstall" type="IPS">
        <name>pkg:/babel_install</name>
        <name>pkg:/slim_install</name>
      </software_data>
    </software>
   <!--
	Add missing driver packages to a booted install image so an
	installation can complete.  Add packages to target as well.
	<search_all> searches and installs from configured repo.
    -->
    <add_drivers>
      <search_all/>
    </add_drivers>
<!--
    <sc_embedded_manifest name="AI">
       <?xml version='1.0'?>
      <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
      <service_bundle type="profile" name="system configuration">
        <service name="system/install/config" version="1" type="service">
          <instance name="default" enabled="true">
            <property_group name="user_account" type="application">
              <propval name="login" type="astring" value="jack"/>
              <propval name="password" type="astring" value="9Nd/cwBcNWFZg"/>
              <propval name="description" type="astring" value="default_user"/>
              <propval name="shell" type="astring" value="/usr/bin/bash"/>
              <propval name="uid" type='count' value='101'/>
              <propval name="gid" type='count' value='10'/>
              <propval name="type" type="astring" value="normal"/>
              <propval name="roles" type="astring" value="root"/>
            </property_group>
        
            <property_group name="root_account" type="application">
                <propval name="password" type="astring" value="$5$dnRfcZse$Hx4aBQ161Uvn9ZxJFKMdRiy8tCf4gMT2s2rtkFba2y4"/>
                <propval name="type" type="astring" value="normal"/>
            </property_group>

            <property_group name="other_sc_params" type="application">
              <propval name="timezone" type="astring" value="US/Pacific"/>
              <propval name="hostname" type="astring" value="solaris"/>
            </property_group>
          </instance>
        </service>
        <service name="system/console-login" version="1" type="service">
          <property_group name="ttymon" type="application">
            <propval name="terminal_type" type="astring" value="sun"/>
          </property_group>
        </service>

        <service name='system/keymap' version='1' type='service'>
          <instance name='default' enabled='true'>
            <property_group name='keymap' type='system'>
              <propval name='layout' type='astring' value='US-English'/>
            </property_group>
          </instance>
        </service>

        <service name="network/physical" version="1" type="service">
          <instance name="nwam" enabled="true"/>
          <instance name="default" enabled="false"/>
        </service>
      </service_bundle>
      
    </sc_embedded_manifest>
-->
<sc_manifest_file name="SC_AI" URI="http://10.60.41.98/shared/ap231046/mensa/sc_ai1.xml"/> 
  </ai_instance>
</auto_install>
<?xml version='1.0'?>
        <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
        <service_bundle type="profile" name="system configuration">
            <service name="system/install/config" version="1" type="service">
                <instance name="default" enabled="true">
                    <property_group name="user_account" type="application">
                        <propval name="login" type="astring" value="jack"/>
                        <propval name="password" type="astring" value="9Nd/cwBcNWFZg"/>
                        <propval name="description" type="astring" value="default_user"/>
                        <propval name="shell" type="astring" value="/usr/bin/bash"/>
                        <propval name="uid" type='count' value='101'/>
                        <propval name="gid" type='count' value='10'/>
                        <propval name="type" type="astring" value="normal"/>
                        <propval name="roles" type="astring" value="root"/>
                    </property_group>

                    <property_group name="root_account" type="application">
                        <propval name="password" type="astring" value="$5$dnRfcZse$Hx4aBQ161Uvn9ZxJFKMdRiy8tCf4gMT2s2rtkFba2y4"/>
                        <!--<propval name="password" type="astring" value="$5$VgppCOxA$ycFmYW4ObRRHhtsGEygDdexk5bugqgSiaSR9niNCouC"/>
                         --> 
			    <propval name="type" type="astring" value="normal"/>
                    </property_group>

                    <property_group name="other_sc_params" type="application">
                        <propval name="timezone" type="astring" value="US/Pacific"/>
                   <!--     <propval name="hostname" type="astring" value="solaris"/> -->
                    </property_group>
                </instance>
            </service>

            <service name="system/console-login" version="1" type="service">
                <property_group name="ttymon" type="application">
                    <propval name="terminal_type" type="astring" value="sun"/>
                </property_group>
            </service>

            <service name='system/keymap' version='1' type='service'>
                <instance name='default' enabled='true'>
                    <property_group name='keymap' type='system'>
                        <propval name='layout' type='astring' value='US-English'/>
                    </property_group>
                </instance>
            </service>

            <service name="network/physical" version="1" type="service">
                <instance name="nwam" enabled="true"/>
                <instance name="default" enabled="false"/>
            </service>
<!--
            <service name='network/install' version='1' type='service'>
                <instance name='default' enabled='true'>
                 <property_group name='install_ipv4_interface' type='application'>
                      <propval name='address_type' type='astring' value='dhcp'/>
                 </property_group>
                </instance>
            </service>

        <service name='network/dns/install' version='1' type='service'>
                <instance name='default' enabled='true'>
                <property_group name='install_props' type='application'>
                <property name='nameserver' type='net_address'>
                     <net_address_list>
                           <value_node value='129.145.155.170'/>
                     </net_address_list>
                </property>

                <property name='domain' type='astring'>
			<astring_list>
                        <value_node value='sfbay.sun.com'/>
                        </astring_list>
               </property>

                <property name='search' type='astring'>
                     <astring_list>
                            <value_node value='mf-sfbay-01.sfbay.sun.com'/>
                            <value_node value='mf-sfbay-05.sfbay.sun.com'/>
                            <value_node value='mf-sfbay-06.sfbay.sun.com'/>
                     </astring_list>
                </property>

                </property_group>
                </instance>
                </service>
-->  
    </service_bundle>

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to