Error while deploying EC2 via OpenNebula - iptables v1.6.1: interface name `--physdev-is-bridged' must be shorter than IFNAMSIZ (15)

Mon Apr 27 16:00:14 2020 [Z0][VM][I]: New state is ACTIVE
Mon Apr 27 16:00:14 2020 [Z0][VM][I]: New LCM state is PROLOG
Mon Apr 27 16:00:14 2020 [Z0][VM][I]: New LCM state is BOOT
Mon Apr 27 16:00:14 2020 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/16/deployment.0
Mon Apr 27 16:00:14 2020 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Apr 27 16:00:38 2020 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Mon Apr 27 16:00:38 2020 [Z0][VMM][I]: Command execution failed (exit code: 1): /var/lib/one/remotes/vnm/802.1Q/post PFZNPjxJRD4xNjwvSUQ+PERFUExPWV9JRC8+PFVTRVJfVEVNUExBVEU+PElOUFVUU19PUkRFUj48IVtDREFUQVtdXT48L0lOUFVUU19PUkRFUj48TUVNT1JZX1VOSVRfQ09TVD48IVtDREFUQVtNQl1dPjwvTUVNT1JZX1VOSVRfQ09TVD48UFVCTElDX0NMT1VEPjxBTUk+PCFbQ0RBVEFbYW1pLTA2MjBkMTJhOWNmNzc3Yzg3XV0+PC9BTUk+PEFWQUlMQUJJTElUWVpPTkU+PCFbQ0RBVEFbYXAtc291dGgtMWJdXT48L0FWQUlMQUJJTElUWVpPTkU+PElOU1RBTkNFVFlQRT48IVtDREFUQVt0Mi5taWNyb11dPjwvSU5TVEFOQ0VUWVBFPjxLRVlQQUlSPjwhW0NEQVRBW2VjMl1dPjwvS0VZUEFJUj48VFlQRT48IVtDREFUQVtlYzJdXT48L1RZUEU+PC9QVUJMSUNfQ0xPVUQ+PC9VU0VSX1RFTVBMQVRFPjxURU1QTEFURT48U0VDVVJJVFlfR1JPVVBfUlVMRT48UFJPVE9DT0w+PCFbQ0RBVEFbQUxMXV0+PC9QUk9UT0NPTD48UlVMRV9UWVBFPjwhW0NEQVRBW09VVEJ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wvTkVUV09SSz48TkVUV09SS19JRD48IVtDREFUQVsxXV0+PC9ORVRXT1JLX0lEPjxOSUNfSUQ+PCFbQ0RBVEFbMF1dPjwvTklDX0lEPjxQSFlERVY+PCFbQ0RBVEFbZXRoMF1dPjwvUEhZREVWPjxTRUNVUklUWV9HUk9VUFM+PCFbQ0RBVEFbMF1dPjwvU0VDVVJJVFlfR1JPVVBTPjxUQVJHRVQ+PCFbQ0RBVEFbb25lLTE2LTBdXT48L1RBUkdFVD48VkxBTl9JRD48IVtDREFUQVszXV0+PC9WTEFOX0lEPjxWTl9NQUQ+PCFbQ0RBVEFbODAyLjFRXV0+PC9WTl9NQUQ+PC9OSUM+PC9URU1QTEFURT48L1ZNPg== ‘i-004eaac423eaf4fbb’
Mon Apr 27 16:00:38 2020 [Z0][VMM][I]: iptables v1.6.1: interface name --physdev-is-bridged' must be shorter than IFNAMSIZ (15) Mon Apr 27 16:00:38 2020 [Z0][VMM][I]: Try iptables -h’ or ‘iptables --help’ for more information.
Mon Apr 27 16:00:38 2020 [Z0][VMM][E]: post: Command Error: sudo iptables -I opennebula -m physdev --physdev-out --physdev-is-bridged -j one-16-0-i
Mon Apr 27 16:00:38 2020 [Z0][VMM][E]: post: ["/var/lib/one/remotes/vnm/command.rb:62:in block in run!'", "/var/lib/one/remotes/vnm/command.rb:59:in each’", “/var/lib/one/remotes/vnm/command.rb:59:in run!'", "/var/lib/one/remotes/vnm/security_groups_iptables.rb:485:in nic_pre’”, “/var/lib/one/remotes/vnm/sg_driver.rb:92:in block in activate'", "/var/lib/one/remotes/vnm/vnm_driver.rb:79:in block in process’”, “/var/lib/one/remotes/vnm/vm.rb:61:in block in each_nic'", "/var/lib/one/remotes/vnm/vm.rb:60:in each’”, “/var/lib/one/remotes/vnm/vm.rb:60:in each_nic'", "/var/lib/one/remotes/vnm/vnm_driver.rb:82:in process’”, “/var/lib/one/remotes/vnm/sg_driver.rb:84:in activate'", "/var/lib/one/remotes/vnm/802.1Q/post:32:in '”]
Mon Apr 27 16:03:03 2020 [Z0][VMM][I]: Successfully execute virtualization driver operation: cancel.
Mon Apr 27 16:03:03 2020 [Z0][VMM][I]: Failed to execute network driver operation: post.
Mon Apr 27 16:03:03 2020 [Z0][VMM][E]: Error deploying virtual machine: 802.1Q: -
Mon Apr 27 16:03:03 2020 [Z0][VM][I]: New LCM state is BOOT_FAILURE

I suffer the same issue. It seems there is a bug in this file:
/var/lib/one/remotes/vnm/security_groups_iptables.rb

there is a line in which it is included the variable #{nic[:tap]} but apparently that variable has no value, and therefore the execution of the command fails.

I do not have a solution for that, I just replaced that value by “minionebr” and at least the VM gets deployed, but this is a workaround that might have side effects.

Someone from Opennebula should look at it to fix it.

Hi,

It’s seems that the tap has not been created and we want to figure out why. @Sujata_Kale, we would need you to send the following information:

  • /var/lib/one/vms/16/deployment.0 file
  • Output of onevm show -x 16
  • Output of onevnet show -x 1

Cheers.

Hi Ricardo,

The last command returns an error:

rafa@ubuntu-surface:~/Documents$ onevnet show -x 1
[one.vn.info] Error getting virtual network [1].

I cannot attach files, so that I paste here the other data requested:

rafa@ubuntu-surface:~/Documents$ onevm show -x 16
<VM>
  <ID>16</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>consul server</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <LAST_POLL>1588160335</LAST_POLL>
  <STATE>6</STATE>
  <LCM_STATE>0</LCM_STATE>
  <PREV_STATE>6</PREV_STATE>
  <PREV_LCM_STATE>0</PREV_LCM_STATE>
  <RESCHED>0</RESCHED>
  <STIME>1588093503</STIME>
  <ETIME>1588160336</ETIME>
  <DEPLOY_ID>one-16</DEPLOY_ID>
  <MONITORING>
    <CPU><![CDATA[0.0]]></CPU>
    <DISKRDBYTES><![CDATA[1912984624]]></DISKRDBYTES>
    <DISKRDIOPS><![CDATA[85252]]></DISKRDIOPS>
    <DISKWRBYTES><![CDATA[2956776448]]></DISKWRBYTES>
    <DISKWRIOPS><![CDATA[47492]]></DISKWRIOPS>
    <DISK_SIZE>
      <ID><![CDATA[0]]></ID>
      <SIZE><![CDATA[1284]]></SIZE>
    </DISK_SIZE>
    <DISK_SIZE>
      <ID><![CDATA[1]]></ID>
      <SIZE><![CDATA[1]]></SIZE>
    </DISK_SIZE>
    <MEMORY><![CDATA[0]]></MEMORY>
    <NETRX><![CDATA[69542270]]></NETRX>
    <NETTX><![CDATA[2404383]]></NETTX>
    <SNAPSHOT_SIZE>
      <DISK_ID><![CDATA[0]]></DISK_ID>
      <ID><![CDATA[0]]></ID>
      <SIZE><![CDATA[1284]]></SIZE>
    </SNAPSHOT_SIZE>
    <STATE><![CDATA[a]]></STATE>
  </MONITORING>
  <TEMPLATE>
    <AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_DS_REQUIREMENTS>
    <AUTOMATIC_NIC_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_NIC_REQUIREMENTS>
    <AUTOMATIC_REQUIREMENTS><![CDATA[(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)]]></AUTOMATIC_REQUIREMENTS>
    <CONTEXT>
      <DISK_ID><![CDATA[1]]></DISK_ID>
      <ETH0_CONTEXT_FORCE_IPV4><![CDATA[]]></ETH0_CONTEXT_FORCE_IPV4>
      <ETH0_DNS><![CDATA[172.16.100.1]]></ETH0_DNS>
      <ETH0_EXTERNAL><![CDATA[]]></ETH0_EXTERNAL>
      <ETH0_GATEWAY><![CDATA[172.16.100.1]]></ETH0_GATEWAY>
      <ETH0_GATEWAY6><![CDATA[]]></ETH0_GATEWAY6>
      <ETH0_IP><![CDATA[172.16.100.2]]></ETH0_IP>
      <ETH0_IP6><![CDATA[]]></ETH0_IP6>
      <ETH0_IP6_PREFIX_LENGTH><![CDATA[]]></ETH0_IP6_PREFIX_LENGTH>
      <ETH0_IP6_ULA><![CDATA[]]></ETH0_IP6_ULA>
      <ETH0_MAC><![CDATA[02:00:ac:10:64:02]]></ETH0_MAC>
      <ETH0_MASK><![CDATA[]]></ETH0_MASK>
      <ETH0_MTU><![CDATA[]]></ETH0_MTU>
      <ETH0_NETWORK><![CDATA[]]></ETH0_NETWORK>
      <ETH0_SEARCH_DOMAIN><![CDATA[]]></ETH0_SEARCH_DOMAIN>
      <ETH0_VLAN_ID><![CDATA[]]></ETH0_VLAN_ID>
      <ETH0_VROUTER_IP><![CDATA[]]></ETH0_VROUTER_IP>
      <ETH0_VROUTER_IP6><![CDATA[]]></ETH0_VROUTER_IP6>
      <ETH0_VROUTER_MANAGEMENT><![CDATA[]]></ETH0_VROUTER_MANAGEMENT>
      <NETWORK><![CDATA[YES]]></NETWORK>
      <ONEGATE_ENDPOINT><![CDATA[http://172.16.100.1:5030]]></ONEGATE_ENDPOINT>
      <PASSWORD><![CDATA[opennebula]]></PASSWORD>
      <SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDzxuU0uHr+A7gbz/W8oLirpUZk7u0/Io6PuJzO5Y9qpKx+RL9TF2jPA3Hn5XG7M7nIATrgcd+N8kN7oP908anfM07BHjwcr2d15KivjjqFTvVJch8bj+dTWNzWSo1iXoo93TghU8fvb7Hq34/5RiaAUz4KSRPmD+PE6nQ0avCBCi8FeqiTaYAoZggq0vVqitpXl8HAfFNpDR8qfnb6pillquTxI5I2L9FfNx1N+jIv2mMyPsdD72YluoGfUNrGfwahNG2H8gIcmV8Wo6tIQ4YQ9DE0KffZ1ir15TcDOkW6nIj2qlcAT2bxaffxjiIHB1/kaHuu0o1p1rTqw/zQc/mR oneadmin@ubuntu-surface
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5PBE3MGr69mQl3lJi6QrlJ9LFLBQkdNW+MPmJgG68gQeq5Cki23bsV9WDZ82/f56Jl6MdX00SONTJktBNoKZREkRVaCQ/E104yBxtTNJY1bgeW6By3JhHHjjvhxTwpYVMqQ4+a454G5LLS5QXsMZlgh6C4ojVP5bEMFL0DSpN7WCbfXEwABrOxrgkYAzPK/oPmg/V+T98MDDgmoLnXh6jcO3R14iMDY7+vmJdK0wr+ZqeivoRpDvmVWMcv599nMaxeRP0TvAEeSPiigG+aGB1BHMOGkGqN4DrMEtIXe73c7W2OUGWa9coFf9VuNikPDueZhiVdzNU7XWu3x5zBZYT root@ubuntu-surface]]></SSH_PUBLIC_KEY>
      <TARGET><![CDATA[hda]]></TARGET>
      <TOKEN><![CDATA[YES]]></TOKEN>
      <VMID><![CDATA[16]]></VMID>
    </CONTEXT>
    <CPU><![CDATA[1]]></CPU>
    <CREATED_BY><![CDATA[0]]></CREATED_BY>
    <DISK>
      <ALLOW_ORPHANS><![CDATA[NO]]></ALLOW_ORPHANS>
      <CLONE><![CDATA[YES]]></CLONE>
      <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
      <CLUSTER_ID><![CDATA[0]]></CLUSTER_ID>
      <DATASTORE><![CDATA[default]]></DATASTORE>
      <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
      <DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX>
      <DISK_ID><![CDATA[0]]></DISK_ID>
      <DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE>
      <DRIVER><![CDATA[qcow2]]></DRIVER>
      <IMAGE><![CDATA[Ubuntu 18.04]]></IMAGE>
      <IMAGE_ID><![CDATA[1]]></IMAGE_ID>
      <IMAGE_STATE><![CDATA[2]]></IMAGE_STATE>
      <LN_TARGET><![CDATA[NONE]]></LN_TARGET>
      <ORIGINAL_SIZE><![CDATA[2252]]></ORIGINAL_SIZE>
      <READONLY><![CDATA[NO]]></READONLY>
      <SAVE><![CDATA[NO]]></SAVE>
      <SIZE><![CDATA[2252]]></SIZE>
      <SOURCE><![CDATA[/var/lib/one//datastores/1/1efaaa429ad06d72d642f5404deaf96a]]></SOURCE>
      <TARGET><![CDATA[vda]]></TARGET>
      <TM_MAD><![CDATA[qcow2]]></TM_MAD>
      <TYPE><![CDATA[FILE]]></TYPE>
    </DISK>
    <GRAPHICS>
      <LISTEN><![CDATA[0.0.0.0]]></LISTEN>
      <TYPE><![CDATA[VNC]]></TYPE>
    </GRAPHICS>
    <MEMORY><![CDATA[768]]></MEMORY>
    <NIC>
      <AR_ID><![CDATA[0]]></AR_ID>
      <BRIDGE><![CDATA[minionebr]]></BRIDGE>
      <BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE>
      <CLUSTER_ID><![CDATA[0]]></CLUSTER_ID>
      <IP><![CDATA[172.16.100.2]]></IP>
      <MAC><![CDATA[02:00:ac:10:64:02]]></MAC>
      <NAME><![CDATA[NIC0]]></NAME>
      <NETWORK><![CDATA[vnet]]></NETWORK>
      <NETWORK_ID><![CDATA[0]]></NETWORK_ID>
      <NIC_ID><![CDATA[0]]></NIC_ID>
      <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
      <TARGET><![CDATA[one-16-0]]></TARGET>
      <VN_MAD><![CDATA[fw]]></VN_MAD>
    </NIC>
    <OS>
      <ARCH><![CDATA[x86_64]]></ARCH>
      <BOOT><![CDATA[]]></BOOT>
    </OS>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[OUTBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[INBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <TEMPLATE_ID><![CDATA[1]]></TEMPLATE_ID>
    <TM_MAD_SYSTEM><![CDATA[qcow2]]></TM_MAD_SYSTEM>
    <VMID><![CDATA[16]]></VMID>
  </TEMPLATE>
  <USER_TEMPLATE>
    <INFO><![CDATA[Please do not use this VM Template for vCenter VMs. Refer to the documentation https://bit.ly/37NcJ0Y]]></INFO>
    <INPUTS_ORDER><![CDATA[]]></INPUTS_ORDER>
    <LOGO><![CDATA[images/logos/ubuntu.png]]></LOGO>
    <LXD_SECURITY_PRIVILEGED><![CDATA[true]]></LXD_SECURITY_PRIVILEGED>
    <MEMORY_UNIT_COST><![CDATA[MB]]></MEMORY_UNIT_COST>
    <SCHED_REQUIREMENTS><![CDATA[HYPERVISOR!="vcenter"]]></SCHED_REQUIREMENTS>
  </USER_TEMPLATE>
  <HISTORY_RECORDS>
    <HISTORY>
      <OID>16</OID>
      <SEQ>0</SEQ>
      <HOSTNAME>localhost</HOSTNAME>
      <HID>0</HID>
      <CID>0</CID>
      <STIME>1588093508</STIME>
      <ETIME>1588154704</ETIME>
      <VM_MAD><![CDATA[kvm]]></VM_MAD>
      <TM_MAD><![CDATA[qcow2]]></TM_MAD>
      <DS_ID>0</DS_ID>
      <PSTIME>1588093508</PSTIME>
      <PETIME>1588093509</PETIME>
      <RSTIME>1588093509</RSTIME>
      <RETIME>1588154704</RETIME>
      <ESTIME>0</ESTIME>
      <EETIME>0</EETIME>
      <ACTION>44</ACTION>
      <UID>-1</UID>
      <GID>-1</GID>
      <REQUEST_ID>-1</REQUEST_ID>
    </HISTORY>
    <HISTORY>
      <OID>16</OID>
      <SEQ>1</SEQ>
      <HOSTNAME>localhost</HOSTNAME>
      <HID>0</HID>
      <CID>0</CID>
      <STIME>1588155294</STIME>
      <ETIME>1588160336</ETIME>
      <VM_MAD><![CDATA[kvm]]></VM_MAD>
      <TM_MAD><![CDATA[qcow2]]></TM_MAD>
      <DS_ID>0</DS_ID>
      <PSTIME>0</PSTIME>
      <PETIME>0</PETIME>
      <RSTIME>1588155294</RSTIME>
      <RETIME>1588160335</RETIME>
      <ESTIME>1588160335</ESTIME>
      <EETIME>1588160336</EETIME>
      <ACTION>27</ACTION>
      <UID>0</UID>
      <GID>0</GID>
      <REQUEST_ID>6000</REQUEST_ID>
    </HISTORY>
  </HISTORY_RECORDS>
</VM>

And…

rafa@ubuntu-surface:~/Documents$ sudo cat /var/lib/one/vms/16/deployment.0
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
	<name>one-16</name>
	<title>consul server</title>
	<cputune>
		<shares>1024</shares>
	</cputune>
	<memory>786432</memory>
	<os>
		<type arch='x86_64'>hvm</type>
	</os>
	<devices>
		<emulator><![CDATA[/usr/bin/qemu-system-x86_64]]></emulator>
		<disk type='file' device='disk'>
			<source file='/var/lib/one//datastores/0/16/disk.0'/>
			<target dev='vda' bus='virtio'/>
			<driver name='qemu' type='qcow2' cache='none'/>
		</disk>
		<disk type='file' device='cdrom'>
			<source file='/var/lib/one//datastores/0/16/disk.1'/>
			<target dev='hda' bus='ide'/>
			<readonly/>
			<driver name='qemu' type='raw'/>
		</disk>
		<interface type='bridge'>
			<source bridge='minionebr'/>
			<mac address='02:00:ac:10:64:02'/>
			<target dev='one-16-0'/>
		</interface>
		<graphics type='vnc' listen='0.0.0.0' port='5916'/>
	</devices>
	<features>
		<acpi/>
	</features>
	<metadata>
		<one:vm xmlns:one="http://opennebula.org/xmlns/libvirt/1.0">
			<one:system_datastore><![CDATA[/var/lib/one//datastores/0/16]]></one:system_datastore>
			<one:name><![CDATA[consul server]]></one:name>
			<one:uname><![CDATA[oneadmin]]></one:uname>
			<one:uid>0</one:uid>
			<one:gname><![CDATA[oneadmin]]></one:gname>
			<one:gid>0</one:gid>
			<one:opennebula_version>5.10.1</one:opennebula_version>
			<one:stime>1588093503</one:stime>
			<one:deployment_time>1588093509</one:deployment_time>
		</one:vm>
	</metadata>
</domain>

Thank you!

Hi @rcampuz,

I asked for the information related to the specific deployment of @Sujata_Kale. In your case, I would need the same information:

  • /var/lib/one/vms/<VM_ID>/deployment.0 file
  • Output of onevm show -x <VM_ID>
  • Output of onevnet show -x <VNET_ID>

Being VM_ID, the id of your problematic VM; and VNET_ID, the network id of the network in which the VM is attached to. The log snippet (oned.log) when you get the issue is also useful.

OK, sorry, there you go:

rafa@ubuntu-surface : ~ $ sudo cat /var/lib/one/vms/244/deployment.0

<VM><ID>244</ID><UID>0</UID><GID>0</GID><UNAME>oneadmin</UNAME><GNAME>oneadmin</GNAME><NAME>Consul Server-244</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M>1</OWNER_M><OWNER_A>0</OWNER_A><GROUP_U>0</GROUP_U><GROUP_M>0</GROUP_M><GROUP_A>0</GROUP_A><OTHER_U>0</OTHER_U><OTHER_M>0</OTHER_M><OTHER_A>0</OTHER_A></PERMISSIONS><LAST_POLL>0</LAST_POLL><STATE>3</STATE><LCM_STATE>2</LCM_STATE><PREV_STATE>3</PREV_STATE><PREV_LCM_STATE>2</PREV_LCM_STATE><RESCHED>0</RESCHED><STIME>1590222209</STIME><ETIME>0</ETIME><DEPLOY_ID></DEPLOY_ID><MONITORING></MONITORING><TEMPLATE><AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_DS_REQUIREMENTS><AUTOMATIC_NIC_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_NIC_REQUIREMENTS><AUTOMATIC_REQUIREMENTS><![CDATA[(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) | (PUBLIC_CLOUD = YES & (HYPERVISOR = ec2))]]></AUTOMATIC_REQUIREMENTS><CONTEXT><DISK_ID><![CDATA[1]]></DISK_ID><ETH0_CONTEXT_FORCE_IPV4><![CDATA[]]></ETH0_CONTEXT_FORCE_IPV4><ETH0_DNS><![CDATA[172.16.100.1]]></ETH0_DNS><ETH0_EXTERNAL><![CDATA[]]></ETH0_EXTERNAL><ETH0_GATEWAY><![CDATA[172.16.100.1]]></ETH0_GATEWAY><ETH0_GATEWAY6><![CDATA[]]></ETH0_GATEWAY6><ETH0_IP><![CDATA[172.16.100.2]]></ETH0_IP><ETH0_IP6><![CDATA[]]></ETH0_IP6><ETH0_IP6_PREFIX_LENGTH><![CDATA[]]></ETH0_IP6_PREFIX_LENGTH><ETH0_IP6_ULA><![CDATA[]]></ETH0_IP6_ULA><ETH0_MAC><![CDATA[02:00:ac:10:64:02]]></ETH0_MAC><ETH0_MASK><![CDATA[]]></ETH0_MASK><ETH0_MTU><![CDATA[]]></ETH0_MTU><ETH0_NETWORK><![CDATA[]]></ETH0_NETWORK><ETH0_SEARCH_DOMAIN><![CDATA[]]></ETH0_SEARCH_DOMAIN><ETH0_VLAN_ID><![CDATA[]]></ETH0_VLAN_ID><ETH0_VROUTER_IP><![CDATA[]]></ETH0_VROUTER_IP><ETH0_VROUTER_IP6><![CDATA[]]></ETH0_VROUTER_IP6><ETH0_VROUTER_MANAGEMENT><![CDATA[]]></ETH0_VROUTER_MANAGEMENT><NETWORK><![CDATA[YES]]></NETWORK><ONEGATE_ENDPOINT><![CDATA[http://172.16.100.1:5030]]></ONEGATE_ENDPOINT><PASSWORD><![CDATA[opennebula]]></PASSWORD><SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDzxuU0uHr+A7gbz/W8oLirpUZk7u0/Io6PuJzO5Y9qpKx+RL9TF2jPA3Hn5XG7M7nIATrgcd+N8kN7oP908anfM07BHjwcr2d15KivjjqFTvVJch8bj+dTWNzWSo1iXoo93TghU8fvb7Hq34/5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GFydC5zaCIgfCBjcm9udGFiIC11IHJvb3QgLQplY2hvICJob3N0bmFtZWN0bCBzZXQtaG9zdG5hbWUgY29uc3VsLXNlcnZlciIgPiAvcm9vdC9zdGFydC5zaAplY2hvICIvdXNyL2xvY2FsL2Jpbi9jb25zdWwgYWdlbnQgLWFkdmVydGlzZT0xMDkuOTguMTM2LjE2OCAtc2VydmVyIC1ib290c3RyYXAtZXhwZWN0IDEgLXVpIC1kYXRhLWRpciAvdmFyL2xpYi9jb25zdWwvIC1jb25maWctZGlyIC9ldGMvY29uc3VsLmQvICYiID4+IC9yb290L3N0YXJ0LnNoCmNobW9kICt4IC9yb290L3N0YXJ0LnNoCi9yb290L3N0YXJ0LnNoCmVjaG8gIjEiID4gL3Jvb3QvZG9uZQ==]]></START_SCRIPT_BASE64><TARGET><![CDATA[hda]]></TARGET><TOKEN><![CDATA[YES]]></TOKEN><VMID><![CDATA[244]]></VMID></CONTEXT><CPU><![CDATA[1]]></CPU><CREATED_BY><![CDATA[0]]></CREATED_BY><DISK><ALLOW_ORPHANS><![CDATA[NO]]></ALLOW_ORPHANS><CLONE><![CDATA[YES]]></CLONE><CLONE_TARGET><![CDATA[]]></CLONE_TARGET><CLUSTER_ID><![CDATA[0]]></CLUSTER_ID><DATASTORE><![CDATA[default]]></DATASTORE><DATASTORE_ID><![CDATA[1]]></DATASTORE_ID><DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX><DISK_ID><![CDATA[0]]></DISK_ID><DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE><DISK_TYPE><![CDATA[]]></DISK_TYPE><DRIVER><![CDATA[qcow2]]></DRIVER><IMAGE><![CDATA[Ubuntu 18.04]]></IMAGE><IMAGE_ID><![CDATA[11]]></IMAGE_ID><IMAGE_STATE><![CDATA[2]]></IMAGE_STATE><LN_TARGET><![CDATA[]]></LN_TARGET><ORIGINAL_SIZE><![CDATA[2252]]></ORIGINAL_SIZE><READONLY><![CDATA[NO]]></READONLY><SAVE><![CDATA[NO]]></SAVE><SIZE><![CDATA[2252]]></SIZE><SOURCE><![CDATA[/var/lib/one//datastores/1/d351830ef88b0918507358ede716071a]]></SOURCE><TARGET><![CDATA[vda]]></TARGET><TM_MAD><![CDATA[qcow2]]></TM_MAD><TM_MAD_SYSTEM><![CDATA[]]></TM_MAD_SYSTEM><TYPE><![CDATA[FILE]]></TYPE></DISK><GRAPHICS><LISTEN><![CDATA[0.0.0.0]]></LISTEN><PORT><![CDATA[6144]]></PORT><TYPE><![CDATA[VNC]]></TYPE></GRAPHICS><MEMORY><![CDATA[768]]></MEMORY><NIC><AR_ID><![CDATA[0]]></AR_ID><BRIDGE><![CDATA[minionebr]]></BRIDGE><BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE><CLUSTER_ID><![CDATA[0]]></CLUSTER_ID><IP><![CDATA[172.16.100.2]]></IP><MAC><![CDATA[02:00:ac:10:64:02]]></MAC><NAME><![CDATA[NIC0]]></NAME><NETWORK><![CDATA[vnet]]></NETWORK><NETWORK_ID><![CDATA[0]]></NETWORK_ID><NIC_ID><![CDATA[0]]></NIC_ID><SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS><TARGET><![CDATA[one-244-0]]></TARGET><VN_MAD><![CDATA[fw]]></VN_MAD></NIC><OS><ARCH><![CDATA[x86_64]]></ARCH><BOOT><![CDATA[]]></BOOT></OS><SECURITY_GROUP_RULE><PROTOCOL><![CDATA[ALL]]></PROTOCOL><RULE_TYPE><![CDATA[OUTBOUND]]></RULE_TYPE><SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID><SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME></SECURITY_GROUP_RULE><SECURITY_GROUP_RULE><PROTOCOL><![CDATA[ALL]]></PROTOCOL><RULE_TYPE><![CDATA[INBOUND]]></RULE_TYPE><SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID><SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME></SECURITY_GROUP_RULE><TEMPLATE_ID><![CDATA[12]]></TEMPLATE_ID><TM_MAD_SYSTEM><![CDATA[]]></TM_MAD_SYSTEM><VCPU><![CDATA[1]]></VCPU><VMID><![CDATA[244]]></VMID></TEMPLATE><USER_TEMPLATE><INFO><![CDATA[Please do not use this VM Template for vCenter VMs. Refer to the documentation https://bit.ly/37NcJ0Y]]></INFO><INPUTS_ORDER><![CDATA[]]></INPUTS_ORDER><LOGO><![CDATA[images/logos/ubuntu.png]]></LOGO><LXD_SECURITY_PRIVILEGED><![CDATA[true]]></LXD_SECURITY_PRIVILEGED><MEMORY_UNIT_COST><![CDATA[MB]]></MEMORY_UNIT_COST><PUBLIC_CLOUD><AMI><![CDATA[ami-0e01323b8801dd986]]></AMI><ELASTICIP><![CDATA[18.157.59.231]]></ELASTICIP><INSTANCETYPE><![CDATA[t2.micro]]></INSTANCETYPE><KEYPAIR><![CDATA[ec2EM]]></KEYPAIR><SECURITYGROUPIDS><![CDATA[sg-e67f0d9f]]></SECURITYGROUPIDS><TYPE><![CDATA[ec2]]></TYPE></PUBLIC_CLOUD><SCHED_REQUIREMENTS><![CDATA[ID="4"]]></SCHED_REQUIREMENTS></USER_TEMPLATE><HISTORY_RECORDS><HISTORY><OID>244</OID><SEQ>0</SEQ><HOSTNAME>ec2</HOSTNAME><HID>4</HID><CID>0</CID><STIME>1590222212</STIME><ETIME>0</ETIME><VM_MAD><![CDATA[ec2]]></VM_MAD><TM_MAD><![CDATA[]]></TM_MAD><DS_ID>-1</DS_ID><PSTIME>1590222212</PSTIME><PETIME>1590222212</PETIME><RSTIME>1590222212</RSTIME><RETIME>0</RETIME><ESTIME>0</ESTIME><EETIME>0</EETIME><ACTION>0</ACTION><UID>-1</UID><GID>-1</GID><REQUEST_ID>-1</REQUEST_ID></HISTORY></HISTORY_RECORDS></VM>

and…

rafa@ubuntu-surface:~$ onevm show -x 244

<VM>
  <ID>244</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>Consul Server-244</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <LAST_POLL>0</LAST_POLL>
  <STATE>3</STATE>
  <LCM_STATE>36</LCM_STATE>
  <PREV_STATE>3</PREV_STATE>
  <PREV_LCM_STATE>36</PREV_LCM_STATE>
  <RESCHED>0</RESCHED>
  <STIME>1590222209</STIME>
  <ETIME>0</ETIME>
  <DEPLOY_ID/>
  <MONITORING/>
  <TEMPLATE>
    <AUTOMATIC_DS_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_DS_REQUIREMENTS>
    <AUTOMATIC_NIC_REQUIREMENTS><![CDATA[("CLUSTERS/ID" @> 0)]]></AUTOMATIC_NIC_REQUIREMENTS>
    <AUTOMATIC_REQUIREMENTS><![CDATA[(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) | (PUBLIC_CLOUD = YES & (HYPERVISOR = ec2))]]></AUTOMATIC_REQUIREMENTS>
    <CONTEXT>
      <DISK_ID><![CDATA[1]]></DISK_ID>
      <ETH0_CONTEXT_FORCE_IPV4><![CDATA[]]></ETH0_CONTEXT_FORCE_IPV4>
      <ETH0_DNS><![CDATA[172.16.100.1]]></ETH0_DNS>
      <ETH0_EXTERNAL><![CDATA[]]></ETH0_EXTERNAL>
      <ETH0_GATEWAY><![CDATA[172.16.100.1]]></ETH0_GATEWAY>
      <ETH0_GATEWAY6><![CDATA[]]></ETH0_GATEWAY6>
      <ETH0_IP><![CDATA[172.16.100.2]]></ETH0_IP>
      <ETH0_IP6><![CDATA[]]></ETH0_IP6>
      <ETH0_IP6_PREFIX_LENGTH><![CDATA[]]></ETH0_IP6_PREFIX_LENGTH>
      <ETH0_IP6_ULA><![CDATA[]]></ETH0_IP6_ULA>
      <ETH0_MAC><![CDATA[02:00:ac:10:64:02]]></ETH0_MAC>
      <ETH0_MASK><![CDATA[]]></ETH0_MASK>
      <ETH0_MTU><![CDATA[]]></ETH0_MTU>
      <ETH0_NETWORK><![CDATA[]]></ETH0_NETWORK>
      <ETH0_SEARCH_DOMAIN><![CDATA[]]></ETH0_SEARCH_DOMAIN>
      <ETH0_VLAN_ID><![CDATA[]]></ETH0_VLAN_ID>
      <ETH0_VROUTER_IP><![CDATA[]]></ETH0_VROUTER_IP>
      <ETH0_VROUTER_IP6><![CDATA[]]></ETH0_VROUTER_IP6>
      <ETH0_VROUTER_MANAGEMENT><![CDATA[]]></ETH0_VROUTER_MANAGEMENT>
      <NETWORK><![CDATA[YES]]></NETWORK>
      <ONEGATE_ENDPOINT><![CDATA[http://172.16.100.1:5030]]></ONEGATE_ENDPOINT>
      <PASSWORD><![CDATA[opennebula]]></PASSWORD>
      <SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDzxuU0uHr+A7gbz/W8oLirpUZk7u0/Io6PuJzO5Y9qpKx+RL9TF2jPA3Hn5XG7M7nIATrgcd+N8kN7oP908anfM07BHjwcr2d15KivjjqFTvVJch8bj+dTWNzWSo1iXoo93TghU8fvb7Hq34/5RiaAUz4KSRPmD+PE6nQ0avCBCi8FeqiTaYAoZggq0vVqitpXl8HAfFNpDR8qfnb6pillquTxI5I2L9FfNx1N+jIv2mMyPsdD72YluoGfUNrGfwahNG2H8gIcmV8Wo6tIQ4YQ9DE0KffZ1ir15TcDOkW6nIj2qlcAT2bxaffxjiIHB1/kaHuu0o1p1rTqw/zQc/mR oneadmin@ubuntu-surface
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5PBE3MG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mFyL2xpYi9jb25zdWwvIC1jb25maWctZGlyIC9ldGMvY29uc3VsLmQvICYiID4+IC9yb290L3N0YXJ0LnNoCmNobW9kICt4IC9yb290L3N0YXJ0LnNoCi9yb290L3N0YXJ0LnNoCmVjaG8gIjEiID4gL3Jvb3QvZG9uZQ==]]></START_SCRIPT_BASE64>
      <TARGET><![CDATA[hda]]></TARGET>
      <TOKEN><![CDATA[YES]]></TOKEN>
      <VMID><![CDATA[244]]></VMID>
    </CONTEXT>
    <CPU><![CDATA[1]]></CPU>
    <CREATED_BY><![CDATA[0]]></CREATED_BY>
    <DISK>
      <ALLOW_ORPHANS><![CDATA[NO]]></ALLOW_ORPHANS>
      <CLONE><![CDATA[YES]]></CLONE>
      <CLONE_TARGET><![CDATA[]]></CLONE_TARGET>
      <CLUSTER_ID><![CDATA[0]]></CLUSTER_ID>
      <DATASTORE><![CDATA[default]]></DATASTORE>
      <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
      <DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX>
      <DISK_ID><![CDATA[0]]></DISK_ID>
      <DISK_SNAPSHOT_TOTAL_SIZE><![CDATA[0]]></DISK_SNAPSHOT_TOTAL_SIZE>
      <DISK_TYPE><![CDATA[]]></DISK_TYPE>
      <DRIVER><![CDATA[qcow2]]></DRIVER>
      <IMAGE><![CDATA[Ubuntu 18.04]]></IMAGE>
      <IMAGE_ID><![CDATA[11]]></IMAGE_ID>
      <IMAGE_STATE><![CDATA[2]]></IMAGE_STATE>
      <LN_TARGET><![CDATA[]]></LN_TARGET>
      <ORIGINAL_SIZE><![CDATA[2252]]></ORIGINAL_SIZE>
      <READONLY><![CDATA[NO]]></READONLY>
      <SAVE><![CDATA[NO]]></SAVE>
      <SIZE><![CDATA[2252]]></SIZE>
      <SOURCE><![CDATA[/var/lib/one//datastores/1/d351830ef88b0918507358ede716071a]]></SOURCE>
      <TARGET><![CDATA[vda]]></TARGET>
      <TM_MAD><![CDATA[qcow2]]></TM_MAD>
      <TM_MAD_SYSTEM><![CDATA[]]></TM_MAD_SYSTEM>
      <TYPE><![CDATA[FILE]]></TYPE>
    </DISK>
    <GRAPHICS>
      <LISTEN><![CDATA[0.0.0.0]]></LISTEN>
      <PORT><![CDATA[6144]]></PORT>
      <TYPE><![CDATA[VNC]]></TYPE>
    </GRAPHICS>
    <MEMORY><![CDATA[768]]></MEMORY>
    <NIC>
      <AR_ID><![CDATA[0]]></AR_ID>
      <BRIDGE><![CDATA[minionebr]]></BRIDGE>
      <BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE>
      <CLUSTER_ID><![CDATA[0]]></CLUSTER_ID>
      <IP><![CDATA[172.16.100.2]]></IP>
      <MAC><![CDATA[02:00:ac:10:64:02]]></MAC>
      <NAME><![CDATA[NIC0]]></NAME>
      <NETWORK><![CDATA[vnet]]></NETWORK>
      <NETWORK_ID><![CDATA[0]]></NETWORK_ID>
      <NIC_ID><![CDATA[0]]></NIC_ID>
      <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
      <TARGET><![CDATA[one-244-0]]></TARGET>
      <VN_MAD><![CDATA[fw]]></VN_MAD>
    </NIC>
    <OS>
      <ARCH><![CDATA[x86_64]]></ARCH>
      <BOOT><![CDATA[]]></BOOT>
    </OS>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[OUTBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <SECURITY_GROUP_RULE>
      <PROTOCOL><![CDATA[ALL]]></PROTOCOL>
      <RULE_TYPE><![CDATA[INBOUND]]></RULE_TYPE>
      <SECURITY_GROUP_ID><![CDATA[0]]></SECURITY_GROUP_ID>
      <SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
    </SECURITY_GROUP_RULE>
    <TEMPLATE_ID><![CDATA[12]]></TEMPLATE_ID>
    <TM_MAD_SYSTEM><![CDATA[]]></TM_MAD_SYSTEM>
    <VCPU><![CDATA[1]]></VCPU>
    <VMID><![CDATA[244]]></VMID>
  </TEMPLATE>
  <USER_TEMPLATE>
    <ERROR><![CDATA[Sat May 23 11:26:32 2020 : Error deploying virtual machine: fw: -]]></ERROR>
    <INFO><![CDATA[Please do not use this VM Template for vCenter VMs. Refer to the documentation https://bit.ly/37NcJ0Y]]></INFO>
    <INPUTS_ORDER><![CDATA[]]></INPUTS_ORDER>
    <LOGO><![CDATA[images/logos/ubuntu.png]]></LOGO>
    <LXD_SECURITY_PRIVILEGED><![CDATA[true]]></LXD_SECURITY_PRIVILEGED>
    <MEMORY_UNIT_COST><![CDATA[MB]]></MEMORY_UNIT_COST>
    <PUBLIC_CLOUD>
      <AMI><![CDATA[ami-0e01323b8801dd986]]></AMI>
      <ELASTICIP><![CDATA[18.157.59.231]]></ELASTICIP>
      <INSTANCETYPE><![CDATA[t2.micro]]></INSTANCETYPE>
      <KEYPAIR><![CDATA[ec2EM]]></KEYPAIR>
      <SECURITYGROUPIDS><![CDATA[sg-e67f0d9f]]></SECURITYGROUPIDS>
      <TYPE><![CDATA[ec2]]></TYPE>
    </PUBLIC_CLOUD>
    <SCHED_REQUIREMENTS><![CDATA[ID="4"]]></SCHED_REQUIREMENTS>
  </USER_TEMPLATE>
  <HISTORY_RECORDS>
    <HISTORY>
      <OID>244</OID>
      <SEQ>0</SEQ>
      <HOSTNAME>ec2</HOSTNAME>
      <HID>4</HID>
      <CID>0</CID>
      <STIME>1590222212</STIME>
      <ETIME>0</ETIME>
      <VM_MAD><![CDATA[ec2]]></VM_MAD>
      <TM_MAD><![CDATA[]]></TM_MAD>
      <DS_ID>-1</DS_ID>
      <PSTIME>1590222212</PSTIME>
      <PETIME>1590222212</PETIME>
      <RSTIME>1590222212</RSTIME>
      <RETIME>0</RETIME>
      <ESTIME>0</ESTIME>
      <EETIME>0</EETIME>
      <ACTION>0</ACTION>
      <UID>-1</UID>
      <GID>-1</GID>
      <REQUEST_ID>-1</REQUEST_ID>
    </HISTORY>
  </HISTORY_RECORDS>
</VM>

and …

rafa@ubuntu-surface:~$ onevnet show -x 0

<VNET>
  <ID>0</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>vnet</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <CLUSTERS>
    <ID>0</ID>
  </CLUSTERS>
  <BRIDGE><![CDATA[minionebr]]></BRIDGE>
  <BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE>
  <PARENT_NETWORK_ID/>
  <VN_MAD><![CDATA[fw]]></VN_MAD>
  <PHYDEV/>
  <VLAN_ID/>
  <OUTER_VLAN_ID/>
  <VLAN_ID_AUTOMATIC>0</VLAN_ID_AUTOMATIC>
  <OUTER_VLAN_ID_AUTOMATIC>0</OUTER_VLAN_ID_AUTOMATIC>
  <USED_LEASES>1</USED_LEASES>
  <VROUTERS/>
  <TEMPLATE>
    <BRIDGE><![CDATA[minionebr]]></BRIDGE>
    <BRIDGE_TYPE><![CDATA[linux]]></BRIDGE_TYPE>
    <DNS><![CDATA[172.16.100.1]]></DNS>
    <GATEWAY><![CDATA[172.16.100.1]]></GATEWAY>
    <OUTER_VLAN_ID><![CDATA[]]></OUTER_VLAN_ID>
    <PHYDEV><![CDATA[]]></PHYDEV>
    <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
    <VLAN_ID><![CDATA[]]></VLAN_ID>
    <VN_MAD><![CDATA[fw]]></VN_MAD>
  </TEMPLATE>
  <AR_POOL>
    <AR>
      <AR_ID><![CDATA[0]]></AR_ID>
      <IP><![CDATA[172.16.100.2]]></IP>
      <MAC><![CDATA[02:00:ac:10:64:02]]></MAC>
      <SIZE><![CDATA[99]]></SIZE>
      <TYPE><![CDATA[IP4]]></TYPE>
      <MAC_END><![CDATA[02:00:ac:10:64:64]]></MAC_END>
      <IP_END><![CDATA[172.16.100.100]]></IP_END>
      <USED_LEASES>1</USED_LEASES>
      <LEASES>
        <LEASE>
          <IP><![CDATA[172.16.100.2]]></IP>
          <MAC><![CDATA[02:00:ac:10:64:02]]></MAC>
          <VM><![CDATA[244]]></VM>
        </LEASE>
      </LEASES>
    </AR>
  </AR_POOL>
</VNET>

Sorry for the late response, I needed to undo my “workaround” to make it work and I was busy these past days.

Thank you for your help!

I’m trying to diagnose the problem and It would be nice if you could paste the snippet of the log where the error is printed. Thanks and sorry for the late response.

I did not copy it, but I deployed a new one now to catch the error. Obviously it has a different id now, but I guess this is not an issue:

Wed Jun 3 16:22:35 2020 [Z0][VM][I]: New state is ACTIVE
Wed Jun 3 16:22:35 2020 [Z0][VM][I]: New LCM state is PROLOG
Wed Jun 3 16:22:35 2020 [Z0][VM][I]: New LCM state is BOOT
Wed Jun 3 16:22:35 2020 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/315/deployment.0
Wed Jun 3 16:22:35 2020 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Wed Jun 3 16:23:00 2020 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Wed Jun 3 16:23:00 2020 [Z0][VMM][I]: Command execution failed (exit code: 1): /var/lib/one/remotes/vnm/fw/post ‘i-0a45d912cacb04500’
Wed Jun 3 16:23:00 2020 [Z0][VMM][I]: iptables v1.6.1: interface name --physdev-is-bridged' must be shorter than IFNAMSIZ (15) Wed Jun 3 16:23:00 2020 [Z0][VMM][I]: Try iptables -h’ or ‘iptables --help’ for more information.
Wed Jun 3 16:23:00 2020 [Z0][VMM][E]: post: Command Error: sudo iptables -I opennebula -m physdev --physdev-out --physdev-is-bridged -j one-315-0-i
Wed Jun 3 16:23:00 2020 [Z0][VMM][E]: post: ["/var/lib/one/remotes/vnm/command.rb:61:in block in run!'", "/var/lib/one/remotes/vnm/command.rb:58:in each’", “/var/lib/one/remotes/vnm/command.rb:58:in run!'", "/var/lib/one/remotes/vnm/security_groups_iptables.rb:485:in nic_pre’”, “/var/lib/one/remotes/vnm/sg_driver.rb:92:in block in activate'", "/var/lib/one/remotes/vnm/vnm_driver.rb:81:in block in process’”, “/var/lib/one/remotes/vnm/vm.rb:64:in block in each_nic'", "/var/lib/one/remotes/vnm/vm.rb:63:in each’”, “/var/lib/one/remotes/vnm/vm.rb:63:in each_nic'", "/var/lib/one/remotes/vnm/vnm_driver.rb:84:in process’”, “/var/lib/one/remotes/vnm/sg_driver.rb:84:in activate'", "/var/lib/one/remotes/vnm/fw/post:32:in '”]
Wed Jun 3 16:23:34 2020 [Z0][VMM][I]: Successfully execute virtualization driver operation: cancel.
Wed Jun 3 16:23:34 2020 [Z0][VMM][I]: Failed to execute network driver operation: post.
Wed Jun 3 16:23:34 2020 [Z0][VMM][E]: Error deploying virtual machine: fw: -
Wed Jun 3 16:23:34 2020 [Z0][VM][I]: New LCM state is BOOT_FAILURE

As I said in my first post, replacing #{nic[:tap]} by minionebr in the file /var/lib/one/remotes/vnm/security_groups_iptables.rb makes it work, so I guess the issue is that tap thing missing (sorry my ignorance).

I have same issue with deploy VM in 802.1Q virtual network.

I have finally the issue reproduced. The problem is that you are deploying on EC2 and the VM has a NIC attached to an unusable network on EC2 (intended to be used on KVM). To avoid the error you can update the VM Template and remove the NIC attribute with onetemplate update <TEMPLATE_ID>. You configured editor will open with something similar to this:

CPU="1"
DISK=[
  IMAGE_ID="1" ]
INPUTS_ORDER=""
MEMORY="2048"
MEMORY_UNIT_COST="MB"
NIC=[
  NETWORK_ID="0" ]
OS=[
  BOOT="" ]
PUBLIC_CLOUD=[
  AMI="ami-xxx",
  INSTANCETYPE="t2.micro",
  KEYPAIR="xxx",
  TYPE="EC2" ]

Then delete this:

NIC=[
  NETWORK_ID="0" ]

After that, you’ll be able to instantiate that template without errors.

Alternatively you can clone the original template and then remove the NIC.

I deployed VM from template without NIC, as you reccomends.
After, i attach NIC in network with VLAN_ID and got this errors:

[Z0][DiM][I]: VM NIC Successfully attached.
[Z0][VM][I]: New state is ACTIVE
[Z0][VM][I]: New LCM state is BOOT_POWEROFF

[Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/81/deployment.2
[Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
[Z0][VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/pre PFZNPjxJRD44MTwv (cut some output )
[Z0][VMM][I]: pre: Executed "sudo ip link add link br0 name br0.23 mtu 1500 type vlan id 23 ".
[Z0][VMM][I]: pre: Executed “sudo ip link set br0.23 up”.
[Z0][VMM][E]: pre: Command “sudo brctl addif br0 br0.23” failed.
[Z0][VMM][E]: pre: device br0.23 is already a member of a bridge; can’t enslave it to bridge br0.
[Z0][VMM][E]: device br0.23 is already a member of a bridge; can’t enslave it to bridge br0.
[Z0][VMM][E]:
[Z0][VMM][I]: ExitCode: 1
[Z0][VMM][I]: Failed to execute network driver operation: pre.
[Z0][VMM][E]: Error deploying virtual machine: one-81 0 0
[Z0][VM][I]: New state is POWEROFF

br.23 is not present at host before deployment VM

At host already configured bridge interface br0.
br0 included bond0 with eth0 and eth1 nics.

Hi Ricardo, that works. However, the idea is to have a template that deploys VMs locally in my DC or in EC2 (depending on the CPU usage of the host, to force cloud bursting).

By doing what you suggest makes it work in EC2, but now I cannot use the VM when it is deployed locally, because it does not have an IP.

Maybe there is a different solution for that?

Thank you!
Rafa

Hi Rafa,

I just opened a bug issue and it will be taken into account for resolution in future releases. Thanks for your cooperation.

Cheers,
Ricardo.

I actually get the same error, but the only thing I changed is the device type from vmxnet3 to virtio. In other words, I changed the NIC type of my Windows VM. After that I’m getting that error. However, the odd thing is, that it still boots up after printing that error. It goes to FAILED/FAILURE what ever first, and after a few seconds it proceeds to RUNNING.

Ah never mind. The fact that I change to virtio just causes it to pause in the failed state for a while, and that’s why i noticed it. In fact all seem to get that error, they just proceed so fast i didn’t realize it.