It appears that if a host is assigned membership in at least one vDS via its host profile, then on stateless boot the host removes vmk0 and tries to re-create it. This appears to happen regardless of the configuration defined in the "Host port group" section of the host profile, and regardless of the specifics of any vDS configuration. Simply having a vDS membership defined seems to trigger it.
This behavior can be observed in the hostprofiletrace.log. Note that this host profile is completely empty except for the single default vSwitch0, a default vmk0, default netstack, and a simple default vDS with one uplink on a different vmnic than vSwitch0. Everything else in the host profile is disabled. The logs below are from ESXi 6.5, but I suspect the behavior would be the same on other verisons.
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic0', 'PCI Device': '0000:06:00.0', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC', 'Link': 'Up', 'Link Status': 'Up', 'Admin Status': 'Up'}, {'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic1', 'PCI Device': '0000:07:00.0', 'Description': 'Cisco Syst
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic0', 'PCI Device': '0000:06:00.0', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC', 'Link': 'Up', 'Link Status': 'Up', 'Admin Status': 'Up'}, {'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic1', 'PCI Device': '0000:07:00.0', 'Description': 'Cisco Syst
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic0', 'PCI Device': '0000:06:00.0', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC', 'Link': 'Up', 'Link Status': 'Up', 'Admin Status': 'Up'}, {'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic1', 'PCI Device': '0000:07:00.0', 'Description': 'Cisco Syst
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic0', 'PCI Device': '0000:06:00.0', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC', 'Link': 'Up', 'Link Status': 'Up', 'Admin Status': 'Up'}, {'Duplex': 'Full', 'Speed': 20000, 'Driver': 'nenic', 'MTU': 1500, 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Name': 'vmnic1', 'PCI Device': '0000:07:00.0', 'Description': 'Cisco Syst
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Is Using IPv6': False, 'Network Server Port': 0, 'Host VNic': '', 'Network Server IP': '', 'Enabled': False}", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^146^^^ Command: esxcli ['network', 'vswitch', 'standard', 'add', '--vswitch-name', 'vSwitch0', '--ports', '128'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^165^^^ Command: esxcli ['network', 'vswitch', 'standard', 'uplink', 'add', '--vswitch-name', 'vSwitch0', '--uplink-name', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^145^^^ Command: esxcli ['network', 'vswitch', 'standard', 'set', '--vswitch-name', 'vSwitch0', '--mtu', '1500'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^183^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'security', 'set', '--vswitch-name', 'vSwitch0', '--allow-forged-transmits', 'true', '--allow-mac-change', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^270^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'failover', 'set', '--vswitch-name', 'vSwitch0', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^312^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'policy', 'failover', 'set', '--portgroup-name', 'Management Network', '--use-vswitch', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^164^^^ Command: esxcli ['network', 'ip', 'netstack', 'list'], status: (0), output: "[{'State': 4660, 'Name': 'defaultTcpipStack', 'Key': 'defaultTcpipStack'}]", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^151^^^ Command: esxcli ['network', 'ip', 'netstack', 'set', '--netstack', 'defaultTcpipStack', '--ccalgo', 'newreno'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'ip', 'interface', 'add', '--portgroup-name', 'Management Network', '--interface-name', 'vmk0', '--mtu', '1500', '--netstack', 'defaultTcpipStack'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^473^^^ Command: esxcli ['network', 'ip', 'interface', 'list'], status: (0), output: "[{'Portgroup': 'Management Network', 'Netstack Instance': 'defaultTcpipStack', 'Opaque Network ID': 'N/A', 'Enabled': True, 'MTU': 1500, 'External ID': 'N/A', 'VDS Name': 'N/A', 'Name': 'vmk0', 'MAC Address': '00:50:56:68:70:dd', 'VDS Port': 'N/A', 'VDS Connection': -1, 'Port ID': 33554436, 'Opaque Network Type': 'N/A', 'TSO MSS': 65535, 'VDS UUID': 'N/A', 'Portset': 'vSwitch0'}]", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^170^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'set', '--interface-name', 'vmk0', '--type', 'dhcp', '--peer-dns', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^158^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '--interface-name', 'vmk0', '--enable-router-adv', '0'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk0', '-r', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^263^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Broadcast': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Gateway': '0.0.0.0', 'DHCP DNS': True, 'Name': 'vmk0', 'Address Type': 'DHCP', 'IPv4 Address': '0.0.0.0'}]", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-66575-20170713-185811-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224', 'Gateway': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'Name': 'vmk0', 'Address Type': 'DHCP', 'IPv4 Address': 'xxx.xxx.xxx.xxx'}]", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-67083-20170713-185851-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Name': 'vmk0', 'IPv4 Netmask': '255.255.255.224', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'Address Type': 'DHCP'}]", error: ""
2017-07-13T18:59:05Z hostprofiletrace: ^^^hostProfiles-67083-20170713-185851-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Netmask': 64, 'Status': 'PREFERRED', 'Address': 'fe80::250:56ff:fe68:70dd', 'Type': 'STATIC', 'Interface': 'vmk0'}]", error: ""
2017-07-13T18:59:44Z hostprofiletrace: ^^^hostProfiles-68580-20170713-185944-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:59:50Z hostprofiletrace: ^^^hostProfiles-68580-20170713-185944-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server Port': 0, 'Enabled': False, 'Network Server IP': '', 'Is Using IPv6': False, 'Host VNic': ''}", error: ""
2017-07-13T18:59:51Z hostprofiletrace: ^^^hostProfiles-68580-20170713-185944-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'IPv4 Netmask': '255.255.255.224', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T18:59:51Z hostprofiletrace: ^^^hostProfiles-68580-20170713-185944-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Address': 'fe80::250:56ff:fe68:70dd', 'Netmask': 64, 'Interface': 'vmk0', 'Type': 'STATIC', 'Status': 'PREFERRED'}]", error: ""
2017-07-13T18:59:52Z hostprofiletrace: ^^^hostProfiles-68580-20170713-185944-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:02:20Z hostprofiletrace: ^^^hostProfiles-69736-20170713-190220-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T19:02:20Z hostprofiletrace: ^^^hostProfiles-69736-20170713-190220-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T19:02:20Z hostprofiletrace: ^^^hostProfiles-69736-20170713-190220-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T19:02:20Z hostprofiletrace: ^^^hostProfiles-69736-20170713-190220-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Network Server IP': '', 'Is Using IPv6': False, 'Enabled': False, 'Network Server Port': 0}", error: ""
2017-07-13T19:02:24Z hostprofiletrace: ^^^hostProfiles-69768-20170713-190224-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:02:32Z hostprofiletrace: ^^^hostProfiles-69768-20170713-190224-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Is Using IPv6': False, 'Network Server IP': '', 'Network Server Port': 0, 'Enabled': False}", error: ""
2017-07-13T19:02:33Z hostprofiletrace: ^^^hostProfiles-69768-20170713-190224-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Netmask': '255.255.255.224', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T19:02:33Z hostprofiletrace: ^^^hostProfiles-69768-20170713-190224-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Status': 'PREFERRED', 'Interface': 'vmk0', 'Address': 'fe80::250:56ff:fe68:70dd', 'Netmask': 64, 'Type': 'STATIC'}]", error: ""
2017-07-13T19:02:44Z hostprofiletrace: ^^^hostProfiles-69822-20170713-190244-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Enabled': False, 'Network Server Port': 0, 'Network Server IP': '', 'Is Using IPv6': False}", error: ""
2017-07-13T19:02:45Z hostprofiletrace: ^^^hostProfiles-69822-20170713-190244-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'DHCP DNS': True, 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Address Type': 'DHCP', 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:02:45Z hostprofiletrace: ^^^hostProfiles-69822-20170713-190244-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Interface': 'vmk0', 'Status': 'PREFERRED', 'Type': 'STATIC', 'Netmask': 64, 'Address': 'fe80::250:56ff:fe68:70dd'}]", error: ""
2017-07-13T19:02:52Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server Port': 0, 'Enabled': False, 'Host VNic': '', 'Is Using IPv6': False, 'Network Server IP': ''}", error: ""
2017-07-13T19:02:53Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^125^^^ Command: esxcli ['network', 'ip', 'interface', 'remove', '--interface-name', 'vmk0'], status: (0), output: "True", error: ""
2017-07-13T19:02:53Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^186^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'remove', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T19:02:53Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^183^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^164^^^ Command: esxcli ['network', 'ip', 'netstack', 'list'], status: (0), output: "[{'Key': 'defaultTcpipStack', 'Name': 'defaultTcpipStack', 'State': 4660}]", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^151^^^ Command: esxcli ['network', 'ip', 'netstack', 'set', '--netstack', 'defaultTcpipStack', '--ccalgo', 'newreno'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'ip', 'interface', 'add', '--portgroup-name', 'Management Network', '--interface-name', 'vmk0', '--mtu', '1500', '--netstack', 'defaultTcpipStack'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^473^^^ Command: esxcli ['network', 'ip', 'interface', 'list'], status: (0), output: "[{'Opaque Network Type': 'N/A', 'Port ID': 33554437, 'Opaque Network ID': 'N/A', 'MTU': 1500, 'Portgroup': 'Management Network', 'Portset': 'vSwitch0', 'VDS Name': 'N/A', 'VDS UUID': 'N/A', 'Name': 'vmk0', 'Netstack Instance': 'defaultTcpipStack', 'External ID': 'N/A', 'TSO MSS': 65535, 'VDS Connection': -1, 'MAC Address': '00:50:56:66:b0:97', 'Enabled': True, 'VDS Port': 'N/A'}]", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^170^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'set', '--interface-name', 'vmk0', '--type', 'dhcp', '--peer-dns', 'true'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^158^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '--interface-name', 'vmk0', '--enable-router-adv', '0'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk0', '-r', 'true'], status: (0), output: "True", error: ""
2017-07-13T19:02:54Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^263^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Gateway': '0.0.0.0', 'IPv4 Address': '0.0.0.0', 'Name': 'vmk0', 'IPv4 Broadcast': '0.0.0.0', 'DHCP DNS': True, 'IPv4 Netmask': '0.0.0.0', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T19:02:59Z hostprofiletrace: ^^^hostProfiles-69920-20170713-190252-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'IPv4 Netmask': '255.255.255.224', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T19:03:06Z hostprofiletrace: ^^^hostProfiles-70047-20170713-190306-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Interface': 'vmk0', 'Network': 'default'}, {'Gateway': '0.0.0.0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx'}]", error: ""
2017-07-13T19:03:06Z hostprofiletrace: ^^^hostProfiles-70047-20170713-190306-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Interface': 'vmk0', 'Network': 'default'}, {'Gateway': '0.0.0.0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx'}]", error: ""
2017-07-13T19:03:06Z hostprofiletrace: ^^^hostProfiles-70047-20170713-190306-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Netmask': '0.0.0.0', 'Source': 'DHCP', 'Interface': 'vmk0', 'Network': 'default'}, {'Gateway': '0.0.0.0', 'Netmask': '255.255.255.224', 'Source': 'MANUAL', 'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx'}]", error: ""
2017-07-13T19:03:06Z hostprofiletrace: ^^^hostProfiles-70047-20170713-190306-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Enabled': False, 'Network Server Port': 0, 'Network Server IP': '', 'Is Using IPv6': False, 'Host VNic': ''}", error: ""
2017-07-13T19:03:12Z hostprofiletrace: ^^^hostProfiles-70087-20170713-190312-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Netmask': '0.0.0.0'}, {'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:03:12Z hostprofiletrace: ^^^hostProfiles-70087-20170713-190312-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Netmask': '0.0.0.0'}, {'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:03:12Z hostprofiletrace: ^^^hostProfiles-70087-20170713-190312-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Network': 'default', 'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Netmask': '0.0.0.0'}, {'Interface': 'vmk0', 'Network': 'xxx.xxx.xxx.xxx', 'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:03:12Z hostprofiletrace: ^^^hostProfiles-70087-20170713-190312-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Network Server Port': 0, 'Enabled': False, 'Is Using IPv6': False, 'Network Server IP': ''}", error: ""
And here the log from the exact same host profile, just with the vDS section disabled. Note the absence of the removal of vmk0 and its upstream dependencies.
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Name': 'vmnic0', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:06:00.0', 'MTU': 1500, 'Duplex': 'Full', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Name': 'vmnic1', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:07:00.0',
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Name': 'vmnic0', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:06:00.0', 'MTU': 1500, 'Duplex': 'Full', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Name': 'vmnic1', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:07:00.0',
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Name': 'vmnic0', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:06:00.0', 'MTU': 1500, 'Duplex': 'Full', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Name': 'vmnic1', 'Link': 'Up', 'Speed': 20000, 'Driver': 'nenic', 'Admin Status': 'Up', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'Link Status': 'Up', 'PCI Device': '0000:07:00.0',
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Enabled': False, 'Network Server Port': 0, 'Network Server IP': '', 'Is Using IPv6': False}", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^146^^^ Command: esxcli ['network', 'vswitch', 'standard', 'add', '--vswitch-name', 'vSwitch0', '--ports', '128'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^165^^^ Command: esxcli ['network', 'vswitch', 'standard', 'uplink', 'add', '--vswitch-name', 'vSwitch0', '--uplink-name', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^145^^^ Command: esxcli ['network', 'vswitch', 'standard', 'set', '--vswitch-name', 'vSwitch0', '--mtu', '1500'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^183^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'security', 'set', '--vswitch-name', 'vSwitch0', '--allow-forged-transmits', 'true', '--allow-mac-change', 'true'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^270^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'failover', 'set', '--vswitch-name', 'vSwitch0', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^312^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'policy', 'failover', 'set', '--portgroup-name', 'Management Network', '--use-vswitch', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^164^^^ Command: esxcli ['network', 'ip', 'netstack', 'list'], status: (0), output: "[{'State': 4660, 'Key': 'defaultTcpipStack', 'Name': 'defaultTcpipStack'}]", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^151^^^ Command: esxcli ['network', 'ip', 'netstack', 'set', '--netstack', 'defaultTcpipStack', '--ccalgo', 'newreno'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'ip', 'interface', 'add', '--portgroup-name', 'Management Network', '--interface-name', 'vmk0', '--mtu', '1500', '--netstack', 'defaultTcpipStack'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^473^^^ Command: esxcli ['network', 'ip', 'interface', 'list'], status: (0), output: "[{'Portset': 'vSwitch0', 'Name': 'vmk0', 'MAC Address': '00:50:56:63:aa:4f', 'Netstack Instance': 'defaultTcpipStack', 'Opaque Network Type': 'N/A', 'VDS Port': 'N/A', 'VDS Name': 'N/A', 'Enabled': True, 'VDS Connection': -1, 'MTU': 1500, 'External ID': 'N/A', 'Portgroup': 'Management Network', 'VDS UUID': 'N/A', 'Opaque Network ID': 'N/A', 'TSO MSS': 65535, 'Port ID': 33554436}]", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^170^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'set', '--interface-name', 'vmk0', '--type', 'dhcp', '--peer-dns', 'true'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^158^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '--interface-name', 'vmk0', '--enable-router-adv', '0'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk0', '-r', 'true'], status: (0), output: "True", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^263^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'DHCP DNS': True, 'IPv4 Address': '0.0.0.0', 'Address Type': 'DHCP', 'Name': 'vmk0', 'IPv4 Broadcast': '0.0.0.0', 'Gateway': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0'}]", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-66579-20170713-194242-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'DHCP DNS': True, 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Address Type': 'DHCP', 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-67089-20170713-194324-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Address Type': 'DHCP', 'IPv4 Netmask': '255.255.255.224', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0'}]", error: ""
2017-07-13T19:43:39Z hostprofiletrace: ^^^hostProfiles-67089-20170713-194324-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Interface': 'vmk0', 'Status': 'PREFERRED', 'Type': 'STATIC', 'Netmask': 64, 'Address': 'xxx'}]", error: ""
2017-07-13T19:44:18Z hostprofiletrace: ^^^hostProfiles-68584-20170713-194418-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:44:24Z hostprofiletrace: ^^^hostProfiles-68584-20170713-194418-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Is Using IPv6': False, 'Network Server IP': '', 'Host VNic': '', 'Network Server Port': 0, 'Enabled': False}", error: ""
2017-07-13T19:44:25Z hostprofiletrace: ^^^hostProfiles-68584-20170713-194418-cli-commands.trc^^^289^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Address Type': 'DHCP', 'Name': 'vmk0', 'IPv4 Netmask': '255.255.255.224', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx'}]", error: ""
2017-07-13T19:44:25Z hostprofiletrace: ^^^hostProfiles-68584-20170713-194418-cli-commands.trc^^^228^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': 64, 'Status': 'PREFERRED', 'Address': 'xxx', 'Type': 'STATIC'}]", error: ""
2017-07-13T19:44:26Z hostprofiletrace: ^^^hostProfiles-68584-20170713-194418-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T19:46:57Z hostprofiletrace: ^^^hostProfiles-69195-20170713-194657-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Network': 'default', 'Interface': 'vmk0', 'Netmask': '0.0.0.0'}, {'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Interface': 'vmk0', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:46:57Z hostprofiletrace: ^^^hostProfiles-69195-20170713-194657-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Network': 'default', 'Interface': 'vmk0', 'Netmask': '0.0.0.0'}, {'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Interface': 'vmk0', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:46:57Z hostprofiletrace: ^^^hostProfiles-69195-20170713-194657-cli-commands.trc^^^366^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Gateway': 'xxx.xxx.xxx.xxx', 'Source': 'DHCP', 'Network': 'default', 'Interface': 'vmk0', 'Netmask': '0.0.0.0'}, {'Gateway': '0.0.0.0', 'Source': 'MANUAL', 'Network': 'xxx.xxx.xxx.xxx', 'Interface': 'vmk0', 'Netmask': '255.255.255.224'}]", error: ""
2017-07-13T19:46:57Z hostprofiletrace: ^^^hostProfiles-69195-20170713-194657-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server Port': 0, 'Enabled': False, 'Network Server IP': '', 'Is Using IPv6': False, 'Host VNic': ''}", error: ""
Where this becomes a severe problem is when any additional vmknics are defined in the host profile on different networks, for example adding a vmknic for vMotion. In this scenario, the vmk0 adapter is removed, but doesn't get re-created, apparently because the other vmknics aren't cleaned up, leaving the host in a crippled and invalid state for the process to continue. What I find strange is that there doesn't appear to be a logged esxcli attempt to re-create vmk0 and instead the final error looks like it's from a SOAP call.
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:06:00.0', 'Speed': 20000, 'Name': 'vmnic0', 'Admin Status': 'Up', 'Link Status': 'Up', 'Link': 'Up', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:07:00.0', 'Speed': 20000, 'Name': 'vmnic1', 'Admin Status': 'Up', 'Lin
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:06:00.0', 'Speed': 20000, 'Name': 'vmnic0', 'Admin Status': 'Up', 'Link Status': 'Up', 'Link': 'Up', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:07:00.0', 'Speed': 20000, 'Name': 'vmnic1', 'Admin Status': 'Up', 'Lin
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:06:00.0', 'Speed': 20000, 'Name': 'vmnic0', 'Admin Status': 'Up', 'Link Status': 'Up', 'Link': 'Up', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:07:00.0', 'Speed': 20000, 'Name': 'vmnic1', 'Admin Status': 'Up', 'Lin
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'nic', 'list'], status: (0), output: "[{'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:06:00.0', 'Speed': 20000, 'Name': 'vmnic0', 'Admin Status': 'Up', 'Link Status': 'Up', 'Link': 'Up', 'Description': 'Cisco Systems Inc Cisco VIC Ethernet NIC'}, {'Duplex': 'Full', 'MTU': 1500, 'Driver': 'nenic', 'MAC Address': 'xx:xx:xx:xx:xx:xx', 'PCI Device': '0000:07:00.0', 'Speed': 20000, 'Name': 'vmnic1', 'Admin Status': 'Up', 'Lin
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Network Server IP': '', 'Is Using IPv6': False, 'Enabled': False, 'Network Server Port': 0}", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^146^^^ Command: esxcli ['network', 'vswitch', 'standard', 'add', '--vswitch-name', 'vSwitch0', '--ports', '128'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^165^^^ Command: esxcli ['network', 'vswitch', 'standard', 'uplink', 'add', '--vswitch-name', 'vSwitch0', '--uplink-name', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^145^^^ Command: esxcli ['network', 'vswitch', 'standard', 'set', '--vswitch-name', 'vSwitch0', '--mtu', '1500'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^183^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'security', 'set', '--vswitch-name', 'vSwitch0', '--allow-forged-transmits', 'true', '--allow-mac-change', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^270^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'failover', 'set', '--vswitch-name', 'vSwitch0', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^312^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'policy', 'failover', 'set', '--portgroup-name', 'Management Network', '--use-vswitch', '--load-balancing', 'portid', '--failure-detection', 'link', '--notify-switches', 'true', '--active-uplinks', 'vmnic0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^164^^^ Command: esxcli ['network', 'ip', 'netstack', 'list'], status: (0), output: "[{'State': 4660, 'Key': 'defaultTcpipStack', 'Name': 'defaultTcpipStack'}]", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^151^^^ Command: esxcli ['network', 'ip', 'netstack', 'set', '--netstack', 'defaultTcpipStack', '--ccalgo', 'newreno'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^216^^^ Command: esxcli ['network', 'ip', 'interface', 'add', '--portgroup-name', 'Management Network', '--interface-name', 'vmk0', '--mtu', '1500', '--netstack', 'defaultTcpipStack'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^473^^^ Command: esxcli ['network', 'ip', 'interface', 'list'], status: (0), output: "[{'VDS Connection': -1, 'Portgroup': 'Management Network', 'Opaque Network Type': 'N/A', 'Enabled': True, 'External ID': 'N/A', 'VDS Port': 'N/A', 'MAC Address': '00:50:56:6f:0d:e7', 'Name': 'vmk0', 'Netstack Instance': 'defaultTcpipStack', 'Port ID': 33554436, 'TSO MSS': 65535, 'MTU': 1500, 'Opaque Network ID': 'N/A', 'VDS UUID': 'N/A', 'VDS Name': 'N/A', 'Portset': 'vSwitch0'}]", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^170^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'set', '--interface-name', 'vmk0', '--type', 'dhcp', '--peer-dns', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^158^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '--interface-name', 'vmk0', '--enable-router-adv', '0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk0', '-r', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^129^^^ Command: esxcli ['network', 'vswitch', 'standard', 'add', '--vswitch-name', 'M-testdvs'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^146^^^ Command: esxcli ['network', 'vswitch', 'standard', 'set', '--vswitch-name', 'M-testdvs', '--mtu', '1500'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^166^^^ Command: esxcli ['network', 'vswitch', 'standard', 'uplink', 'add', '--vswitch-name', 'M-testdvs', '--uplink-name', 'vmnic2'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^178^^^ Command: esxcli ['network', 'vswitch', 'standard', 'policy', 'failover', 'set', '--vswitch-name', 'M-testdvs', '--load-balancing', 'mac'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^179^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'P-testpg1-0-0', '--vswitch-name', 'M-testdvs'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^222^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'policy', 'failover', 'set', '--active-uplinks', '', '--standby-uplinks', '', '-p', 'P-testpg1-0-0', '--use-vswitch'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^244^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'policy', 'failover', 'set', '--portgroup-name', 'P-testpg1-0-0', '--use-vswitch', '--load-balancing', 'mac', '--active-uplinks', 'vmnic2'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^211^^^ Command: esxcli ['network', 'ip', 'interface', 'add', '--portgroup-name', 'P-testpg1-0-0', '--interface-name', 'vmk1', '--mtu', '1500', '--netstack', 'defaultTcpipStack'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'ip', 'interface', 'list'], status: (0), output: "[{'VDS Connection': -1, 'Portgroup': 'Management Network', 'Opaque Network Type': 'N/A', 'Enabled': True, 'External ID': 'N/A', 'VDS Port': 'N/A', 'MAC Address': '00:50:56:6f:0d:e7', 'Name': 'vmk0', 'Netstack Instance': 'defaultTcpipStack', 'Port ID': 33554436, 'TSO MSS': 65535, 'MTU': 1500, 'Opaque Network ID': 'N/A', 'VDS UUID': 'N/A', 'VDS Name': 'N/A', 'Portset': 'vSwitch0'}, {'VDS Connection': -1, 'Portgroup': 'P-testpg1-0-0'
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^148^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'set', '--interface-name', 'vmk1', '--type', 'dhcp'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^158^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '--interface-name', 'vmk1', '--enable-router-adv', '0'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk1', '-r', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^130^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'set', '-i', 'vmk1', '-d', 'true'], status: (0), output: "True", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^429^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Broadcast': '0.0.0.0', 'DHCP DNS': True, 'Gateway': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Name': 'vmk0', 'IPv4 Address': '0.0.0.0', 'Address Type': 'DHCP'}, {'IPv4 Broadcast': '0.0.0.0', 'DHCP DNS': False, 'Gateway': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Name': 'vmk1', 'IPv4 Address': '0.0.0.0', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-66575-20170713-183710-cli-commands.trc^^^455^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224', 'Name': 'vmk0', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Address Type': 'DHCP'}, {'IPv4 Broadcast': '0.0.0.0', 'DHCP DNS': False, 'Gateway': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Name': 'vmk1', 'IPv4 Address': '0.0.0.0', 'Address Type': 'DHCP'}]", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-67093-20170713-183750-cli-commands.trc^^^455^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224', 'Address Type': 'DHCP', 'DHCP DNS': True}, {'IPv4 Address': '0.0.0.0', 'Name': 'vmk1', 'IPv4 Broadcast': '0.0.0.0', 'Gateway': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Address Type': 'DHCP', 'DHCP DNS': False}]", error: ""
2017-07-13T18:38:04Z hostprofiletrace: ^^^hostProfiles-67093-20170713-183750-cli-commands.trc^^^345^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Address': 'fe80::250:56ff:fe6f:de7', 'Type': 'STATIC', 'Status': 'PREFERRED', 'Interface': 'vmk0', 'Netmask': 64}, {'Address': 'fe80::250:56ff:fe63:da2c', 'Type': 'STATIC', 'Status': 'PREFERRED', 'Interface': 'vmk1', 'Netmask': 64}]", error: ""
2017-07-13T18:38:40Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:38:40Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:38:47Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server Port': 0, 'Enabled': False, 'Network Server IP': '', 'Is Using IPv6': False, 'Host VNic': ''}", error: ""
2017-07-13T18:38:48Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^455^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Address Type': 'DHCP', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224', 'Gateway': 'xxx.xxx.xxx.xxx', 'DHCP DNS': True, 'Name': 'vmk0', 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx'}, {'Address Type': 'DHCP', 'IPv4 Address': '0.0.0.0', 'IPv4 Netmask': '0.0.0.0', 'Gateway': '0.0.0.0', 'DHCP DNS': False, 'Name': 'vmk1', 'IPv4 Broadcast': '0.0.0.0'}]", error: ""
2017-07-13T18:38:48Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^345^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Type': 'STATIC', 'Address': 'fe80::250:56ff:fe6f:de7', 'Interface': 'vmk0', 'Status': 'PREFERRED', 'Netmask': 64}, {'Type': 'STATIC', 'Address': 'fe80::250:56ff:fe63:da2c', 'Interface': 'vmk1', 'Status': 'PREFERRED', 'Netmask': 64}]", error: ""
2017-07-13T18:38:49Z hostprofiletrace: ^^^hostProfiles-68586-20170713-183840-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:41:10Z hostprofiletrace: ^^^hostProfiles-69218-20170713-184110-cli-commands.trc^^^483^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Network': 'default', 'Source': 'DHCP', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk1', 'Netmask': '255.255.0.0', 'Network': '169.254.0.0', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Network': 'xxx.xxx.xxx.xxx', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T18:41:10Z hostprofiletrace: ^^^hostProfiles-69218-20170713-184110-cli-commands.trc^^^483^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Network': 'default', 'Source': 'DHCP', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk1', 'Netmask': '255.255.0.0', 'Network': '169.254.0.0', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Network': 'xxx.xxx.xxx.xxx', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T18:41:10Z hostprofiletrace: ^^^hostProfiles-69218-20170713-184110-cli-commands.trc^^^483^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Network': 'default', 'Source': 'DHCP', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk1', 'Netmask': '255.255.0.0', 'Network': '169.254.0.0', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Network': 'xxx.xxx.xxx.xxx', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T18:41:10Z hostprofiletrace: ^^^hostProfiles-69218-20170713-184110-cli-commands.trc^^^483^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Netmask': '0.0.0.0', 'Network': 'default', 'Source': 'DHCP', 'Gateway': 'xxx.xxx.xxx.xxx'}, {'Interface': 'vmk1', 'Netmask': '255.255.0.0', 'Network': '169.254.0.0', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}, {'Interface': 'vmk0', 'Netmask': '255.255.255.224', 'Network': 'xxx.xxx.xxx.xxx', 'Source': 'MANUAL', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T18:41:10Z hostprofiletrace: ^^^hostProfiles-69218-20170713-184110-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server IP': '', 'Host VNic': '', 'Is Using IPv6': False, 'Network Server Port': 0, 'Enabled': False}", error: ""
2017-07-13T18:41:15Z hostprofiletrace: ^^^hostProfiles-69347-20170713-184115-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:41:15Z hostprofiletrace: ^^^hostProfiles-69347-20170713-184115-cli-commands.trc^^^99^^^ Command: esxcli ['network', 'ip', 'get'], status: (0), output: "{'IPv6 Enabled': True}", error: ""
2017-07-13T18:41:23Z hostprofiletrace: ^^^hostProfiles-69347-20170713-184115-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Host VNic': '', 'Is Using IPv6': False, 'Enabled': False, 'Network Server Port': 0, 'Network Server IP': ''}", error: ""
2017-07-13T18:41:23Z hostprofiletrace: ^^^hostProfiles-69347-20170713-184115-cli-commands.trc^^^474^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'IPv4 Netmask': '255.255.255.224', 'Address Type': 'DHCP', 'DHCP DNS': True, 'Gateway': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0'}, {'IPv4 Broadcast': '169.254.255.255', 'IPv4 Address': '169.254.124.77', 'IPv4 Netmask': '255.255.0.0', 'Address Type': 'DHCP', 'DHCP DNS': False, 'Gateway': '0.0.0.0', 'Name': 'vmk1'}]", error: ""
2017-07-13T18:41:23Z hostprofiletrace: ^^^hostProfiles-69347-20170713-184115-cli-commands.trc^^^345^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Interface': 'vmk0', 'Status': 'PREFERRED', 'Type': 'STATIC', 'Netmask': 64, 'Address': 'fe80::250:56ff:fe6f:de7'}, {'Interface': 'vmk1', 'Status': 'PREFERRED', 'Type': 'STATIC', 'Netmask': 64, 'Address': 'fe80::250:56ff:fe63:da2c'}]", error: ""
2017-07-13T18:41:35Z hostprofiletrace: ^^^hostProfiles-69402-20170713-184135-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server Port': 0, 'Enabled': False, 'Host VNic': '', 'Is Using IPv6': False, 'Network Server IP': ''}", error: ""
2017-07-13T18:41:37Z hostprofiletrace: ^^^hostProfiles-69402-20170713-184135-cli-commands.trc^^^474^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Address Type': 'DHCP', 'DHCP DNS': True, 'IPv4 Broadcast': 'xxx.xxx.xxx.xxx', 'Gateway': 'xxx.xxx.xxx.xxx', 'IPv4 Address': 'xxx.xxx.xxx.xxx', 'Name': 'vmk0', 'IPv4 Netmask': '255.255.255.224'}, {'Address Type': 'DHCP', 'DHCP DNS': False, 'IPv4 Broadcast': '169.254.255.255', 'Gateway': '0.0.0.0', 'IPv4 Address': '169.254.124.77', 'Name': 'vmk1', 'IPv4 Netmask': '255.255.0.0'}]", error: ""
2017-07-13T18:41:37Z hostprofiletrace: ^^^hostProfiles-69402-20170713-184135-cli-commands.trc^^^345^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv6', 'address', 'list'], status: (0), output: "[{'Address': 'fe80::250:56ff:fe6f:de7', 'Interface': 'vmk0', 'Type': 'STATIC', 'Netmask': 64, 'Status': 'PREFERRED'}, {'Address': 'fe80::250:56ff:fe63:da2c', 'Interface': 'vmk1', 'Type': 'STATIC', 'Netmask': 64, 'Status': 'PREFERRED'}]", error: ""
2017-07-13T18:41:44Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^203^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server IP': '', 'Is Using IPv6': False, 'Enabled': False, 'Network Server Port': 0, 'Host VNic': ''}", error: ""
2017-07-13T18:41:45Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^125^^^ Command: esxcli ['network', 'ip', 'interface', 'remove', '--interface-name', 'vmk0'], status: (0), output: "True", error: ""
2017-07-13T18:41:50Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^182^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'remove', '--portgroup-name', 'P-testpg1-0-0', '--vswitch-name', 'M-testdvs'], status: (0), output: "True", error: ""
2017-07-13T18:41:50Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^186^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'remove', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T18:41:50Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^132^^^ Command: esxcli ['network', 'vswitch', 'standard', 'remove', '--vswitch-name', 'M-testdvs'], status: (0), output: "True", error: ""
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^183^^^ Command: esxcli ['network', 'vswitch', 'standard', 'portgroup', 'add', '--portgroup-name', 'Management Network', '--vswitch-name', 'vSwitch0'], status: (0), output: "True", error: ""
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^164^^^ Command: esxcli ['network', 'ip', 'netstack', 'list'], status: (0), output: "[{'Key': 'defaultTcpipStack', 'Name': 'defaultTcpipStack', 'State': 4660}]", error: ""
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^151^^^ Command: esxcli ['network', 'ip', 'netstack', 'set', '--netstack', 'defaultTcpipStack', '--ccalgo', 'newreno'], status: (0), output: "True", error: ""
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184144-cli-commands.trc^^^264^^^ Command: esxcli ['network', 'ip', 'interface', 'ipv4', 'get'], status: (0), output: "[{'Name': 'vmk1', 'IPv4 Netmask': '0.0.0.0', 'Address Type': 'DHCP', 'DHCP DNS': False, 'IPv4 Broadcast': '0.0.0.0', 'IPv4 Address': '0.0.0.0', 'Gateway': '0.0.0.0'}]", error: ""
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184143-ApplyHostConfigs-error.trc^^^512^^^ b'<object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:vim25" xsi:type="LocalizedMethodFault"><fault xsi:type="InvalidArgument"><faultMessage xsi:type="LocalizableMessage"><key>com.vmware.vim.profile.engine.UnexpectedError</key><arg><key>error</key><value xsi:type="xsd:string">A specified parameter was not correct: DnsConfig.VirtualNicDevice</value></arg><arg><key>context</key><value xsi:type="xsd:string">Exception while applying host config</va'
2017-07-13T18:41:51Z hostprofiletrace: ^^^hostProfiles-69502-20170713-184143-ApplyHostConfigs-error.trc^^^195^^^ b'lue></arg><message>Error: A specified parameter was not correct: DnsConfig.VirtualNicDevice.</message></faultMessage><invalidProperty>DnsConfig.VirtualNicDevice</invalidProperty></fault></object>'
The above examples were using DHCP for vmk0 and vmk1, with vmk1's network not having a valid scope. I just left it as DHCP for simplicity's sake. Different error text is logged when assigning static IPs, but the overall behavior is the same. It won't re-create vmk0 because the logic improperly handles the existence of vmk1. With static IPs, it throws errors about the gateway from the default netstack or host port group not being on the same network as the leftover vmk1 interface.
I think this behavior may be driven by /lib64/python3.5/site-packages/hostprofiles/pyEngine/applyConfigSpec.pyc. There are no uncompiled representatations of scripts in this directory left in the ESXi install, so I ran them through a decompiler. This one seems to have the most logic in it, but I'm not Python literate enough to discern something as simple as an 'if dvs re-create vmk0' type code block. The decompiler did have trouble specifically with the NetEsxCli function, but I suspect it is related more to the syntax of running the esxcli command rather than logic direction.
Has anyone successfully worked around this behavior without making design compromises or shifting configuration away from host profiles?
Are there any VMware developers out there who can explain this behavior and provide an ETA on a fix?