# Vcenter to opennebula migration

**URL:** <https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238>\
**Category:** Product Support\
**Created:** [March 23, 2020, 7:35am UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238 "2020-03-23T07:35:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/amit_kumar/32/7867_2.png) [@Amit\_Kumar](https://forum.opennebula.io/u/Amit_Kumar)\
**Post date:** [March 23, 2020, 7:35am UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238/1 "2020-03-23T07:35:36Z")

</div>

Hi, I am trying to migrate VMs hosted over vcenter to opennebula cluster using live migration, but getting following error message.Please suggest

* * *

**Opennebula 5.10 , vcenter 6.0 and esxi 6.0.**

**Integrated vcenter in Opennebula using sunstone -\> import VMs, network , datastores -\> perform live migration from sunstone console by selecting VM that need to be migrated. Getting below error message in GUI console log:**

**Sun Mar 22 20:58:09 2020 [Z0][VM][I]: New LCM state is MIGRATE  
Sun Mar 22 20:58:09 2020 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_premigrate.  
Sun Mar 22 20:58:09 2020 [Z0][VMM][I]: ExitCode: 0  
Sun Mar 22 20:58:09 2020 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: Command execution fail: cat \<\< EOT | /var/tmp/one/vmm/kvm/migrate ‘vm-29’ ‘pcloud’ ‘pdc-cl1’ 336 pdc-cl1  
Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: Host key verification failed.  
Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: ExitSSHCode: 255  
Sun Mar 22 20:58:10 2020 [Z0][VMM][E]: Error connecting to pdc-cl1  
Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm\_failmigrate.  
Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: Failed to execute virtualization driver operation: migrate.  
Sun Mar 22 20:58:10 2020 [Z0][VMM][E]: Error live migrating VM: Error connecting to pdc-cl1  
Sun Mar 22 20:58:10 2020 [Z0][VM][I]: New LCM state is RUNNING  
Sun Mar 22 20:58:10 2020 [Z0][LCM][I]: Fail to live migrate VM. Assuming that the VM is still RUNNING (will poll VM).:**

**Expected results:**

---

<div class="post-metadata">

**Author:** ![slnt\_opp](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slnt_opp/32/6303_2.png) [@slnt\_opp](https://forum.opennebula.io/u/slnt_opp)\
**Post date:** [March 26, 2020, 9:27am UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238/2 "2020-03-26T09:27:28Z")

</div>

> [@Amit\_Kumar](#):
>
> Sun Mar 22 20:58:10 2020 [Z0][VMM][I]: Command execution fail: cat \<\< EOT | **/var/tmp/one/vmm/kvm/migrate** ‘vm-29’ ‘pcloud’ ‘pdc-cl1’ 336 pdc-cl1

Are you sure, that you aren’t using kvm driver for migration?  
Check your hosts vm- and tm\_mad

---

<div class="post-metadata">

**Author:** ![mouyaq](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/mouyaq/32/6448_2.png) [@mouyaq](https://forum.opennebula.io/u/mouyaq)\
**Post date:** [March 27, 2020, 11:21am UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238/3 "2020-03-27T11:21:40Z")

</div>

Are you trying to migrate from KVM hosts to ESXi hosts? If not check @slnt_opp says.

---

<div class="post-metadata">

**Author:** ![Amit\_Kumar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/amit_kumar/32/7867_2.png) [@Amit\_Kumar](https://forum.opennebula.io/u/Amit_Kumar)\
**Post date:** [March 29, 2020, 7:52am UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238/4 "2020-03-29T07:52:55Z")

</div>

I believe it is using vcenter . I am not sure how to change it. check below snapshot template tab of VM confg from suntone.

> Blockquote User template  
> DESCRIPTION = "vCenter Template imported by OpenNebula from Cluster "  
> HYPERVISOR = “vcenter”  
> VCENTER\_CCR\_REF = “domain-c22”  
> VCENTER\_DS\_REF = “datastore-26”  
> VCENTER\_ESX\_HOST = “192.168.1.72”  
> VCENTER\_INSTANCE\_ID = “9e07a6a4-139a-47e5-ac30-b56da2b3bdd2”  
> Template  
> AUTOMATIC\_DS\_REQUIREMENTS = “("CLUSTERS/ID" @\> 0 | "CLUSTERS/ID" @\> 103)”  
> AUTOMATIC\_NIC\_REQUIREMENTS = “("CLUSTERS/ID" @\> 0 | "CLUSTERS/ID" @\> 103)”  
> AUTOMATIC\_REQUIREMENTS = “(CLUSTER\_ID = 0 | CLUSTER\_ID = 103) & !(PUBLIC\_CLOUD = YES) & !(PIN\_POLICY = PINNED)”  
> CONTEXT = [  
> DISK\_ID = “1”,  
> ETH0\_CONTEXT\_FORCE\_IPV4 = “”,  
> ETH0\_DNS = “”,  
> ETH0\_EXTERNAL = “”,  
> ETH0\_GATEWAY = “”,  
> ETH0\_GATEWAY6 = “”,  
> ETH0\_IP = “”,  
> ETH0\_IP6 = “”,  
> ETH0\_IP6\_PREFIX\_LENGTH = “”,  
> ETH0\_IP6\_ULA = “”,  
> ETH0\_MAC = “00:50:56:9e:57:0b”,  
> ETH0\_MASK = “”,  
> ETH0\_MTU = “”,  
> ETH0\_NETWORK = “”,  
> ETH0\_SEARCH\_DOMAIN = “”,  
> ETH0\_VLAN\_ID = “”,  
> ETH0\_VROUTER\_IP = “”,  
> ETH0\_VROUTER\_IP6 = “”,  
> ETH0\_VROUTER\_MANAGEMENT = “”,  
> NETWORK = “YES”,  
> SSH\_PUBLIC\_KEY = “”,  
> TARGET = “hda” ]  
> CPU = “2”  
> DISK = [  
> ALLOW\_ORPHANS = “NO”,  
> CLONE = “NO”,  
> CLONE\_TARGET = “SYSTEM”,  
> CLUSTER\_ID = “0,103”,  
> DATASTORE = “ds(IMG)”,  
> DATASTORE\_ID = “103”,  
> DEV\_PREFIX = “sd”,  
> DISK\_ID = “0”,  
> DISK\_SNAPSHOT\_TOTAL\_SIZE = “0”,  
> DISK\_TYPE = “FILE”,  
> DRIVER = “vcenter”,  
> IMAGE = “win2k12-1”,  
> IMAGE\_ID = “60”,  
> IMAGE\_STATE = “8”,  
> LN\_TARGET = “NONE”,  
> OPENNEBULA\_MANAGED = “NO”,  
> ORIGINAL\_SIZE = “30720”,  
> PERSISTENT = “YES”,  
> READONLY = “NO”,  
> SAVE = “YES”,  
> SIZE = “30720”,  
> SOURCE = “win2k12-1/win2k12-1.vmdk”,  
> TARGET = “sda”,  
> TM\_MAD = “vcenter”,  
> TYPE = “FILE”,  
> VCENTER\_DS\_REF = “datastore-26”,  
> VCENTER\_INSTANCE\_ID = “9e07a6a4-139a-47e5-ac30-b56da2b3bdd2” ]  
> GRAPHICS = [  
> LISTEN = “0.0.0.0”,  
> PORT = “6243”,  
> TYPE = “vnc” ]  
> IMPORTED = “YES”  
> MEMORY = “4096”  
> NIC = [  
> AR\_ID = “4”,  
> BRIDGE = “VM Network”,  
> BRIDGE\_TYPE = “vcenter\_port\_groups”,  
> CLUSTER\_ID = “0,103”,  
> MAC = “00:50:56:9e:57:0b”,  
> NAME = “NIC0”,  
> NETWORK = “VM Network”,  
> NETWORK\_ID = “15”,  
> NIC\_ID = “0”,  
> OPENNEBULA\_MANAGED = “NO”,  
> SECURITY\_GROUPS = “0”,  
> TARGET = “one-343-0”,  
> VCENTER\_INSTANCE\_ID = “9e07a6a4-139a-47e5-ac30-b56da2b3bdd2”,  
> VCENTER\_NET\_REF = “network-27”,  
> VCENTER\_PORTGROUP\_TYPE = “Port Group”,  
> VN\_MAD = “vcenter” ]  
> SECURITY\_GROUP\_RULE = [  
> PROTOCOL = “ALL”,  
> RULE\_TYPE = “OUTBOUND”,  
> SECURITY\_GROUP\_ID = “0”,  
> SECURITY\_GROUP\_NAME = “default” ]  
> SECURITY\_GROUP\_RULE = [  
> PROTOCOL = “ALL”,  
> RULE\_TYPE = “INBOUND”,  
> SECURITY\_GROUP\_ID = “0”,  
> SECURITY\_GROUP\_NAME = “default” ]  
> TM\_MAD\_SYSTEM = “vcenter”  
> VCPU = “2”  
> VMID = “343”

> Blockquote

---

<div class="post-metadata">

**Author:** ![slnt\_opp](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slnt_opp/32/6303_2.png) [@slnt\_opp](https://forum.opennebula.io/u/slnt_opp)\
**Post date:** [March 30, 2020, 7:51pm UTC](https://forum.opennebula.io/t/vcenter-to-opennebula-migration/8238/5 "2020-03-30T19:51:24Z")

</div>

Check host im and vm mad via onehost show, should be  
IM\_MAD=“vcenter”  
VM\_MAD=“vcenter”

And maybe datastore driver check would be useful too.
