# README
KubeVirt Disk Uploader
Extracts disk and uploads it to a container registry.
About
A tool designed to automate the extraction of disks from KubeVirt Virtual Machines, package them into Container Disks, and upload them to the Container Registry.
Workflow
KubeVirt Disk Uploader -> Download VM Disk -> Build New Container Disk -> Push To Container Registry
Installation
Prerequisites
- Ensure Virtual Machine (VM) is powered off. Data from VM can be exported only when it is not used.
- Modify kubevirt-disk-uploader arguments (VM Name, Volume Name, Image Destination, Enable or Disable System Preparation and Push Timeout).
- Modify kubevirt-disk-uploader-credentials of the external container registry (Username, Password and Hostname).
Deploy kubevirt-disk-uploader
within the same namespace as the Virtual Machine (VM):
kubectl apply -f kubevirt-disk-uploader.yaml -n $VM_NAMESPACE
KubeVirt Documentation
Read more about the used API at KubeVirt Export API.