Before You Begin
Install the data service packages during your initial Oracle Solaris Cluster installation.
If you did not install the HA for Oracle VM Server packages as part of your initial Oracle Solaris Cluster installation, go to Installing the HA for Oracle VM Server Package.
# clresourcetype register SUNW.ldom
For more details, see Configuring SSL Certificates for Migration.
Type the following command on any one node in the cluster:
# /usr/cluster/bin/clpstring create -b rsname \ -t rgname_rsname_ldompasswd Enter string value: Enter string value again:
where rgname and rsname are the resource group and resource name for the SUNW.ldom resource that is created.
Type the following command on each of the Oracle Solaris Cluster nodes that would host the logical domain resource:
# echo password > /var/cluster/.ldg1_passwd # /usr/bin/chown root:root /var/cluster/.ldg1_passwd # /usr/bin/chmod 400 /var/cluster/.ldg1_passwwd
where /var/cluster/.ldg1_passwd is the password file for guest domain ldg1. password is the target node root password used for live migration.
# clresource create -g ldg1-rg \ -t SUNW.ldom \ -p Domain_name=ldg1 \ -p Miration_type=NORMAL \ -p Resource_dependencies_offline_restart=ldg1-hasp-rs \ ldg1
For resource type version 5 or earlier, type the following command:
# clresource create -g ldg1-rg \ -t SUNW.ldom \ -p Domain_name=ldg1 \ -p Miration_type=MIGRATE \ -p Password_file=/var/cluster/.ldg1_passwd \ -p Resource_dependencies_offline_restart=ldg1-hasp-rs \ ldg1
For resource type version 6 or later, type the following command:
# clresource create -g ldg1-rg \ -t SUNW.ldom \ -p Domain_name=ldg1 \ -p Miration_type=MIGRATE \ -p Resource_dependencies_offline_restart=ldg1-hasp-rs \ ldg1
# echo "encrypted" > /var/cluster/.ldg1_passwd
In the following example, the root password for the primary domain, password, is being encrypted and ldg1 reflects the logical domain name.
node1# dd if=/dev/urandom of=/var/cluster/ldom_key bs=16 count=1 node1# chmod 400 /var/cluster/ldom_key node1# echo password | /usr/sfw/bin/openssl enc -aes128 -e \ -pass file:/var/cluster/ldom_key -out /opt/SUNWscxvm/.ldg1_passwd node1# chmod 400 /opt/SUNWscxvm/.ldg1_passwd
node1# /usr/sfw/bin/openssl enc -aes128 -d -pass file:/var/cluster/ldom_key \ -in /opt/SUNWscxvm/.ldg1_passwd
# clresource set -p Password_file=/var/cluster/.ldg1_passwd LDom-guest-domain-resource
Repeat this step for each logical domain instance, if multiple instances were created.
# clresource status # clresource enable logical-guest-domain-resource