My Oracle Support Banner

OVM: CLI Script to Move VMs to a Different Repository (Doc ID 2161816.1)

Last updated on FEBRUARY 20, 2024

Applies to:

Oracle VM - Version 3.3.1 and later
Oracle Cloud Infrastructure - Version N/A and later
Private Cloud Appliance - Version 2.4.4 to 2.4.4 [Release 2.0]
Linux x86-64

Goal

 

Moving a VM from one repository to another can be somewhat tedious, especially if the VM has many vdisks or there are many vm's to move.

To completely move a VM, a clone-customizer must be created that specifies the target destination for each virtual disk.

The script provided with this article will assist with activities such as:

It creates the clone-customizer(s) and moves the entire vm (vm.cfg file and all virtual-disks) to the destination repository.

Source and target ocfs2-based repositories must be in the same pool. NFS-based repositories can be in different pools but under the same manager.

No warranty or support for the provided scripts is implied - they are provided "as is" for demonstration purposes and can be adapted as required.

This document and attachment were created from Oracle VM 3.4 script: schedule and move VMs to a different repository

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.