Skip to content

epheo/ocp-virt-async-dr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenShift Virtualization Async DR (VolSync + Ansible)

This repo provides role-based playbooks to configure asynchronous DR for KubeVirt VMs using VolSync and optionally MetalLB.

Key capabilities:

  • Install required operators (VolSync and optional MetalLB).
  • Discover VM disks → create ReplicationSource (source) and ReplicationDestination (dest).
  • Schedule periodic syncs (every X minutes).
  • Automatically pick up new VM disks with a re-scan.
  • Capture sanitized VM definitions from the source and store them on the destination for exact restoration (same CPU, memory, devices, interfaces, MACs).
  • Failover workflow pauses RD, then restores the same VM spec at the DR site, pointing disks to the correct PVCs.

Works with Ansible Core and AWX.

Prereq

dnf install ansible-core git python3-pip
pip3 install kubernetes
ansible-galaxy collection install kubernetes.core
ansible-galaxy collection install community.general

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%