Creating a VDDK image
Forklift uses the VMware Virtual Disk Development Kit (VDDK) SDK to transfer virtual disks.
You must download VDDK, build a VDDK image, push it to a private image registry, and then add the image to the v2v-vmware
config map.
Note
|
Storing the VDDK image in a public registry might violate the VMware license terms. |
-
OKD image registry or a secure external registry.
-
Podman installed.
-
If you are using an external registry, KubeVirt must have access.
-
Create and navigate to a temporary directory:
$ mkdir /tmp/<dir_name> && cd /tmp/<dir_name>
-
In a browser, navigate to the VMware code site and click SDKs.
-
In the Hyperconverged Infrastructure section, click Virtual Disk Development Kit (VDDK).
-
Select the latest VDDK version.
-
Click Download and save the VDDK archive file in the temporary directory.
-
Extract the VDDK archive:
$ tar -xzf VMware-vix-disklib-<version>.x86_64.tar.gz
-
Create a
Dockerfile
:$ cat > Dockerfile <<EOF FROM registry.access.redhat.com/ubi8/ubi-minimal COPY vmware-vix-disklib-distrib /vmware-vix-disklib-distrib RUN mkdir -p /opt ENTRYPOINT ["cp", "-r", "/vmware-vix-disklib-distrib", "/opt"] EOF
-
Build the VDDK image:
$ podman build . -t <image> (1)
-
Specify the image, for example,
image-registry.openshift-image-registry.svc:5000/openshift/vddk:latest
orregistry.example.com:5000/vddk:latest
.
-
-
Push the VDDK image to the registry:
$ podman push <image>
-
Patch the
v2v-vmware
config map to add thevddk-init-image
field:$ oc patch configmap/v2v-vmware -n openshift-cnv \ -p '{"data": {"vddk-init-image": "<image>"}}'