SlideShare a Scribd company logo
7
Most read
8
Most read
9
Most read
VM Migration from VMware
to CloudStack and KVM
- Suresh Kumar Anaparti
#CSIUG2024
About Me!
@sureshanaparti
•CloudStack Contributor since 2015
•Committer at Apache CloudStack
•CloudStack 4.16.1 RM, 4.19.1 RM (Upcoming)
•Software Architect @ ShapeBlue
• Hyderabad, India
#CSIUG2024
Agenda
•Introduction
•VMware Migration
•KVM Ingestion
•Future Work
•Demo
•References
•Q & A
#CSIUG2024
Introduction
Import/Export Instances (VMware) - Pre-4.19.0
#CSIUG2024
Introduction
Import Instances to CloudStack (KVM) - 4.19.0
• VMware
• External vCenter
• Managed vCenter
• KVM
• External KVM host
• Disk Images from Storages
#CSIUG2024
VMware Migration
• KVM Host Requirements
• Migration Process
*Results may vary depending on the Guest VM OS and KVM hosts distributions and virt-v2v versions
• Pre-Migration: Discovery, Preparation
• Migration: Conversion, Copying, Deployment
• Post-Migration: Cleanup
• Result: Imported Stopped VM
• APIs
• listVmwareDcVms
• importVm
#CSIUG2024
KVM Host Requirements
The following packages needs to be installed in KVM hypervisor hosts
• virt-v2v (https://www.libguestfs.org/virt-v2v.1.html)
• nbdkit – on Ubuntu
• apt install nbdkit
• virtio-win – for Windows guest VMs
• yum install virtio-win (RHEL)
• apt install virtio-win (Debian)
#CSIUG2024
Migration Process
#CSIUG2024
CloudStack
Management
Server (MS)
Connectivity between VMware
vCenter and KVM host(s) is required
Temporary
Storage Location
virt-v2v output to temporary
storage location:
- Secondary storage
- Primary storage
- Local storage (if enabled)
Destination
Storage Pools Copy VM migrated
disks to destination
storage pools
Converted Instance
Information
Request to convert
VMware Cloned Instance
CloudStack
Database
Import Instance
into Database
importVM API
Source VMware
Clone the source VMware VM
Connectivity between VMware
vCenter and MS is required
Migration cmd (virt-v2v) on KVM Host
• virt-v2v
--root first
-ic <URL>
<CLONE_VM_NAME>
--password-file <PASSWORD_FILE>
-o local
-os <STORAGE_MOUNT_POINT>
-of qcow2
-on <OUTPUT_FILES_PREFIX>
Example:
virt-v2v
--root first
-ic vpx://administrator%40vsphere.local@10.0.35.101/Trillian/p1-c1/10.0.34.189?no_verify=1
0f2b4c88-0015-4f98-8499-8301fa2a5eb3
--password-file /tmp/vmw-bdd276b1-37bd-4575-8d2a-8f22619c3155
-o local
-os /mnt/84f43d95-144f-3ecf-8d46-e6a1badec9bd
-of qcow2
-on ba6be8da-86fb-42f5-ab98-143d1139f7ce
#CSIUG2024
virt-v2v log…
#CSIUG2024
virt-v2v log
#CSIUG2024
Migration Tool
(i) Select Source VMware DC
• Existing: Already linked to a CloudStack zone in the cloud environment
• External: Not managed by any CloudStack zone in the cloud
(ii) CloudStack lists VMs on VMware DC
• New API listVmwareDcVms
(iii) Administrator selects a VMware Instance to import
• New API importVM
• Additionally, can also select a KVM host to perform the conversion and/or select the temporary storage for
the conversion
(iv) CloudStack clones the source VM on the source VMware DC
• Clones in “crash consistent” state
(v) KVM Host converts the VMware Instance to KVM through virt-v2v
• Administrator can choose the conversion host and/or the temporary location for the virt-v2v output
(vi) KVM Host invokes virt-v2v to convert a guest VM from VMware to run on libvirt
#CSIUG2024
Configuration
Management Server Settings
• convert.vmware.instance.to.kvm.timeout
• Timeout for the long-lasting conversion
process
• Default: 8 hours
#CSIUG2024
KVM Host Agent Parameters
• virtv2v.verbose.enabled
• Increase virt-v2v verbosity
• Default: false
Supported VMs & Versions
#CSIUG2024
Destination KVM Hosts Linux Distribution Supported Versions
Alma Linux 8, 9
Red Hat Enterprise Linux 8, 9
Rocky Linux 8, 9
Ubuntu 22.04 LTS
Supported Versions
Supported VMware guest VMs
• Running or Stopped Linux VMs
• Stopped Windows VMs
KVM Ingestion
• Requirements
• Running libvirt, Allow libvirt TCP connections (listen_tcp=1)
• Import Process
• Pre-Import: Discovery
• Import: Conversion (to QCOW2 - qemu-img), Copying (scp), Deployment
• Post-Import: Cleanup
• APIs
• listVmsForImport
• importUnmanagedInstance
• importVm
#CSIUG2024
Conclusion & Future Work
• Preserve Disks & Networking
• Requires virt-v2v / other dependencies on KVM hosts
*Results may vary depending on the Guest VM OS and KVM hosts distributions and virt-v2v versions
• Minimize migration time
• Use local copy (cp / url / virt-v2v-copy-to-local)
• Other options?
• Auto Detect Host (with conversion dependencies)
• virt-v2v / other dependencies updates / any other issues
• Data volume import (KVM)
• Any recommendations/thoughts?
[GitHub Issues | GitHub Discussions | Dev, Users Mailing List]
#CSIUG2024
DEMO
#CSIUG2024
References
• CloudStack Documentation
• https://docs.cloudstack.apache.org/en/4.19.0.0/adminguide/virtual_machines.html#importing-virtual-machines-from-vmware-into-kvm
• https://docs.cloudstack.apache.org/en/4.19.0.0/adminguide/virtual_machines/importing_unmanaging_vms.html
• https://cloudstack.apache.org/api/apidocs-4.19/
• CloudStack Feature PRs (4.19.0)
• https://github.com/apache/cloudstack/pull/7881 (Import VMware VMs into KVM)
• https://github.com/apache/cloudstack/pull/7976 (KVM Ingestion - Import Instance)
• virt-v2v
• https://www.ovirt.org/develop/release-management/features/virt/virt-v2v-integration.html
• https://www.libguestfs.org/virt-v2v.1.html
• https://access.redhat.com/articles/1351473 (VM conversion in RHEL)
#CSIUG2024
#CSIUG2024
Q & A

More Related Content

What's hot (20)

PDF
OpenStack DevStack Install - 1부 (All-in-one)
Ian Choi
 
PDF
[오픈소스컨설팅]레드햇계열리눅스7 운영자가이드 - 기초편
Ji-Woong Choi
 
PDF
[2018] 오픈스택 5년 운영의 경험
NHN FORWARD
 
PDF
오픈스택: 구석구석 파헤쳐보기
Jaehwa Park
 
PDF
Red Hat OpenStack 17 저자직강+스터디그룹_2주차
Nalee Jang
 
PDF
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
PDF
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Nalee Jang
 
PDF
오픈스택 멀티노드 설치 후기
영우 김
 
PDF
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
Open Source Consulting
 
PDF
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
ShapeBlue
 
PDF
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
Ji-Woong Choi
 
PPTX
NSX-T Architecture and Components.pptx
Atif Raees
 
PDF
Monitoring in CloudStack
ShapeBlue
 
PDF
IP Virtual Server(IPVS) 101
HungWei Chiu
 
PDF
Virtualization - Kernel Virtual Machine (KVM)
Wan Leung Wong
 
PDF
An Introduction to VMware NSX
Scott Lowe
 
PDF
[오픈소스컨설팅]오픈스택에 대하여
Ji-Woong Choi
 
PPTX
OVN - Basics and deep dive
Trinath Somanchi
 
PDF
Deploying IPv6 on OpenStack
Vietnam Open Infrastructure User Group
 
PDF
Open vSwitch Introduction
HungWei Chiu
 
OpenStack DevStack Install - 1부 (All-in-one)
Ian Choi
 
[오픈소스컨설팅]레드햇계열리눅스7 운영자가이드 - 기초편
Ji-Woong Choi
 
[2018] 오픈스택 5년 운영의 경험
NHN FORWARD
 
오픈스택: 구석구석 파헤쳐보기
Jaehwa Park
 
Red Hat OpenStack 17 저자직강+스터디그룹_2주차
Nalee Jang
 
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Nalee Jang
 
오픈스택 멀티노드 설치 후기
영우 김
 
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
Open Source Consulting
 
Deploying CloudStack and Ceph with flexible VXLAN and BGP networking
ShapeBlue
 
[오픈소스컨설팅] Open Stack Ceph, Neutron, HA, Multi-Region
Ji-Woong Choi
 
NSX-T Architecture and Components.pptx
Atif Raees
 
Monitoring in CloudStack
ShapeBlue
 
IP Virtual Server(IPVS) 101
HungWei Chiu
 
Virtualization - Kernel Virtual Machine (KVM)
Wan Leung Wong
 
An Introduction to VMware NSX
Scott Lowe
 
[오픈소스컨설팅]오픈스택에 대하여
Ji-Woong Choi
 
OVN - Basics and deep dive
Trinath Somanchi
 
Deploying IPv6 on OpenStack
Vietnam Open Infrastructure User Group
 
Open vSwitch Introduction
HungWei Chiu
 

Similar to VM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlue (20)

PDF
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue
 
PDF
Transitioning from VMware to Apache CloudStack: A Path to Profitability and C...
ShapeBlue
 
PDF
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue
 
PPTX
Moving AWS workloads to OpenStack
Mirantis
 
ODP
Locally run a FIWARE Lab Instance In another Hypervisors
José Ignacio Carretero Guarde
 
PDF
Idc white paper kvm – open source virtualization for the enterprise and ope...
benzfire
 
PPTX
Kvm setup
Pradeep Yadav 🌩️
 
PDF
ApacheCon Miami / CCCNA17 Using KVM in CloudStack
Dag Sonstebo
 
PDF
Virtualization Architecture & KVM
Pradeep Kumar
 
PPTX
Nimbus project
aimas06
 
ODP
Mastering kvm virtualization- A complete guide of KVM virtualization
Humble Chirammal
 
PDF
What’s New and What’s Upcoming in Apache CloudStack, Giles Sirett, ShapeBlue
ShapeBlue
 
ODP
Mastering KVM Virtualization - Overview
Anil Vettathu
 
PDF
CCNA17 KVM and CloudStack
ShapeBlue
 
PDF
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
PDF
Breaking Down the Barriers through Virtualization - Frank Feldman, Red Hat
Linuxmalaysia Malaysia
 
PDF
V mware v center converter standalone user's guide
Firman Indrianto
 
PPTX
User Transparent Service Migration to the Cloud
Tim Mackey
 
PDF
OSDC 2019 | Virtualisation in Docker, using KVM as Hypervisor by Kososochukwu...
NETWAYS
 
PDF
Best Practice Linux Guide: Virtualization
LinuxIT
 
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue
 
Transitioning from VMware to Apache CloudStack: A Path to Profitability and C...
ShapeBlue
 
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue
 
Moving AWS workloads to OpenStack
Mirantis
 
Locally run a FIWARE Lab Instance In another Hypervisors
José Ignacio Carretero Guarde
 
Idc white paper kvm – open source virtualization for the enterprise and ope...
benzfire
 
ApacheCon Miami / CCCNA17 Using KVM in CloudStack
Dag Sonstebo
 
Virtualization Architecture & KVM
Pradeep Kumar
 
Nimbus project
aimas06
 
Mastering kvm virtualization- A complete guide of KVM virtualization
Humble Chirammal
 
What’s New and What’s Upcoming in Apache CloudStack, Giles Sirett, ShapeBlue
ShapeBlue
 
Mastering KVM Virtualization - Overview
Anil Vettathu
 
CCNA17 KVM and CloudStack
ShapeBlue
 
OpenShift Virtualization- Technical Overview.pdf
ssuser1490e8
 
Breaking Down the Barriers through Virtualization - Frank Feldman, Red Hat
Linuxmalaysia Malaysia
 
V mware v center converter standalone user's guide
Firman Indrianto
 
User Transparent Service Migration to the Cloud
Tim Mackey
 
OSDC 2019 | Virtualisation in Docker, using KVM as Hypervisor by Kososochukwu...
NETWAYS
 
Best Practice Linux Guide: Virtualization
LinuxIT
 
Ad

More from ShapeBlue (20)

PDF
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
PPTX
Pushing the Limits: CloudStack at 25K Hosts
ShapeBlue
 
PPTX
Stretching CloudStack over multiple datacenters
ShapeBlue
 
PPTX
Proposed Feature: Monitoring and Managing Cloud Usage Costs in Apache CloudStack
ShapeBlue
 
PPSX
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
PDF
I’d like to resell your CloudStack services, but...
ShapeBlue
 
PDF
Storage Setup for LINSTOR/DRBD/CloudStack
ShapeBlue
 
PDF
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
PDF
Development of an Оbject Storage Plugin for CloudStack, Christian Reichert, s...
ShapeBlue
 
PDF
VM-HA with CloudStack and Linstor, Rene Peinthor
ShapeBlue
 
PDF
How We Use CloudStack to Provide Managed Hosting, Swen Brüseke, proIO
ShapeBlue
 
PDF
Internet Facing VMs and the DDoS Problem, Wido den Hollander, Your.Online
ShapeBlue
 
PDF
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
ShapeBlue
 
PDF
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
ShapeBlue
 
PDF
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
ShapeBlue
 
PPTX
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
ShapeBlue
 
PDF
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
ShapeBlue
 
PDF
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
ShapeBlue
 
PDF
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
ShapeBlue
 
PDF
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue
 
Fully Open-Source Private Clouds: Freedom, Security, and Control
ShapeBlue
 
Pushing the Limits: CloudStack at 25K Hosts
ShapeBlue
 
Stretching CloudStack over multiple datacenters
ShapeBlue
 
Proposed Feature: Monitoring and Managing Cloud Usage Costs in Apache CloudStack
ShapeBlue
 
CloudStack + KVM: Your Local Cloud Lab
ShapeBlue
 
I’d like to resell your CloudStack services, but...
ShapeBlue
 
Storage Setup for LINSTOR/DRBD/CloudStack
ShapeBlue
 
Apache CloudStack 101 - Introduction, What’s New and What’s Coming
ShapeBlue
 
Development of an Оbject Storage Plugin for CloudStack, Christian Reichert, s...
ShapeBlue
 
VM-HA with CloudStack and Linstor, Rene Peinthor
ShapeBlue
 
How We Use CloudStack to Provide Managed Hosting, Swen Brüseke, proIO
ShapeBlue
 
Internet Facing VMs and the DDoS Problem, Wido den Hollander, Your.Online
ShapeBlue
 
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
ShapeBlue
 
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
ShapeBlue
 
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
ShapeBlue
 
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
ShapeBlue
 
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
ShapeBlue
 
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
ShapeBlue
 
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
ShapeBlue
 
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue
 
Ad

Recently uploaded (20)

PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 

VM Migration from VMware to CloudStack and KVM – Suresh Anaparti, ShapeBlue

  • 1. VM Migration from VMware to CloudStack and KVM - Suresh Kumar Anaparti #CSIUG2024
  • 2. About Me! @sureshanaparti •CloudStack Contributor since 2015 •Committer at Apache CloudStack •CloudStack 4.16.1 RM, 4.19.1 RM (Upcoming) •Software Architect @ ShapeBlue • Hyderabad, India #CSIUG2024
  • 3. Agenda •Introduction •VMware Migration •KVM Ingestion •Future Work •Demo •References •Q & A #CSIUG2024
  • 5. Introduction Import Instances to CloudStack (KVM) - 4.19.0 • VMware • External vCenter • Managed vCenter • KVM • External KVM host • Disk Images from Storages #CSIUG2024
  • 6. VMware Migration • KVM Host Requirements • Migration Process *Results may vary depending on the Guest VM OS and KVM hosts distributions and virt-v2v versions • Pre-Migration: Discovery, Preparation • Migration: Conversion, Copying, Deployment • Post-Migration: Cleanup • Result: Imported Stopped VM • APIs • listVmwareDcVms • importVm #CSIUG2024
  • 7. KVM Host Requirements The following packages needs to be installed in KVM hypervisor hosts • virt-v2v (https://www.libguestfs.org/virt-v2v.1.html) • nbdkit – on Ubuntu • apt install nbdkit • virtio-win – for Windows guest VMs • yum install virtio-win (RHEL) • apt install virtio-win (Debian) #CSIUG2024
  • 8. Migration Process #CSIUG2024 CloudStack Management Server (MS) Connectivity between VMware vCenter and KVM host(s) is required Temporary Storage Location virt-v2v output to temporary storage location: - Secondary storage - Primary storage - Local storage (if enabled) Destination Storage Pools Copy VM migrated disks to destination storage pools Converted Instance Information Request to convert VMware Cloned Instance CloudStack Database Import Instance into Database importVM API Source VMware Clone the source VMware VM Connectivity between VMware vCenter and MS is required
  • 9. Migration cmd (virt-v2v) on KVM Host • virt-v2v --root first -ic <URL> <CLONE_VM_NAME> --password-file <PASSWORD_FILE> -o local -os <STORAGE_MOUNT_POINT> -of qcow2 -on <OUTPUT_FILES_PREFIX> Example: virt-v2v --root first -ic vpx://administrator%[email protected]/Trillian/p1-c1/10.0.34.189?no_verify=1 0f2b4c88-0015-4f98-8499-8301fa2a5eb3 --password-file /tmp/vmw-bdd276b1-37bd-4575-8d2a-8f22619c3155 -o local -os /mnt/84f43d95-144f-3ecf-8d46-e6a1badec9bd -of qcow2 -on ba6be8da-86fb-42f5-ab98-143d1139f7ce #CSIUG2024
  • 12. Migration Tool (i) Select Source VMware DC • Existing: Already linked to a CloudStack zone in the cloud environment • External: Not managed by any CloudStack zone in the cloud (ii) CloudStack lists VMs on VMware DC • New API listVmwareDcVms (iii) Administrator selects a VMware Instance to import • New API importVM • Additionally, can also select a KVM host to perform the conversion and/or select the temporary storage for the conversion (iv) CloudStack clones the source VM on the source VMware DC • Clones in “crash consistent” state (v) KVM Host converts the VMware Instance to KVM through virt-v2v • Administrator can choose the conversion host and/or the temporary location for the virt-v2v output (vi) KVM Host invokes virt-v2v to convert a guest VM from VMware to run on libvirt #CSIUG2024
  • 13. Configuration Management Server Settings • convert.vmware.instance.to.kvm.timeout • Timeout for the long-lasting conversion process • Default: 8 hours #CSIUG2024 KVM Host Agent Parameters • virtv2v.verbose.enabled • Increase virt-v2v verbosity • Default: false
  • 14. Supported VMs & Versions #CSIUG2024 Destination KVM Hosts Linux Distribution Supported Versions Alma Linux 8, 9 Red Hat Enterprise Linux 8, 9 Rocky Linux 8, 9 Ubuntu 22.04 LTS Supported Versions Supported VMware guest VMs • Running or Stopped Linux VMs • Stopped Windows VMs
  • 15. KVM Ingestion • Requirements • Running libvirt, Allow libvirt TCP connections (listen_tcp=1) • Import Process • Pre-Import: Discovery • Import: Conversion (to QCOW2 - qemu-img), Copying (scp), Deployment • Post-Import: Cleanup • APIs • listVmsForImport • importUnmanagedInstance • importVm #CSIUG2024
  • 16. Conclusion & Future Work • Preserve Disks & Networking • Requires virt-v2v / other dependencies on KVM hosts *Results may vary depending on the Guest VM OS and KVM hosts distributions and virt-v2v versions • Minimize migration time • Use local copy (cp / url / virt-v2v-copy-to-local) • Other options? • Auto Detect Host (with conversion dependencies) • virt-v2v / other dependencies updates / any other issues • Data volume import (KVM) • Any recommendations/thoughts? [GitHub Issues | GitHub Discussions | Dev, Users Mailing List] #CSIUG2024
  • 18. References • CloudStack Documentation • https://docs.cloudstack.apache.org/en/4.19.0.0/adminguide/virtual_machines.html#importing-virtual-machines-from-vmware-into-kvm • https://docs.cloudstack.apache.org/en/4.19.0.0/adminguide/virtual_machines/importing_unmanaging_vms.html • https://cloudstack.apache.org/api/apidocs-4.19/ • CloudStack Feature PRs (4.19.0) • https://github.com/apache/cloudstack/pull/7881 (Import VMware VMs into KVM) • https://github.com/apache/cloudstack/pull/7976 (KVM Ingestion - Import Instance) • virt-v2v • https://www.ovirt.org/develop/release-management/features/virt/virt-v2v-integration.html • https://www.libguestfs.org/virt-v2v.1.html • https://access.redhat.com/articles/1351473 (VM conversion in RHEL) #CSIUG2024