1

I have a Linux guest running in VirtualBox on a Windows computer.. If I try to access outside sites from the VM, like yahoo.com, cnn.com etc it works great but if I try to access local servers I can't connect to them or ping them.. what can this be?

7
  • Try to see whether this behaviour persists if you change the Network configuration from NAT to bridged. Careful, under "bridged", you will have to select the interface your host is currently using, wifi, ethernet, whatever. Commented Nov 4, 2013 at 16:15
  • now I can ping it but if I try to ssh into a server it hang but if I do it from the host it ok?
    – JMSAZ2013
    Commented Nov 4, 2013 at 17:05
  • how do you authenticate to the ssh server? Password? Cryptographic key? Does the ssh server have any restriction in place (AllowUser, DenyUser...) Commented Nov 4, 2013 at 17:08
  • I have a account and the password.. it works from the host so I dont know why it woul not work from the VM
    – JMSAZ2013
    Commented Nov 4, 2013 at 17:11
  • Can you ping the ssh server? If so, then it's a different problem than the one you started out with. Commented Nov 4, 2013 at 17:12

2 Answers 2

0

Have your try that ? How to access my local server on my VirtualBox virtual machine?

2
  • no the guest can getto the internet.. it looks like it cant see local ip addess
    – JMSAZ2013
    Commented Nov 4, 2013 at 16:53
  • Ok I mistranslated. Sorry
    – hexaJer
    Commented Nov 4, 2013 at 17:04
0

I ran into a similar situation while doing some testing. An easy solution is to use two network interfaces in your VM, a NAT connection to get out to the internet and a localhost only connection. It takes a little more work to setup but should solve your problem.

2
  • no the issue is that I cant get to the internet but could not get to my firms servers... now I can ping them but cant access them
    – JMSAZ2013
    Commented Nov 4, 2013 at 17:18
  • So the host Windows machine can get to all services on your firm's servers that you need but it's the VM on that Windows machine that can't get to those servers?
    – Green
    Commented Nov 5, 2013 at 18:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .