Not able to connect from Desktop to CentOS VM

I created a VM(Centos on my Windows10 laptop 64bit, using VirtualBox). after all the setup and importing image (from osboxes for centos) , i started the VM but not able to ping the centos VM . output from CMD
Pinging 192.168.1.4 with 32 bytes of data:
Reply from 192.168.1.3: Destination host unreachable.
Reply from 192.168.1.3: Destination host unreachable.
Reply from 192.168.1.3: Destination host unreachable.
can someone help with step by step guide to troubleshoot?

Hello, @ranjan.k29
Can you please login to VM and try to ping www.google.com? share the o/p

ping google.com
ping : google.com: Name or Service not known
my adapter one is set to NAT

Hello, @ranjan.k29
Enable the Adapter 2 and choose “Host-only Adapter” then in the name section choose “VirtualBox Host-Only Ethernet Adapter”.
Let me know if it helps.

hi ,
thanks for suggestion here is how it was resolved. i googled a bit and got ping google.com fixed in my VM ( thru nmcli explained below, my ethernet was not active and had to activate , as route -n was giving disconnected o/p) once my ethernet was connected all was good.
route -n (give your rote and active devices)
nmcli -d (runs with root else sudo)
nmtui ( activate ethernet connection)
reboot now( reboot VM)

Thanks for sharing this.

Thanks for sharing your experience @ranjan.k29.