Change VM NIC in AHV to Trunk Mode

There was a requirement to run a trunk (vlans 2004 and 2012) into a VM called Jord99-VM based in Nutanix AHV. The network is called JordyNet.

To do this run the following from a CVM in the cluster

acli vm.nic_create Jord99-VM network=JordyNet trunked_networks=2004,2012 vlan_mode=kTrunked

To confirm this is working:

acli vm.get Jord99-VM

Check the output and look for :

vlan_mode: "kTrunked"