Once you have prepared the source system, target system, and shared storage (see Preparing the Source, Target, and Shared Storage), you can create the source system archive.
This procedure creates an archive file on the shared storage. The archive file contains compressed versions of all of the source guest domain's virtual disks and configuration files.
The latest patch is required so that the source system has the latest versions of OVMT utilities (see Prepare the Source System).
root@SourceControlDomain# showrev -p | grep 151934 Patch: 151934-06 Obsoletes: Requires: Incompatibles: Packages: SUNWldmib, SUNWldm
This example is of an Oracle restart environment, so the crsctl command is used.
Note – It is a good practice to perform this step to avoid any application related errors on the target after the deployment. After the deployment, crsctl can be used to restart and enable the high availability components.
$ crsctl stop has $ crsctl disable has
This step is important because the ovmtcreate utility requires the Oracle Solaris 10 domain to be in a bound state.
root@SourceControlDomain# ldm stop solaris10
Use the ovmtcreate command that was obtained from patch 151934 (see Prepare the Source System).
The ovmtcreate command examines the topology of a logical domain to create an archive, which is in the form of an OVF archive (.ova file).
Run this command as superuser on the source control domain.
Not all ovmtcreate options are listed here. For more information about ovmtcreate, refer to the ovmtcreate (1M) man page.
Syntax
/opt/SUNWldm/lib/contrib/ovmtcreate –d GuestDomain -w Working_Directory –o Archive_File_on_Shared_Storage –s “Description”
Where:
-d GuestDomain – The name of your guest domain.
-w Working_Directory – The full path to the working directory that you prepared in Prepare the Source System.
-o Archive_File_on_Shared_Storage – The full path name of the location that you prepared in Prepare a Shared Storage Location for the Archive.
-s Description– A short description of the archive.
Note – For Oracle Solaris 10, the full path to the command is /opt/SUNWldm/lib/contrib/ovmtcreate.
root@SourceControlDomain# ovmtcreate -d solaris10 -w /WorkingDirectory -o /ovas/solaris10.ova -s "source S10 domain" Oracle VM for SPARC Template Creation Utility ovmtcreate Version: on10-patch20171108123131 STAGE 1 - EXAMINING SYSTEM AND ENVIRONMENT ------------------------------------------ Performing platform & prerequisite checks Checking user permissions Checking for required packages Checking for required services Checking directory permissions STAGE 2 - ANALYZING DOMAIN --------------------------- Retrieving and processing attributes Checking domain state Getting domain resource settings Discovering network topology Discovering disk topology STAGE 3 - ARCHIVE CREATION --------------------------- Checking destination and current directory capacity Processing disk images 1 of 6 Processing disk images 2 of 6 Processing disk images 3 of 6 Processing disk images 4 of 6 Processing disk images 5 of 6 Processing disk images 6 of 6 Creating XML configuration Calculating manifest checksums Creating archive file Checking archive PROCESS COMPLETED ------------------ Started: Tue Feb 13 15:34:10 PST 2018 Completed: Tue Feb 13 22:15:06 PST 2018 Elapsed time: 6:40:56
root@SourceControlDomain# Shared_Location# ls -rtlh *.ova -rw-r--r-- 1 root 97G Feb 13 22:15 solaris10.ova
Perform this step if you changed the CPU and memory resources in Prepare the Source System.