This procedure creates an archive file on the shared storage. The archive file contains compressed versions of the source guest domain's virtual disks that you specify 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
Run the following command line script to generate a list of all the virtual disk names associated with the source guest domain (solaris10 in our example). The list is redirected to a file called /ovas/vdisks.txt on shared storage.
root@SourceControlDomain# ldm list -p -o disk solaris10 | nawk -F '|' \ '{ if($1=="VDISK") { split($2,VDISK,"=") ; print VDISK[2] } }' > /ovas/vdisks.txt
Example of the edited file:
root@SourceControlDomain# cat /ovas/vdisks.txt solaris10_root1 solaris10_root2
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).
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 -I vdisk_filename -w Working_Directory –o Archive_File_on_Shared_Storage –s “Description”
Where:
-d GuestDomain – The name of your guest domain.
-I vdisk_filename – When specified, enables you to specify a file path name that contains a list of virtual disks to include in the archive. If not specified, all virtual disks associated with the domain are included in the archive.
-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 -I /ovas/vdisks.txt -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 working directory capacity Processing disk images 1 of 2 Processing disk images 2 of 2 Creating XML configuration Calculating manifest checksums Creating archive file Checking archive PROCESS COMPLETED ------------------ Started: Wed Apr 11 16:53:50 PDT 2018 Completed: Wed Apr 11 19:49:13 PDT 2018 Elapsed time: 2:55:23
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.