I have an Ubuntu 14.04 OS as my host OS and CentOS 6.6 (Minimal) as my guest OS running on VirtualBox.

I can SSH the guest OS from my Ubuntu terminal, but I can't access the localhost of CentOS via the browser in Ubuntu. I have installed nginx as my local server. I am using a bridged adapter (using eth0).

  • localhost of host/guest is not a localhost for guest/host acc. To access anything in the guest from the host you have to use guest IP (and guest IP is differ of host IP — they does, right?) – Hi-Angel Jun 25 '15 at 2:59

You can access the guest by typing in the IP address of the guest in a browser. To find the IP address, you can ssh into the guest OS and run ip a | grep net if it is a bridged adapter the IP address will likely start with 192.168..

  • Thank you very much. It seems that I forgot to start nginx. – ilikecandy397 Jun 25 '15 at 4:29
  • You are very welcome! That happens to the best of us. :) – levlaz Jun 25 '15 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.