Uh oh!
There was an error while loading. Please reload this page.
Added vddk support in vmware to kvm migrations - #12970
Conversation
b95cfb7 to
7dc5d50Compareharikrishna-patnala
commented
Apr 7, 2026
@blueorangutan package |
blueorangutan
commented
Apr 7, 2026
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@## 4.22 #12970 +/- ##
============================================
+ Coverage 17.60% 17.62% +0.01% - Complexity 15688 15711 +23
============================================
Files 5919 5919 Lines 532005 532451 +446 Branches 65060 65138 +78 ============================================
+ Hits 93683 93822 +139 - Misses 427755 428038 +283 - Partials 10567 10591 +24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
harikrishna-patnala
commented
Apr 7, 2026
@blueorangutan package |
blueorangutan
commented
Apr 7, 2026
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
harikrishna-patnala
commented
Apr 7, 2026
@blueorangutan package |
blueorangutan
commented
Apr 7, 2026
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 7, 2026
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17380 |
harikrishna-patnala
commented
Apr 7, 2026
@blueorangutan package |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aa710bd to
782f8feCompareharikrishna-patnala
commented
Apr 14, 2026
@blueorangutan package |
harikrishna-patnala
commented
Apr 14, 2026
@sureshanaparti thanks for all the reviews, I've addressed them |
harikrishna-patnala
commented
Apr 14, 2026
@blueorangutan package |
blueorangutan
commented
Apr 14, 2026
@harikrishna-patnala a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Apr 14, 2026
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17479 |
Uh oh!
There was an error while loading. Please reload this page.
sureshanaparti
commented
Apr 14, 2026
@blueorangutan package |
blueorangutan
commented
Apr 14, 2026
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 14, 2026
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17482 |
sureshanaparti
commented
Apr 14, 2026
@blueorangutan test |
blueorangutan
commented
Apr 14, 2026
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM
Tested manually on rocky 9 host and a Ubuntu 24 host
Installed the vddk packages on the kvm host
The tool was able to import vmware instances (Guest os windows, linux ) at a faster rate with the help of vddk support
Logs
2026-04-13 06:01:24,677 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) (i-2-14-VM) Attempting to convert the instance i-2-14-VM from VMware to KVM
2026-04-13 06:01:24,677 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) (i-2-14-VM) Using VDDK-based conversion (direct from VMware)
2026-04-13 06:01:24,677 DEBUG [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) (i-2-14-VM) Written vCenter password to /tmp/v2v.pass.cloud.10.1.34.210.37e8f4d8-2083-4bf2-9917-abdba6fcf3d9
2026-04-13 06:01:24,677 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) (i-2-14-VM) Using VPX URL: vpx://administrator%40vsphere.local@10.1.34.210/Trillian/p1-c1/10.1.33.172?no_verify=1
2026-04-13 06:01:24,677 DEBUG [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) Executing command [/bin/bash -c openssl s_client -connect '10.1.34.210:443' </dev/null 2>/dev/null | openssl x509 -fingerprint -sha1 -noout ].
2026-04-13 06:01:24,706 DEBUG [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) Successfully executed process [142874] for command [/bin/bash -c openssl s_client -connect '10.1.34.210:443' </dev/null 2>/dev/null | openssl x509 -fingerprint -sha1 -noout ].
2026-04-13 06:01:24,706 INFO [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) (i-2-14-VM) Starting virt-v2v VDDK conversion
2026-04-13 06:01:24,706 DEBUG [resource.wrapper.LibvirtConvertInstanceCommandWrapper] (AgentRequest-Handler-1:[]) (logid:34cab3ef) Executing command [/bin/bash -c export LIBGUESTFS_BACKEND=direct && virt-v2v --root first -ic 'vpx://administrator%40vsphere.local@10.1.34.210/Trillian/p1-c1/10.1.33.172?no_verify=1' -ip /tmp/v2v.pass.cloud.10.1.34.210.37e8f4d8-2083-4bf2-9917-abdba6fcf3d9 -it vddk -io vddk-libdir=/opt/vmware-vddk/vmware-vix-disklib-distrib -io vddk-thumbprint=28:19:A6:1C:90:ED:46:D7:1C:86:BC:F6:13:52:F0:B9:19:81:0D:81 i-2-14-VM -o local -os /mnt/6f0e9b83-ab0d-3cc5-8ac6-189c672fe035 -of qcow2 -on 61c54ba1-df16-4be3-badb-4916f14ba5ed -v ].


| Test Case Execution | Result |
|---|---|
| Admin should be able to migrate a stopped vm from vmware via vddk library | Pass |
| Admin should be able to migrate a running vm from vmware via vddk library | Pass |
| Admin should be able to migrate stopped VMs which has many data disks from vmware to kvm via via vddk library | Pass |
| Admin should be able to migrate running VMs which has many data disks from vmware to kvm via vddk library | Pass |
| Admin should be able to list the vddk details on the import instance form | Pass |
| Import Ubuntu24 vm to Rocky 9 kvm host | Pass |
| Import Windows 2022 server vm to Rocky 9 kvm host | Pass |
| Import Centos 7 vm to Rocky 9 kvm host | Pass |
| Import Ubuntu24 vm to Ubuntu 24 kvm host | Pass |
| Import Windows 2022 server vm to ubuntu24 kvm host | Pass |
| Import Centos 7 vm to Ubuntu 9 kvm host | Pass |
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Apr 15, 2026
[SF] Trillian test result (tid-15871)
|
Uh oh!
There was an error while loading. Please reload this page.
Description
This PR introduces the VDDK implementation as part of VMware to KVM migration which reduces the migration time by half when compared to the existing implementation with exportOVF
Solution: Introduce VDDK configuration at both the host agent level and per-API-call level, wired through the migration execution pipeline on the KVM host.
Key Capabilities
agent.propertieskeys configure VDDK defaults per KVM hostimportVmdetails, overriding host defaults-ipor--password-filebased on virt-v2v version, and deleted immediately after useopenssl s_clientConfiguration Keys
Precedence
Doc PR: apache/cloudstack-documentation#640
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?