Config virtual networt opennebula + vcenter

Hi All,

I have configured the virtual machine as follows:

  • Virtual network --> import --> find and import
  • file context.sh
    cat context.sh

    Context variables generated by OpenNebula

    DISK_ID=‘1’
    ETH0_CONTEXT_FORCE_IPV4=’’
    ETH0_DNS=‘8.8.8.8’
    ETH0_GATEWAY=‘10.10.30.1’
    ETH0_GATEWAY6=’’
    ETH0_IP=‘10.10.30.10’
    ETH0_IP6=’’
    ETH0_IP6_PREFIX_LENGTH=’’
    ETH0_IP6_ULA=’’
    ETH0_MAC=‘02:00:0a:0a:1e:0a’
    ETH0_MASK=‘255.255.255.0’
    ETH0_MTU=‘1500’
    ETH0_NETWORK=‘10.10.30.0’
    ETH0_SEARCH_DOMAIN=’’
    ETH0_VLAN_ID=’’
    ETH0_VROUTER_IP=’’
    ETH0_VROUTER_IP6=’’
    ETH0_VROUTER_MANAGEMENT=’’
    NETWORK=‘YES’
  • Create VM but vm not accept config IP - NETMASK - GATEWAY of virtual network.

Template

AUTOMATIC_DS_REQUIREMENTS = "\"CLUSTERS/ID\" @> 102"
AUTOMATIC_REQUIREMENTS = "(CLUSTER_ID = 102) & !(PUBLIC_CLOUD = YES)"
CONTEXT = [
  DISK_ID = "1",
  ETH0_CONTEXT_FORCE_IPV4 = "",
  ETH0_DNS = "8.8.8.8",
  ETH0_GATEWAY = "10.10.30.1",
  ETH0_GATEWAY6 = "",
  ETH0_IP = "10.10.30.10",
  ETH0_IP6 = "",
  ETH0_IP6_PREFIX_LENGTH = "",
  ETH0_IP6_ULA = "",
  ETH0_MAC = "02:00:0a:0a:1e:0a",
  ETH0_MASK = "255.255.255.0",
  ETH0_MTU = "1500",
  ETH0_NETWORK = "10.10.30.0",
  ETH0_SEARCH_DOMAIN = "",
  ETH0_VLAN_ID = "",
  ETH0_VROUTER_IP = "",
  ETH0_VROUTER_IP6 = "",
  ETH0_VROUTER_MANAGEMENT = "",
  NETWORK = "YES",
  TARGET = "hda" ]
CPU = "1"
DISK = [
  ALLOW_ORPHANS = "NO",
  CLONE = "YES",
  CLONE_TARGET = "SYSTEM",
  CLUSTER_ID = "102",
  DATASTORE = "datastore1 [125.212.244.219 - Datacenter] (IMG)",
  DATASTORE_ID = "104",
  DEV_PREFIX = "sd",
  DISK_ID = "0",
  DISK_SNAPSHOT_TOTAL_SIZE = "0",
  DISK_TYPE = "FILE",
  IMAGE = "vm-002_1 - datastore1 [Template 27]",
  IMAGE_ID = "17",
  IMAGE_STATE = "2",
  LN_TARGET = "NONE",
  OPENNEBULA_MANAGED = "NO",
  ORIGINAL_SIZE = "16384",
  READONLY = "NO",
  SAVE = "NO",
  SIZE = "16384",
  SOURCE = "vm-002/vm-002_1.vmdk",
  TARGET = "sda",
  TM_MAD = "vcenter",
  TYPE = "FILE",
  VCENTER_DS_REF = "datastore-11",
  VCENTER_INSTANCE_ID = "87f437c5-6656-484d-8d27-c00271502090" ]
GRAPHICS = [
  LISTEN = "0.0.0.0",
  PORT = "5955",
  TYPE = "vnc" ]
MEMORY = "2048"
NIC = [
  AR_ID = "1",
  BRIDGE = "Vlan563",
  CLUSTER_ID = "0,102",
  IP = "10.10.30.10",
  MAC = "02:00:0a:0a:1e:0a",
  NETWORK = "Vlan563 - opennebula [125.212.244.219 - Datacenter]_66bac8ea80e2",
  NETWORK_ID = "10",
  NIC_ID = "0",
  OPENNEBULA_MANAGED = "NO",
  PHYDEV = "ens192",
  SECURITY_GROUPS = "0",
  TARGET = "one-55-0",
  VCENTER_CCR_REF = "domain-c7",
  VCENTER_INSTANCE_ID = "87f437c5-6656-484d-8d27-c00271502090",
  VCENTER_NET_REF = "network-108",
  VN_MAD = "dummy" ]
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" ]
TEMPLATE_ID = "27"
VCPU = "1"
VMID = "55"

CONTEXT

DISK_ID 	1
ETH0_CONTEXT_FORCE_IPV4 	
ETH0_DNS 	8.8.8.8
ETH0_GATEWAY 	10.10.30.1
ETH0_GATEWAY6 	
ETH0_IP 	10.10.30.10
ETH0_IP6 	
ETH0_IP6_PREFIX_LENGTH 	
ETH0_IP6_ULA 	
ETH0_MAC 	02:00:0a:0a:1e:0a
ETH0_MASK 	255.255.255.0
ETH0_MTU 	1500
ETH0_NETWORK 	10.10.30.0
ETH0_SEARCH_DOMAIN 	
ETH0_VLAN_ID 	
ETH0_VROUTER_IP 	
ETH0_VROUTER_IP6 	
ETH0_VROUTER_MANAGEMENT 	
NETWORK 	YES
TARGET 	hda

please help me. Thank ALL.