-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If management interface of the VCH is not Layer 2 adjacent to vSphere management endpoints VCH will not work. #3081
Comments
cc @hmahmood |
@mlh78750 to Login to the VCH via ssh and ensure the default route is on the external interface what is the default password for root ? |
@vmwarelab my understanding is that you have to set the root password explicitly when you enable SSH access on the VCH by running @mlh78750 and @hickeng is this assumption correct? Should |
@stuclem is correct. You will set the password or key with the debug command. |
@mlh78750 in that case, shouldn't we make specifying either of |
@stuclem the default password is "password" - I'd highly recommend that people specify a different one. Until you run the debug command, neither console access nor ssh is enabled so the password is irrelevant. Higher debug level with vic-machine (I think >2) results in the console login being enabled by default, and the default password is provided for that scenario specifically. We could modify this so that if you don't specify a password then a randomly generated one is used and printed to the user. That would be trivial to accomplish, but this is intended for interactive debug purposes only - it shouldn't be needed or used in normal operation or deployment once we've identified and addressed our current failure scenarios. |
Just noticed the kind/note flag on this one. Attempted to write this up as follows:
@mlh78750 is this anywhere near accurate? |
@stuclem That looks good. We might need to give them some more details on how to add the routes.
Where |
Thanks @mlh78750, updated RNs accordingly. Removing kind/note. |
Configuration of the management gateway for the VCH needs to include networks that should use that gateway.
Currently we have the options:
for setting up a VCH.
The problem is that the external (soon to be renamed public) interface should have the default route. Therefore, we need to allow the customer to specify the network(s) that need to route over the management network/interface of the VCH and through the gateway provided in --management-network-gateway. The way it works in .7.0 is that randomly one of the interfaces and gateways becomes the default route on the VCH. This means that if the external interface gateway is picked as the default route, then all vSphere management traffic that is not L2 adjacent to the VCH management interface will route out of the external interface and for all reasonable security configurations for customers will not reach the target.
Proposal:
Change --management-network-gateway 192.168.2.1/24 to --management-network-gateway 192.168.3.0/24,192.168.128.0/22:192.168.2.1/24. What this would do is cause the VCH to know that all of the network addresses in 192.168.3.0-255 and 192.168.128.0-192.168.131.255 can be reached by sending packets to 192.168.2.1. Which would result in vic-init adding the following routes into the VCH.
The default route would remain on the external interface. The specifier would allow 1 to many network spaces separated by commas with a colon and then the gateway with mask.
Workaround for 0.7.0:
Use vic-machine debug to turn on ssh access to the VCH.
Login to the VCH via ssh and ensure the default route is on the external interface.
Add routes as needed to the management network.
The text was updated successfully, but these errors were encountered: