Hi, I am trying to setup HCX in my nested LAB.
The HCX's OS -named "Linux FromScratch"- is really different from the common Ubuntu / SLES-RHEL Linux flavors I know, so I am getting a bit lost with networking, let me explain my issue :
Before starting let me tell you how I enable a VM in my Workstation LAB to reach internet :
- For Windows machine I just add a new NIC and assign it to the VMKernel that has DHCP enabled and is bound to my VMware Workstation Adapter that is NAT enabled, all works good, for Linux machine (SLES-RHEL) I do the same : I add a new Adapter in Workstation and make it configured as NAT. Notice that for DHCP I rely on the VMware Workstation DHCP VMnet8 internal server and I am not using the Domain Controller for DHCP )
Ok, now back to HCX issue : during the installation of the HCX.ova when I reach the network part I put a static IP for the HCX VM ( 192.168.1.213 ) this subnet is the Data one configured for Data local domain communication ( AD, vCenters etc.. )
I tried 3 scenarios, only scenario 3 succeeds but I cannot use it for the reasons I will explain, here are their descriptions :
1) If I make my IP static ( 192.168.1.213 ) and don't specify any route then nothing works ( meaning that when I want to activate the HCX License I get stuck, which makes sense since 192.168.1.213 cannot reach the connect.hcx.vmware.com IP : 188.8.131.52 ).
2) If I specify routes as follow ( to reach any internal Domain network go through 192.168.1.213 interface, actually the Gateway for this subnet is 192.168.1.1, and to reach Internet - 0.0.0.0/0 - go through the second DHCP enabled NIC ), this fails as well.
"ip a" output :
and "ip route" output :
eth0 routes for Data local domain subnets :
and eth1 ( DHCP enabled interface ) route to the internet :
I even tried to manipulate the /etc/systemd/network myself, but looks like it is really not reflecting what I do.. maybe the config is written somewhere else.. For me, this flavor of Linux is not good at all..
3) If I keep only 1 NIC, and make it DHCP enabled ( along with routes being only for internet, nothing local ) then I can get to the internet and ping the connect.hcx.vmware.com IP, here the License activation works indeed, but then I am not having a static IP which is not the expected design for a company ! ( I mean having a dynamic IP for a VM like HCX ), here are screenshots of this scenario :
wired.network file for eth0 : ( I just enabled DHCP, nothing else )
"ip a" output, plus a try to ping the License activation portal : ( I can ping connect.hcx.vmware.com ) :
"ip route" output :
Ok, as expected now I am not able to open the HCX Manager with the DNS name of the machine ( hcx-target.vlab.local ), but I can do it with its IP ( the dynamically assigned one : 192.168.64.35 )
and License Validation works :
But I cannot afford using a Dynamic IP for such a deployment ! that would make no sense ..
Any idea would be much appreciated, since I feel I am trying the same things in loop.
Hi, it might be worth asking this in the Workstation section as installing HCX on Workstation isn't supported and it's not something I've tried.
From memory HCX manager doesn't support having its IP address changed so I assume there is underlying code which blocks any manual intervention. Even if you manage to change it within the OS it may break HCX functionality.
Can I ask where you are putting in the static route?
Deploying HCX manager into ESXi with a static IP works every time I've done it so there must be some Workstation workaround for your issue.
Hi, thanks for your reply, find my answers / comments inline :
You said : "Can I ask where you are putting in the static route?"
=> During the installation you are requested to fill the HCX VM with static routes, I indicate two routes : one for local traffic and one for Internet. ( I explained this in the original post : to reach any internal Domain network go through 192.168.1.213 interface, actually the Gateway for this subnet is 192.168.1.1, and to reach Internet - 0.0.0.0/0 - go through the second DHCP enabled NIC, but this fails to get me into Internet for License activation ), if this does not work I try to force the routing using the file wired.network file, just by adding the [Route] section :
Again, here is a screenshot of the wired.network file as well as the "ip route" output : ( eth0 is the static interface, eth1 is the second NIC bound to the DHCP enabled network meant to reach the internet )
You said : "Deploying HCX manager into ESXi with a static IP works every time I've done it so there must be some Workstation workaround for your issue."
=> Ok, here is my question for you then : how do you make your HCX VM reach Internet in order to get the License activation ? since you confirm it has a static IP within your local domain network, then how do you do your routing with this ugly Linux version for it to reach the connect.hcx.vmware.com IP : 184.108.40.206 ?
Chris, are you reading my entire posts ? or just reading the 1st line only ?
I need to reach the Internet, so I am adding a second NIC, I do it on purpose, the OVA does not come with a second NIC indeed.
No, it doesn't come with a second NIC as it isn't supported to run a second NIC. There are static route options in the admin interface if you want to configure static routes.