What do you mean by it not being able to connect to the internet?
Does this affect other VMs or just one?
What troubleshooting have you already tried?
What is the network setup of your ESXi host, of your VM, and of the guest OS in your VM?
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog