Skip to content

Commit 94c49e4

Browse files
authored
Merge pull request #22877 from apinnick/virt-registry-update
Virt registry update
2 parents 2054390 + 3a9743f commit 94c49e4

File tree

3 files changed

+63
-17
lines changed

3 files changed

+63
-17
lines changed

modules/virt-creating-vddk-image.adoc

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@
55
[id="virt-creating-vddk-image_{context}"]
66
= Creating a VDDK image
77

8-
The VMware Virtual Disk Development Kit (VDDK) SDK is used to copy VMware virtual disks.
9-
10-
You can download VDDK, convert it into an image, push the image to a private container repository, and add it to the `v2v-vmware` ConfigMap.
8+
You can convert the VMware Virtual Disk Development Kit (VDDK) into an image, and push the image to an image registry. Then, add the image to the `v2v-vmware` ConfigMap.
119

1210
.Prerequisites
1311

14-
* You must have a VMware account to download VDDK.
15-
* You must be logged in to your private container repository.
16-
+
17-
Storing the VDDK image in a public repository may violate the terms of the VMware license.
12+
* You must configure an image registry.
13+
* You must download the VDDK archive file.
1814

1915
.Procedure
2016

21-
. Create a temporary directory for VDDK:
17+
. Create and navigate to a temporary directory:
2218
+
2319
----
24-
$ mkdir /tmp/my_vddk && cd /tmp/my_vddk
20+
$ mkdir /tmp/<dir_name> && cd /tmp/<dir_name>
2521
----
2622

2723
. In a browser, navigate to link:https://www.vmware.com/support/pubs/[VMware Documentation].
@@ -33,7 +29,8 @@ $ mkdir /tmp/my_vddk && cd /tmp/my_vddk
3329
$ tar -xzf VMware-vix-disklib-<version>.x86_64.tar.gz
3430
----
3531

36-
. Create a *Dockerfile*:
32+
. Extract the VDDK archive file to your temporary directory.
33+
. Create a `Dockerfile`:
3734
+
3835
----
3936
$ cat > Dockerfile <<EOF
@@ -47,16 +44,18 @@ EOF
4744
. Build the image:
4845
+
4946
----
50-
$ docker build -f Dockerfile -t <server/username/reponame:tag> <1>
47+
$ podman build . -t <server_name>/path/to/vddk:<tag> <1>
5148
----
52-
<1> Specify your repository details.
49+
<1> Specify the image registry, path, and tag:
50+
+
51+
* For an external registry, specify the server name, for example, `server.example.com:5000/vddk:<tag>`.
52+
* For the internal registry, use the internal registry route, for example, `image-registry.openshift-image-registry.svc:5000/openshift/vddk:<tag>`.
5353

54-
. Push the image to your repository:
54+
. Push the image to the registry:
5555
+
5656
----
57-
$ docker push <server/username/reponame:tag> <1>
57+
$ podman push <server_name>/path/to/vddk:<tag>
5858
----
59-
<1> Specify your repository details.
6059

6160
. Ensure that the image is accessible to your {VirtProductName} environment.
6261
. Edit the `v2v-vmware` ConfigMap in the *openshift-cnv* project:
@@ -71,6 +70,5 @@ $ oc edit configmap v2v-vmware -n openshift-cnv
7170
----
7271
...
7372
data:
74-
vddk-init-image: <server/username/reponame:tag> <1>
73+
vddk-init-image: <server_name>/path/to/vddk:<tag>
7574
----
76-
<1> Specify your repository details.

modules/virt-downloading-vddk.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/importing_vms/virt-importing-vmware-vm.adoc
4+
[id='virt-downloading-vddk_{context}']
5+
= Downloading the VMware Virtual Disk Development Kit
6+
7+
You can download the VMware Virtual Disk Development Kit (VDDK) to import VMware virtual disks.
8+
9+
.Procedure
10+
11+
. In a browser, navigate to link:https://code.vmware.com/sdks[VMware code SDKs].
12+
. Click *Virtual Disk Development Kit (VDDK)*.
13+
. Select the VDDK release for your VMware version.
14+
. Click *Download*, log in with your VMware account credentials, and save the VDDK archive file.

virt/virtual_machines/importing_vms/virt-importing-vmware-vm.adoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,42 @@ If you import a VMware template, the wizard creates a virtual machine based on t
1212
include::modules/technology-preview.adoc[leveloffset=+1]
1313
:!FeatureName:
1414

15+
== Creating and using a VMware Virtual Disk Development Kit image
16+
17+
The VMware Virtual Disk Development Kit (VDDK) SDK is used to copy VMware virtual disks. You can create a VDDK image and add it to the the `v2v-vmware` ConfigMap to import a VMware virtual machine.
18+
19+
You can store the VDDK image in the internal {product-title} image registry or in a secure external image registry.
20+
21+
[NOTE]
22+
====
23+
Storing the VDDK image in a public registry might violate the terms of the VMware license.
24+
====
25+
1526
.Prerequisites
1627

28+
* You must configure an image registry.
29+
30+
=== Accessing the internal image registry
31+
32+
You can access an {product-title} registry directly, from within the cluster, or externally, by exposing the registry with a route.
33+
34+
Internal access::
35+
You can access the internal image registry xref:../../../registry/accessing-the-registry.adoc#registry-accessing-directly_accessing-the-registry[directly, from your cluster].
36+
37+
External access::
38+
You can access the internal image registry externally, xref:../../../registry/securing-exposing-registry.adoc#registry-exposing-secure-registry-manually_securing-exposing-registry[by exposing the image registry with a route].
39+
40+
=== Accessing an external image registry
41+
42+
You can access an external image registry from an {product-title} cluster.
43+
44+
.Procedure
45+
46+
. xref:../../../builds/setting-up-trusted-ca.adoc#configmap-adding-ca_setting-up-trusted-ca[Add certificate authorities] for the external image registry to the {product-title} cluster.
47+
48+
. Optionally, you can create a xref:../../../openshift_images/managing_images/using-image-pull-secrets.adoc#images-allow-pods-to-reference-images-from-secure-registries_using-image-pull-secrets[pull secret from your Docker credentials and add it to your service account].
49+
50+
include::modules/virt-downloading-vddk.adoc[leveloffset=+1]
1751
include::modules/virt-creating-vddk-image.adoc[leveloffset=+1]
1852
include::modules/virt-importing-vmware-vm.adoc[leveloffset=+1]
1953

0 commit comments

Comments
 (0)