Hello, I have access to "vmware esxi" over the Internet and I have configured two virtual machines as shown in the image, but they cannot connect to the Internet, nor can they find a DHCP server.
ESXi should not be made accessible over the Internet as it wasn't designed for that and is a security risk. Second, unless you're using NAT or other method of routing, you would have to assign individual public IPs to each VM. None of this stuff you should probably be doing in your case.