/host-specific/########-####-####-####-############/esx/network/vmknics/1/ip/ipv4_address Can not set default gateway on 'vmk1' because ip address unset.
/profile/esx/network/net_stacks/0/routing_config/ipv4_default_gateway Can not set default gateway '###.###.###.###' on netstack 'defaultTcpipStack', network unreachable.
/host-specific/########-####-####-####-############/esx/esx/network/vmknics/0/ip/ipv4_address Can not set default gateway on 'vmk0' because ip address unset.
The core configuration for the vSphere Configuration Profile is derived from a reference host, however specific network settings such as IP addresses need to be configured with host-specific data in the configuration profile. This issue is observed when the individual host details are not explicitly defined within the configuration profile for the additional hosts being added or remediated.
Follow the below steps to add the "host-specific" details in the Configuration Profiles:
/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -c "select id, dns_name, ip_address, uuid_bios from vpx_host"id | dns_name | ip_address | uuid_bios ----+----------------+----------------+--------------------------------------12 | ESXI-FQDN | 192.XX.XX.XX | 8a######-####-e5##-d1##-aa##########16 | ESXI-FQDN | 192.XX.XX.XX | 95######-####-68##-02##-0f##########host-specific" configuration."host-specific": { "8a######-####-e5##-d1##-aa##########": { "esx": { "network": { "vmknics": [ { "ip": { "ipv4_address": "###.###.###.###", "ipv4_subnet_mask": "255.255.255.0" }, "device": "vmk0" }, { "ip": { "ipv4_address": "###.###.###.###", "ipv4_subnet_mask": "255.255.255.0" }, "device": "vmk1" } ], "net_stacks": [ { "key": "defaultTcpipStack", "host_name": "hostname.example.com" } ] } } }, "95######-####-68##-02##-0f##########": { "esx": { "network": { "vmknics": [ { "ip": { "ipv4_address": "###.###.###.###", "ipv4_subnet_mask": "255.255.255.0" }, "device": "vmk0" }, { "ip": { "ipv4_address": "###.###.###.###", "ipv4_subnet_mask": "255.255.255.0" }, "device": "vmk1" } ], "net_stacks": [ { "key": "defaultTcpipStack", "host_name": "hostname.example.com" } ] } } } }