07-09-2018 09:25 AM - edited 03-01-2019 04:12 AM
hey,
i'm trying to set up a VM/VNF on VMware usign ESC
i have ESC up on a VM, in sync w/ NSO
trying to configure vm_group, but getting "operation_failed: undefined" - not too informative
a working example would be a lifesaver
thanks, cheers
--z.
Solved! Go to Solution.
07-14-2018 03:13 AM
finally i have a VNF deployed, so i can answer my own question:
couple of gotha:
- no tenants on vcenter - everything is under the default (admin) tenant
- on vcenter datastore a folder called esc-ovas has to be created
- OVA file may have to be edited
remove serial console, CD-rom
align network names in OVF ?manifest?
- image under deployment/vm_group must have esc-ova specified as path
- volume under deployent/vm_group must refer to volume defined under admin tenant
yet, i had to define some size (with sizeunit) unde deployment/vm_group - no clue why
this just got me a VNF deployed and powered on
admin@ncs# show running-config devices device esc-aslab config | display xml
<config xmlns="http://tail-f.com/ns/config/1.0">
<devices xmlns="http://tail-f.com/ns/ncs">
<device>
<name>esc-aslab</name>
<config>
<esc_datamodel xmlns="http://www.cisco.com/esc/esc">
<tenants>
<tenant>
<name>admin</name>
<description>Built-in Admin Tenant</description>
<managed_resource>false</managed_resource>
<vim_mapping>true</vim_mapping>
<volumes> <==== refer to datastore on vcenter
<volume>
<name>LocalDisk600GB</name>
<size>600</size>
<sizeunit>GiB</sizeunit>
<type>local</type>
</volume>
<volume>
<name>Netapp_4TB</name>
<size>4</size>
<sizeunit>TiB</sizeunit>
<type>network</type>
</volume>
</volumes>
<deployments>
<deployment>
<name>VPAGENT-VNI3000-ESC-ASLAB</name>
<locators>
<datacenter>aslab</datacenter> <==== VDC name in vcenter
<switch_name>dvSwitch-ESC</switch_name> <==== must create a distributed switch in vcenter
</locators>
<vm_group>
<name>VPAGENT-VNI3000-ESC-ASLAB-VM</name>
<image>esc-ovas/vPag1</image> <==== esc-ovas folder must exist
<bootup_time>300</bootup_time>
<recovery_wait_time>120</recovery_wait_time>
<volumes>
<volume>
<name>LocalDisk600GB</name>
<volid>1</volid>
<size>5</size>
<sizeunit>GiB</sizeunit>
</volume>
</volumes>
<interfaces>
<interface>
<nicid>1</nicid>
<type>virtual</type>
<network>ESC-MGMT</network> <==== portgroup under distributed switch
<ip_address>192.168.0.1</ip_address>
</interface>
<interface>
<nicid>2</nicid>
<type>virtual</type>
<network>ESC-VM</network> <==== portgroup under distributed switch
<ip_address>192.168.1.1</ip_address>
</interface>
</interfaces>
<kpi_data>
<enabled>true</enabled>
<kpi>
<event_name>VM_ALIVE</event_name>
<metric_value>1</metric_value>
<metric_cond>GT</metric_cond>
<metric_type>UINT32</metric_type>
<metric_collector>
<type>ICMPPing</type>
<nicid>1</nicid>
<poll_frequency>5</poll_frequency>
<polling_unit>seconds</polling_unit>
<continuous_alarm>false</continuous_alarm>
</metric_collector>
</kpi>
</kpi_data>
<rules>
<admin_rules>
<rule>
<event_name>VM_ALIVE</event_name>
<action>ALWAYS log</action>
</rule>
</admin_rules>
</rules>
<config_data>
<configuration>
<dst>day0-config</dst>
<file>http://host/path/vpagent-VNI3000-day0-confg.txt</file>
<variable>
<name>HOSTNAME</name>
<val>VPAGENT-VNI3000-ESC-ASLAB</val>
</variable>
</configuration>
</config_data>
<scaling>
<min_active>1</min_active>
<max_active>1</max_active>
<elastic>true</elastic>
</scaling>
<placement>
<type>zone_host</type>
<zone>infra</zone>
</placement>
</vm_group>
</deployment>
</deployments>
</tenant>
</tenants>
<images>
<image>
<name>vPag1</name>
<src>file://tmp/vPag1.ova</src>
<size>52</size>
<sizeunit>MiB</sizeunit>
<disk_format>vmdk</disk_format>
<container_format>ova</container_format>
<serial_console>false</serial_console>
<disk_bus>virtio</disk_bus>
<visibility>public</visibility>
<locators>
<datacenter>aslab</datacenter>
<switch_name>dvSwitch-ESC</switch_name>
</locators>
</image>
</images>
</esc_datamodel>
<esc_system_config xmlns="http://www.cisco.com/esc/esc">
<vim_connectors>
<default_vim_connector>default_vmware_vim</default_vim_connector>
<vim_connector>
<id>default_vmware_vim</id>
<type>VMWARE_VSPHERE</type>
<properties>
<property>
<name>vcenter_ip</name>
<value>10.10.10.10</value>
</property>
<property>
<name>vcenter_port</name>
<value>80</value>
</property>
</properties>
<users>
<user>
<id>user-name</id>
<credentials>
<properties>
<property>
<name>vcenter_password</name>
<value>password</value>
</property>
</properties>
</credentials>
</user>
</users>
</vim_connector>
</vim_connectors>
</esc_system_config>
</config>
</device>
</devices>
</config>
admin@ncs#
07-14-2018 03:13 AM
finally i have a VNF deployed, so i can answer my own question:
couple of gotha:
- no tenants on vcenter - everything is under the default (admin) tenant
- on vcenter datastore a folder called esc-ovas has to be created
- OVA file may have to be edited
remove serial console, CD-rom
align network names in OVF ?manifest?
- image under deployment/vm_group must have esc-ova specified as path
- volume under deployent/vm_group must refer to volume defined under admin tenant
yet, i had to define some size (with sizeunit) unde deployment/vm_group - no clue why
this just got me a VNF deployed and powered on
admin@ncs# show running-config devices device esc-aslab config | display xml
<config xmlns="http://tail-f.com/ns/config/1.0">
<devices xmlns="http://tail-f.com/ns/ncs">
<device>
<name>esc-aslab</name>
<config>
<esc_datamodel xmlns="http://www.cisco.com/esc/esc">
<tenants>
<tenant>
<name>admin</name>
<description>Built-in Admin Tenant</description>
<managed_resource>false</managed_resource>
<vim_mapping>true</vim_mapping>
<volumes> <==== refer to datastore on vcenter
<volume>
<name>LocalDisk600GB</name>
<size>600</size>
<sizeunit>GiB</sizeunit>
<type>local</type>
</volume>
<volume>
<name>Netapp_4TB</name>
<size>4</size>
<sizeunit>TiB</sizeunit>
<type>network</type>
</volume>
</volumes>
<deployments>
<deployment>
<name>VPAGENT-VNI3000-ESC-ASLAB</name>
<locators>
<datacenter>aslab</datacenter> <==== VDC name in vcenter
<switch_name>dvSwitch-ESC</switch_name> <==== must create a distributed switch in vcenter
</locators>
<vm_group>
<name>VPAGENT-VNI3000-ESC-ASLAB-VM</name>
<image>esc-ovas/vPag1</image> <==== esc-ovas folder must exist
<bootup_time>300</bootup_time>
<recovery_wait_time>120</recovery_wait_time>
<volumes>
<volume>
<name>LocalDisk600GB</name>
<volid>1</volid>
<size>5</size>
<sizeunit>GiB</sizeunit>
</volume>
</volumes>
<interfaces>
<interface>
<nicid>1</nicid>
<type>virtual</type>
<network>ESC-MGMT</network> <==== portgroup under distributed switch
<ip_address>192.168.0.1</ip_address>
</interface>
<interface>
<nicid>2</nicid>
<type>virtual</type>
<network>ESC-VM</network> <==== portgroup under distributed switch
<ip_address>192.168.1.1</ip_address>
</interface>
</interfaces>
<kpi_data>
<enabled>true</enabled>
<kpi>
<event_name>VM_ALIVE</event_name>
<metric_value>1</metric_value>
<metric_cond>GT</metric_cond>
<metric_type>UINT32</metric_type>
<metric_collector>
<type>ICMPPing</type>
<nicid>1</nicid>
<poll_frequency>5</poll_frequency>
<polling_unit>seconds</polling_unit>
<continuous_alarm>false</continuous_alarm>
</metric_collector>
</kpi>
</kpi_data>
<rules>
<admin_rules>
<rule>
<event_name>VM_ALIVE</event_name>
<action>ALWAYS log</action>
</rule>
</admin_rules>
</rules>
<config_data>
<configuration>
<dst>day0-config</dst>
<file>http://host/path/vpagent-VNI3000-day0-confg.txt</file>
<variable>
<name>HOSTNAME</name>
<val>VPAGENT-VNI3000-ESC-ASLAB</val>
</variable>
</configuration>
</config_data>
<scaling>
<min_active>1</min_active>
<max_active>1</max_active>
<elastic>true</elastic>
</scaling>
<placement>
<type>zone_host</type>
<zone>infra</zone>
</placement>
</vm_group>
</deployment>
</deployments>
</tenant>
</tenants>
<images>
<image>
<name>vPag1</name>
<src>file://tmp/vPag1.ova</src>
<size>52</size>
<sizeunit>MiB</sizeunit>
<disk_format>vmdk</disk_format>
<container_format>ova</container_format>
<serial_console>false</serial_console>
<disk_bus>virtio</disk_bus>
<visibility>public</visibility>
<locators>
<datacenter>aslab</datacenter>
<switch_name>dvSwitch-ESC</switch_name>
</locators>
</image>
</images>
</esc_datamodel>
<esc_system_config xmlns="http://www.cisco.com/esc/esc">
<vim_connectors>
<default_vim_connector>default_vmware_vim</default_vim_connector>
<vim_connector>
<id>default_vmware_vim</id>
<type>VMWARE_VSPHERE</type>
<properties>
<property>
<name>vcenter_ip</name>
<value>10.10.10.10</value>
</property>
<property>
<name>vcenter_port</name>
<value>80</value>
</property>
</properties>
<users>
<user>
<id>user-name</id>
<credentials>
<properties>
<property>
<name>vcenter_password</name>
<value>password</value>
</property>
</properties>
</credentials>
</user>
</users>
</vim_connector>
</vim_connectors>
</esc_system_config>
</config>
</device>
</devices>
</config>
admin@ncs#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide