SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
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

Contenu connexe

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

Multi-Hypervisor OpenStack
Multi-Hypervisor OpenStackMulti-Hypervisor OpenStack
Multi-Hypervisor OpenStackFrank Rego
 
Ivaylo Radev - usercon vmugit
Ivaylo Radev - usercon vmugit Ivaylo Radev - usercon vmugit
Ivaylo Radev - usercon vmugit VMUG IT
 
Akanda: Open Source, Production-Ready Network Virtualization for OpenStack
Akanda: Open Source, Production-Ready Network Virtualization for OpenStackAkanda: Open Source, Production-Ready Network Virtualization for OpenStack
Akanda: Open Source, Production-Ready Network Virtualization for OpenStackJonathan LaCour
 
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere MortalsVMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere MortalsVMworld
 
Using Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStackUsing Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStackTim Mackey
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Unitek Eduation
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to dockerInstruqt
 
V mware v sphere 5 fundamentals services kit
V mware v sphere 5 fundamentals services kitV mware v sphere 5 fundamentals services kit
V mware v sphere 5 fundamentals services kitsolarisyougood
 
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerNordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerAndrea Mauro
 
User Transparent Service Migration to the Cloud
User Transparent Service Migration to the CloudUser Transparent Service Migration to the Cloud
User Transparent Service Migration to the CloudTim Mackey
 
Virtualization support by intel
Virtualization support by intelVirtualization support by intel
Virtualization support by intelInzemamul Haque
 
Container and Cloud Native Application: What is VMware doing in this space? -...
Container and Cloud Native Application: What is VMware doing in this space? -...Container and Cloud Native Application: What is VMware doing in this space? -...
Container and Cloud Native Application: What is VMware doing in this space? -...gguglie
 
vRealize Operation 7.5 What's new
vRealize Operation 7.5 What's newvRealize Operation 7.5 What's new
vRealize Operation 7.5 What's newKiss Tibor
 
Developing Microservices with Apache Camel, by Claus Ibsen
Developing Microservices with Apache Camel, by Claus IbsenDeveloping Microservices with Apache Camel, by Claus Ibsen
Developing Microservices with Apache Camel, by Claus IbsenJudy Breedlove
 
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWSAmazon Web Services
 
Developing Java based microservices ready for the world of containers
Developing Java based microservices ready for the world of containersDeveloping Java based microservices ready for the world of containers
Developing Java based microservices ready for the world of containersClaus Ibsen
 
Windows Server «10»: Что нового в виртуализации
Windows Server «10»: Что нового в виртуализацииWindows Server «10»: Что нового в виртуализации
Windows Server «10»: Что нового в виртуализацииВиталий Стародубцев
 
VMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld
 

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

Multi-Hypervisor OpenStack
Multi-Hypervisor OpenStackMulti-Hypervisor OpenStack
Multi-Hypervisor OpenStack
 
Ivaylo Radev - usercon vmugit
Ivaylo Radev - usercon vmugit Ivaylo Radev - usercon vmugit
Ivaylo Radev - usercon vmugit
 
Akanda: Open Source, Production-Ready Network Virtualization for OpenStack
Akanda: Open Source, Production-Ready Network Virtualization for OpenStackAkanda: Open Source, Production-Ready Network Virtualization for OpenStack
Akanda: Open Source, Production-Ready Network Virtualization for OpenStack
 
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere MortalsVMworld 2015: VMware vSphere Certificate Management for Mere Mortals
VMworld 2015: VMware vSphere Certificate Management for Mere Mortals
 
Using Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStackUsing Packer to Migrate XenServer Infrastructure to CloudStack
Using Packer to Migrate XenServer Infrastructure to CloudStack
 
Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...Intro to Deploying and administering server virtualization with Hyper-V and S...
Intro to Deploying and administering server virtualization with Hyper-V and S...
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
V mware v sphere 5 fundamentals services kit
V mware v sphere 5 fundamentals services kitV mware v sphere 5 fundamentals services kit
V mware v sphere 5 fundamentals services kit
 
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter ServerNordic VMUG User Conference 2014 - Design VMware vCenter Server
Nordic VMUG User Conference 2014 - Design VMware vCenter Server
 
User Transparent Service Migration to the Cloud
User Transparent Service Migration to the CloudUser Transparent Service Migration to the Cloud
User Transparent Service Migration to the Cloud
 
Virtualization support by intel
Virtualization support by intelVirtualization support by intel
Virtualization support by intel
 
OpenStack and Windows
OpenStack and WindowsOpenStack and Windows
OpenStack and Windows
 
Container and Cloud Native Application: What is VMware doing in this space? -...
Container and Cloud Native Application: What is VMware doing in this space? -...Container and Cloud Native Application: What is VMware doing in this space? -...
Container and Cloud Native Application: What is VMware doing in this space? -...
 
E2EVC SCVMM-Mania
E2EVC SCVMM-ManiaE2EVC SCVMM-Mania
E2EVC SCVMM-Mania
 
vRealize Operation 7.5 What's new
vRealize Operation 7.5 What's newvRealize Operation 7.5 What's new
vRealize Operation 7.5 What's new
 
Developing Microservices with Apache Camel, by Claus Ibsen
Developing Microservices with Apache Camel, by Claus IbsenDeveloping Microservices with Apache Camel, by Claus Ibsen
Developing Microservices with Apache Camel, by Claus Ibsen
 
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
 
Developing Java based microservices ready for the world of containers
Developing Java based microservices ready for the world of containersDeveloping Java based microservices ready for the world of containers
Developing Java based microservices ready for the world of containers
 
Windows Server «10»: Что нового в виртуализации
Windows Server «10»: Что нового в виртуализацииWindows Server «10»: Что нового в виртуализации
Windows Server «10»: Что нового в виртуализации
 
VMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical Walkthrough
 

Plus de ShapeBlue

CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlueCloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlueShapeBlue
 
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlueCloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlueShapeBlue
 
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...ShapeBlue
 
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHubHow We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHubShapeBlue
 
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
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...
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
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
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIOHow We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIOShapeBlue
 
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...ShapeBlue
 
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...ShapeBlue
 
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineShapeBlue
 
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...ShapeBlue
 
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...ShapeBlue
 
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...ShapeBlue
 
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...ShapeBlue
 
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...ShapeBlue
 
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueShapeBlue
 
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...ShapeBlue
 
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...ShapeBlue
 
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueShapeBlue
 
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
 

Plus de ShapeBlue (20)

CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlueCloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
CloudStack Authentication Methods – Harikrishna Patnala, ShapeBlue
 
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlueCloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
CloudStack Tooling Ecosystem – Kiran Chavala, ShapeBlue
 
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
Elevating Cloud Infrastructure with Object Storage, DRS, VM Scheduling, and D...
 
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHubHow We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
How We Grew Up with CloudStack and its Journey – Dilip Singh, DataHub
 
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
What’s New in CloudStack 4.19, Abhishek Kumar, Release Manager Apache CloudSt...
 
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
CloudStack 101: The Best Way to Build Your Private Cloud – Rohit Yadav, VP Ap...
 
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIOHow We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
How We Use CloudStack to Provide Managed Hosting - Swen Brüseke - proIO
 
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
 
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
 
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
 
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
 
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
Use Existing Assets to Build a Powerful In-house Cloud Solution - Magali Perv...
 
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
 
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
 
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
 
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
 
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
 
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
 
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
 
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
 

Dernier

AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentationyogeshlabana357357
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 

Dernier (20)

AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 

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%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
  • 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