VMware Cloud Community
mrd83
Contributor
Contributor

VCSA, vCenter Server Appliance 7 issue with gateway outside subnet - RESOLVED

Posting just in case someone else has the same problem as me.

Problem description: trying to add a gateway outside IP subnet fails*:

*my IP configuration (OVH failover IP - according to OVH failover IP configuration guide):
IP address (failover IP): 53.X.Y.Z
netmask: 255.255.255.255
gateway: 147.A.B.254 [where 147.A.B.C is an address of your dedicated server]

When trying to add/modify above IP configuration:

using https://vcenter.my.domain:5480/#/ui/networking
results in "Unable to validate the specified IPv4 configuration."

using DCUI of vcenter server:
results in gateway not being saved at all

using "/opt/vmware/share/vami/vami_config_net" inside vcenter server (ssh connection)
results in gateway not being saved at all

RESOLUTION:

1. connect to vcenter server via ssh
2. vim /etc/systemd/network/10-eth0.network
modify the file as shown below:

[Match]
Name=eth0

[Address]
Address=53.X.Y.Z/32
Peer=147.A.B.254/32
LinkLocalAddressing=no
DHCP=no

[Route]
Gateway=147.A.B.254
Destination=0.0.0.0/0

3. save file [:wq <enter> for vim]
4. ifdown eth0 ; ifup eth0 <enter>
5. Configuration is successfully saved. You can check it using:
/opt/vmware/share/vami/vami_config_net
or
via DCUI
or
via vcenter server management (https://vcenter.my.domain:5480/#/ui/networking)

Do not attempt to change configuration through DCUI now - or it'll be overwritten (by no gateway at all).

0 Kudos
1 Reply
shahnazari
Contributor
Contributor

@mrd83 

It does resolve the initial problem. But then when I continue with the 2nd stage installation, it asks the IP config info again and doesn't let continue with the previously set config! So I had to set the gw to the same range of additional IP with subnet 24 to move on, then in the middle, installation failed 😕 

Encountered an internal error. see /var/log/firstboot/vlcm_firstboot.py_11633_stderr.log
 
cat /var/log/firstboot/vlcm_firstboot.py_11633_stderr.log
Traceback (most recent call last):
File "/usr/lib/vmware-vlcm/firstboot/vlcm_firstboot.py", line 167, in <module>
main()
File "/usr/lib/vmware-vlcm/firstboot/vlcm_firstboot.py", line 129, in main
fb = VlcmFirstboot(VLCM_COMP, VLCM_SOLUSERNAME)
File "/usr/lib/vmware-vlcm/firstboot/vlcm_firstboot.py", line 50, in __init__
os.path.join(get_install_parameter('upgrade.import.directory'), "vlcm")
File "/usr/lib/vmware/site-packages/cis/tools.py", line 88, in get_install_parameter
raise InstallParameterException('Install-parameter %s not set' % param)
cis.exceptions.InstallParameterException: {
"detail": [
{
"id": "install.ciscommon.internal.error",
"translatable": "Encountered an internal error.\n\n%(0)s",
"args": [
"Install-parameter upgrade.import.directory not set"
],
"localized": "Encountered an internal error.\n\nInstall-parameter upgrade.import.directory not set"
}
],
"componentKey": null,
"problemId": null,
"resolution": {
"id": "install.default.failure.resolution",
"translatable": "This is an unrecoverable error, please retry install. If you encounter this error again, please search for these symptoms in the VMware Knowledge Base for any known issues and possible resolutions. If none can be found, collect a support bundle and open a support request.",
"localized": "This is an unrecoverable error, please retry install. If you encounter this error again, please search for these symptoms in the VMware Knowledge Base for any known issues and possible resolutions. If none can be found, collect a support bundle and open a support request."
}

0 Kudos