Guest Inter-VLAN Routing configuration is lost after VM power off/crashed.
search cancel

Guest Inter-VLAN Routing configuration is lost after VM power off/crashed.

book

Article ID: 425479

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • You have configured NSX Guest Inter-VLAN Routing - Configure Guest Inter-VLAN Routing, andthe  VM was managed by the VCD. 
  • The configuration is lost after the Virtual Machine is crashed or powered off and powered on event.
  • The following reconfiguration task was observed in the ESXi /var/run/log/hostd.log, issued by the VCD user.  
    Hostd[#######]: [Originator@6876 sub=Vimsvc.TaskManager opID=;activity=urn:uuid:########-####-####-####-#############-##-##-#-#### sid=######## user=vpxuser:VSPHERE.LOCAL\<VCD user>] Task Created : haTask-153-vim.VirtualMachine.reconfigure-#########
    ....
    Hostd[#######]: [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/########-########-####-##############/<VM Name>/<VM Name>.vmx opID=;activity=urn:uuid:########-####-####-####-#############-##-##-#-#### sid=######## user=vpxuser:VSPHERE.LOCAL\<VCD User>] Reconfigure completed succesfully
  • During vm power off, nsxa received a request to detach port for vif, observed in the ESXi /var/run/log/nsx-syslog.log 

    nsx-opsagent[2100808]: NSX 2100808 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2101630" level="INFO"] [DoVifPortOperation] request=[opId:[;activity=urn:uuid:########-########-####-##############] op:[HOSTD_DETACH_PORT(2)] vif:[########-########-####-##############] ls:[########-########-####-##############] vmx:[/vmfs/volumes/########-########-####-##############/<VM Name>/<VM Name.vmx] lp:[]]
    nsx-opsagent[2100808]: NSX 2100808 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2101630" level="INFO"] [MP_RemoveVnicAttachment] RPC call [;activity=urn:uuid:########-########-####-##############] to NSX management plane completed in [0] sec
    nsx-opsagent[2100808]: NSX 2100808 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2101630" level="INFO"] [DoVifPortOperation] Successfully cleared external id from the port [########-########-####-##############]
  • During vm power on, nsxa received a request to attach port and vif, observed in the ESXi /var/run/log/nsx-syslog.log 
    nsx-opsagent[2100808]: NSX 2100808 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2101630" level="INFO"] [DoVifPortOperation] request=[opId:[;activity=urn:uuid:########-########-####-##############] op:[HOSTD_ATTACH_PORT_TO_VIF_UUID(8)] vif:[] ls:[########-########-####-##############] vmx:[/vmfs/volumes/########-########-####-##############/<VM Name>/<VM Name.vmx] lp:[]]
    nsx-opsagent[2100808]: NSX 2100808 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="nsxa" tid="2101630" level="INFO"] [DoMpVifAttachRpc] Port created on mp for ATTACH request: opId [;activity=urn:uuid:########-########-####-##############], vifUuid [########-########-####-##############],           lpUuid [########-########-####-##############], lsUuid [########-########-####-##############7], tzUuid [########-########-####-##############], oldLpUuid [], oldLsUuid [], oldTzUuid [],           vmxPath [], initState [], vlanId -1, error []

Environment

VMware NSX
VMware Cloud Director

Cause

VMware Cloud Director monitors vCenter Server for state changes on managed Virtual Machines. When a VCD-managed VM undergoes a state change in vCenter (such as being powered off and started), VCD detects this event and initiates a reconfigure task to synchronize the VM's state. This reconfiguration task creates a new VIF UUID, making the existing Guest Inter-VLAN Routing configuration obsolete. 

Resolution

This behavior is expected, and VMware Cloud Director initiates this reconfigure task to ensure resilience and maintain accurate synchronization with the vCenter Server state.

  • Create Guest Inter-VLAN Routing using the new VIF UUID.

Additional Information