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
If you plan to use warm migration (see Step 4), a password_file property is required. For warm migration, specify the complete path to the file that contains the target host password that is required for guest domain migration.
# clresource create -g LDom-failover-rg -t SUNW.ldom \ -p password_file=path-to-file-with-target-host-password \ -p Domain_name=LDom-guest-domain-instance LDom-guest-domain-resource
# echo "encrypted" > /var/cluster/.ldg1_passwd
In the following example, the root password for the primary domain, encrypted_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 encrypted_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
Warm migration requires that the migration_type property be set to MIGRATE, which is the default value. For a value of MIGRATE, the password_file is required (see Step 3).
If the migration_type property is instead set to NORMAL, change the property value to MIGRATE:
# clresource set -p Migration_type=MIGRATE LDom-guest-domain-resource
Repeat this step for each guest domain instance, if multiple instances were created.
# clresource status # clresource enable LDom-guest-domain-resource