You can containerize any VMs.
Procedure
- Click Discovery from the main menu.
- On the left navigation page, go to .
- Select a VM and assign the
REPLATFORM
tag to the VM.
- Prepare for VM containerization to familiarize Application Transformer for VMware Tanzu with Kubernetes cluster and harbor registry.
Note: Ensure that the registry is accessible to both
Application Transformer for VMware Tanzu and target Kubernetes cluster.
- Click Transform from the main menu.
- Under Settings, go to Prepare for V2C.
- Select an image registry and enter the repository that you want to reuse to push an image.
Note: If you plan to use embedded harbor as your image registry, go to
and add a registry in the following format:
<appliance IP>:9443
. Ensure to select the new entry to push the image.
The image will be packaged within
Application Transformer for VMware Tanzu. The target Kubernetes cluster deploys a container from this image and the VMs that we containerize runs as a process inside the container.
- Click Save and Continue.
This pushes the image into the registry.
- Click Browse and select the Kubernetes cluster configuration file (~/.kube/config.yaml file) that you want to connect.
- Click Save and Continue.
- Select a worker node that you want to use for VM containerization.
- Enter the namespace for the container to run.
- Click Save and Continue.
Application Transformer for VMware Tanzu verifies whether:
- the worker node is suitable for containerization
- the harbor virtualization is enabled
- the Linux operating system
- Click Save and Continue.
- Select the mount location for the target VM disk.
- Click Finish.
- Click Deploy.
Deploys the container in the target Kubernetes cluster. You can click
Reset to delete the container that you created.
- Click Transform from the main menu.
- Click on the three dots next to the VM name and select VM Containerization.
- Enter a unique name.
You can containerize the same VM with different names.
- Enter the target port for the container.
Use any port that is greater than 5900. Example: 5910
- Enter the CPU count that you want the VM to run.
- Enter the RAM that you want to reserve on the target worker node.
- Enter the ports to expose to the container network. Example: 9022:22,8080:9090, where 8080 is the target port for the container and 9090 is the port exposed by the VMs.
- Click Containerize.
Results
Downloads the disk to the target worker node.