Vcenter to opennebula migration

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:

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

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

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

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.