7.9. Import a virtual machine image using the DataVolume API
You can import a virtual machine (VM) image into your OpenShift Virtualization cluster by using the DataVolume API. A DataVolume automates PVC creation and image data transfer from an external source by using the Containerized Data Importer (CDI).
7.9.1. Supported import sources 링크 복사링크가 클립보드에 복사되었습니다!
The DataVolume API supports importing VM images from several external sources. The Containerized Data Importer (CDI) detects the image format and converts it as needed.
The following import sources are available:
- HTTP or HTTPS
-
You specify the URL of the image file by using the
source.httpfield. CDI downloads the image directly from the web server. You can optionally supply TLS certificates for custom certificate authorities and credentials for Basic authentication. - Container registry
-
You specify the image location by using the
source.registryfield with adocker://URL prefix. CDI pulls the image from the registry by using standard container image pull mechanisms. You can supply registry credentials in aSecretobject if the registry requires authentication. - S3 object storage
-
You specify the object URL by using the
source.s3field. CDI downloads the image from an S3-compatible storage service. You must supply access credentials in aSecretobject. - oVirt (ImageIO)
-
You specify the connection details by using the
source.imageiofield. CDI connects to the oVirt ImageIO API to transfer disk images from a Red Hat Virtualization environment. - VMware (VDDK)
-
You specify the connection details by using the
source.vddkfield. CDI uses the VMware Virtual Disk Development Kit (VDDK) to transfer disk images from a VMware vSphere environment.
Supported image formats include QCOW2, raw, ISO, and compressed archive files.