I have downloaded HDP2.5 virtual box and running in VM Workstation player. I have also added host entry 127.0.0.1 sandbox.hortonworks.com to hosts file in windows\system32\drivers\etc\hosts.
still I am not able to use Virtual box through my laptop's browser (Host computer) and getting below message:
The site can't be reached. 127.0.0.1 refused to connect. It seems 127.0.0.1 connection is redirecting to my PC itself not to virtual box.
Simply adding the IP 127.0.0.1 in your desktop isn't enough or the correct method.
Firstly make sure to choose the correct VM network settings, then after logging to the VM cli as root,run
The IP you get from the above command is the one you enter in the hosts file with the FQDN of your sandbox as you did before .
Have a look at the attached document. Then from putty you can access your sandbox as the hostname or IP will resolve it the entry in the \windows\system32\drivers\etc\hosts is correct.
Hope that helps