After Installed Package, You Need Setting Other Information From OVM Script In /opt/ovm-bkp/bin
cd /opt/ovm-bkp/bin/
ls
common.sh ovm-delete.sh ovm-preserve.sh ovm-setup-ovmm.sh
ovm-backup.sh ovm-listbackup.sh ovm-restore.sh ovm-setup-vm.sh
Then Run ovm-setup-ovmm.sh Script
./ovm-setup-ovmm.sh
And Enter Some Information
Enter Oracle VM Manager administrator User: boss-user
Enter Oracle VM Manager administrator Password:
Enter Oracle VM Manager administrator Password (again):
After Successful, It Will Return Some Information About OVMM
New configuration file /opt/ovm-bkp/conf/ovmm/jump-instance.conf created:
# Oracle VM Manager Command Line Interface User
ovmmuser=<Administrator Name>
# Oracle VM Manager Command Line Interface Password - Encrypted
ovmmpassenc=<Encrypted OVMM admin Password>
# Oracle VM Manager Host
ovmmhost=<OVMM Host Name>
# Oracle VM Manager CLI Port
ovmmport=<OVMM CLI Port>
# Oracle VM Manager UUID
ovmmuuid=<OVMM UUID>
Usage
Backup
VM Setting
Run Script ovm-setup-vm.sh With Variable
# Use ovm-setup-vm.sh <vm-name> <retention> <target_repository> {disk-slot-to-exclude}
./ovm-setup-vm.sh test-vm2 1d repo 1
New configuration file for VM test-vm2 has been created at /opt/ovm-bkp/conf/vm/test-vm2-0123213213213213213.conf:
# Oracle VM Pool
ovmpool=CFServerPool
# VM Details
vmname=test-vm
vmuuid=123123123213213123
vdiskstoexclude=1
# Retention to Apply
retention=1d
# Target Repository
targetrepo=repo
Run ovm-backup.sh Script To VM Backup
./ovm-backup.sh test-vm OVA N
=================
Oracle VM 3.4 CLI
=================
=====================================================
Adding VM test-vm information to bkpinfo file /opt/ovm-bkp/bkpinfo/info-backup-test-vm2-OVA-20210623-0640.txt
=====================================================
================================================
Creating Clone-Customizer to get VM snapshot....
================================================
=======================
Getting VM snapshot....
=======================
=====================
Backup Type: OVA....
=====================
===============================================
Creating OVA package test-vm-OVA-20210623-0640....
===============================================
=======================================================
Waiting for OVA Package to be created......10 seconds
Waiting for OVA Package to be created......20 seconds
Waiting for OVA Package to be created......30 seconds
Waiting for OVA Package to be created......40 seconds
Waiting for OVA Package to be created......50 seconds
Waiting for OVA Package to be created......60 seconds
Waiting for OVA Package to be created......70 seconds
========================================
Adding custom description to the OVA....
========================================
OVA Backup test-vm-OVA-20210623-0640 creation of Virtual Machine test-vm completed successfully; here the details:
===============================
Deleting temporary snapshot....
===============================
Retention type is time-based
Actual reference is: 20210623-0640
All backups of this guest older than 1 days will be deleted!!!
All backups of Virtual Machine that:
=================================
1) aren't in a stopped state
2) have physical disk configured
3) have configured vNIC
=================================
Won't be removed by the automatic retention even if are obsolete backups.
======================================================
=======>> GUEST BACKUP EXPIRED AND REMOVED: <<========
======================================================
=============================================================
Based on retention policy any guest backup will be deleted!!!
=============================================================
====================================================================================
=====> Backup available for guest test-vm (sorted by date) : <====================
=============================================================================================
= BACKUP TYPE == BACKUP DATE == BACKUP TIME == BACKUP NAME == PRESERVED ==
=============================================================================================
= OVA == 20210623 == 0640 == test-vm-OVA-20210623-0640 == NO
Restore
Run ovm-restore.sh Script With VM Name
./ovm-restore.sh mf-test-vm2
============================================================
Please choose the VM test-vm2 backup you want to restore:
============================================================
=======================================================
1) test-vm-OVA-20210623-0640 2) test-vm-SNAP-20210623-0639
=======================================================
Choice:
1
============================================================
===================================================================
Here you can see the Oracle VM Pool(s) with the backup available
If you want to see other Oracle VM Pool(s) you should present the
backup repository vmrepo to at least one server of those Pools.
Please consider that only NFS Repositories can be presented to
different Oracle VM Pool(s) at the same time.
Please choose the Oracle VM Pool where to restore mf-test-vm2-OVA-20210623-0640:
==================================================================
=======================================================
1) CFServerPool
=======================================================
Choice:
=======================================================
1) CFServerPool
=======================================================
Choice:
1
==================================================================
==================================================================
Refreshing repository - vmrepo - to get updated information...
==================================================================
Refreshing repository - CFServerPoolRepo - to get updated information...
==================================================================
Refreshing repository - mf-test-repo - to get updated information...
==================================================================
===================================================================
Here you can see the list of repositories where the restore can be
executed on Oracle VM Pool CFServerPool.
Backup test-vm-OVA-20210623-0640 size is equal to 10 GB
***********************************************************************************
Consider that following repositories have been excluded due to low free-disk space:
***********************************************************************************
CFServerPoolRepo - Free 0 GB
***********************************************************************************
Please choose the Oracle VM repository where to restore the backup
named mf-test-vm2-OVA-20210623-0640:
===================================================================
=======================================================
1) vmrepo - Free 105 GB 2) test-repo - Free 195 GB
=======================================================
Choice:
2
===================================================================
===========================================================================
Source VM test-vm was configured with following vNIC(s) and HW-ADDR
===========================================================================
Do you want to keep the same vNICs HWADDR for the restored VM ? (y/n)
y
===========================================================================
==============================================================
Following vNICs will be configured with the source-VM HW-ADDR:
==============================================================
=======================================================================
Creating VM from OVA test-vm\-OVA-20210623-0640.....
=======================================================================
=======================================================
Waiting for Vm deploy to be available......0 seconds
=======================================================
================================================
Creating Clone-Customizer to get VM restored....
================================================
=======================================================
Restoring to target repository test-repo....
=======================================================
=======================================================
Waiting for Vm moving to complete......10 seconds
Waiting for Vm moving to complete......20 seconds
Waiting for Vm moving to complete......30 seconds
Waiting for Vm moving to complete......40 seconds
Waiting for Vm moving to complete......50 seconds
=======================================================
Deleting temporary CloneCustomizer created......
=======================================================
=======================================================
Addinv vNIC(s) using configuration of the source VM
=======================================================
=======================================================
Moving Vm test-vm-RESTORE-20210623-0729
to the Oracle VM Pool: DemoServerPool
=======================================================