To have the server automatically configured after the installation, you need to provide a configuration profile. For more information about creating a configuration profile, see Creating System Configuration Profiles at:
http://docs.oracle.com/cd/E26502_01/html/E28980/syscfg-2.html#syscfg-3
To create a configuration profile, run the interactive
configuration tool and save the output to a file. The following
command creates a valid profile in
profile_ovm.xml
from responses you enter
interactively:
# sysconfig create-profile -o profile_ovm.xml
In the interactive configuration tool, you must select the option to configure the network manually or it will not be possible to automatically configure Oracle VM Agent for SPARC using the installation service.
To have the Oracle VM Agent for SPARC configured automatically during the
installation, add the following section inside the
<service_bundle> section
of the generated profile_ovm.xml
file:
<service version="1" type="service" name="ovm/ovs-config">
<instance enabled="true" name="default">
<property_group type="application" name="config">
<propval type="astring" name="password" value="encrypted-password
"/>
<propval type="boolean" name="autoconfig" value="true"/>
</property_group>
</instance>
</service>
Replace the encrypted-password
value
with the encrypted version of the password that you want to use
for the Oracle VM Agent.
You can generate the encrypted version of the password on any system using the following command:
# python -c "import crypt, sys; print crypt.crypt(sys.argv[-1], \
'\$6\$%s\$' % sys.argv[-2])" $(pwgen -s 16 1) password
Substitute password
with the password
that you want to use for the Oracle VM Agent, for example:
# python -c "import crypt, sys; print crypt.crypt(sys.argv[-1], \ '\$6\$%s\$' % sys.argv[-2])" $(pwgen -s 16 1) s3cr3tp4ssw0rd $6$-c$pgcCqd6Urrepi9EzdK93x5XSpyiNzup7SAcDNjVOtsqm6HFNeg385wMu1GjE.J.S.FL8J7gtl5VZnq7tOAd/N0
The output from this command is the
encrypted-password
value that you
should substitute in the section that you added to the
configuration profile.
Finally, add the configuration profile to the installation service. In addition, you can specify criteria associated with this profile. This profile is only applicable to SPARC sun4v system, so you should at least use the sun4v criteria:
# installadm create-profile -n solaris11_1_13_1_0-sparc --file profile_ovm.xml -c arch=sun4v # installadm list -p Service/Profile Name Criteria -------------------- -------- solaris11_1_13_1_0-sparc profile_ovm.xml arch = sun4v