The sc_sample.xml was copied from the image_path for 165:
root@ai 159# installadm list -n ai-165-sparcService Name Status Arch
Port Image Path
------------ ------ ---- ---- ----------
ai-165-sparc on Sparc 5555 /export/aiserver/ai-165-sparc
root@ai 160# diff -u sca-huron-5.xml
/export/aiserver/ai-165-sparc/auto_install/sc_profiles/sc_sample.xml
--- sca-huron-5.xml Thu May 19 11:40:18 2011
+++ /export/aiserver/ai-165-sparc/auto_install/sc_profiles/sc_sample.xml
Tue May 10 22:39:51 2011
@@ -59,7 +59,7 @@
<service version="1" name="system/identity">
<instance enabled="true" name="node">
<property_group name="config">
- <propval name="nodename" value="sca-huron-5"/>
+ <propval name="nodename" value="solaris"/>
</property_group>
</instance>
</service>
@@ -66,7 +66,7 @@
<service name="system/console-login" version="1">
<property_group name="ttymon">
- <propval name="terminal_type" value="xterms"/>
+ <propval name="terminal_type" value="sun"/>
</property_group>
</service>
root@ai 161#
On 05/19/11 11:29, William Schumann wrote:
Randall, It appears that the sc_sample.xml you have is out of sync with the installadm profile validator in 164. The 165 sc_sample.xml has had the 'type' attributes stripped, because they are no longer required by SMF, but the 164 profile validator still requires them. The types should not be necessary in 165. You can find 164 examples with the correct type attributes in the 164 AI images: <164 image>/auto_install/sc_profiles/sc_sample.xml Also, the code review of the bug fix 7037229 contains the older version that has the types in them that are expected. http://cr.opensolaris.org/~wmsch/bug-7037229/ http://cr.opensolaris.org/~wmsch/bug-7037229/usr/src/cmd/auto-install/sc_sample.xml-.html Plus, Paul de Nijs' assessment is correct - service system/config instance name should be 'default' (the validator would not catch that.) Where did you find the sc_sample.xml? William On 05/19/11 05:54 PM, Randall Chuck wrote:Hi. My AI server is running snv_164. When I use attempt to create a profile based on the file $image_path/auto_install/sc_profiles /sc_sample.xml I get: root@ai 118# installadm create-profile -n ai-165-sparc -f ./sca-huron-5.xml -p sca-huron-5 -c MAC=0:14:4f:46:42:4 <?xml version='1.0'?> <!-- 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) 2011, Oracle and/or its affiliates. All rights reserved. --> <!-- Sample system configuration profile for use with Automated Installer Configures the following: * User account name 'jack', password 'jack', GID 10, UID 101, root role, bash shell * 'root' role with password 'solaris' * Keyboard mappings set to US-English * Network configuration is automated with Network Auto-magic * DNS name service client is enabled See installadm(1M) for usage of 'create-profile' subcommand. --> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <service_bundle type="profile" name="system configuration"> <service name="system/config" version="1"> <instance name="sca-huron-5" enabled="true"> <property_group name="user_account"> <propval name="login" value="jack"/> <propval name="password" value="9Nd/cwBcNWFZg"/> <propval name="description" value="default_user"/> <propval name="shell" value="/usr/bin/bash"/> <propval name="gid" value='10'/> <propval name="type" value="normal"/> <propval name="roles" value="root"/> <propval name="profiles" value="System Administrator"/> </property_group> <property_group name="root_account"> <propval name="password" value="$5$dnRfcZse$Hx4aBQ161Uvn9ZxJFKMdRiy8tCf4gMT2s2rtkFba2y4"/> <propval name="type" value="role"/> </property_group> </instance> </service> <service version="1" name="system/identity"> <instance enabled="true" name="node"> <property_group name="config"> <propval name="nodename" value="sca-huron-5"/> </property_group> </instance> </service> <service name="system/console-login" version="1"> <property_group name="ttymon"> <propval name="terminal_type" value="xterms"/> </property_group> </service> <service name='system/keymap' version='1'> <instance name='default' enabled='true'> <property_group name='keymap'> <propval name='layout' value='US-English'/> </property_group> </instance> </service> <service name="network/physical" version="1"> <instance name="nwam" enabled="true"/> <instance name="default" enabled="false"/> </service> <service name='network/dns/client' version='1'> <instance name='default' enabled='true'/> </service> </service_bundle> XML syntax error in profile sca-huron-5: Failed validation against DTD. See service_bundle(4). root@ai 119# Can someone point me in the correct direction?_______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
-- Oracle <http://www.oracle.com> Randall Chuck | Principal System Administrator Phone: +1 408 276-7585 Oracle Hardware Compute Resources | Lab Technologies 4160 Network Circle | Santa Clara, CA 95054 USA Hardware and Software, Engineered to Work Together <http://www.oracle.com/us/corporate/mission-statement/index.html>
<<attachment: Randall_Chuck.vcf>>
_______________________________________________ caiman-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

