3

I am trying to setup a windows VM on Ubuntu host using Virtual box. Since I would be running a SQL server database on the windows VM I am trying to setup a static IP on that VM. In order to do that I followed the instruction available here.

Below are my Virtualbox Network configurations for host-only adapter:

enter image description here enter image description here

Here is my Network configuration for windows VM:

enter image description here

and lastly here is my configuration for the windows network adapter where I have assinged the static IP

enter image description here

When I run ifconfig, this is what I get for vboxnet1 adapter on my ubuntu host

vboxnet1  Link encap:Ethernet  HWaddr 0a:00:27:00:00:01  
inet addr:192.168.57.1  Bcast:192.168.57.255  Mask:255.255.255.0
inet6 addr: fe80::800:27ff:fe00:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:0 (0.0 B)  TX bytes:15853 (15.8 KB)

Even after this when I ping the assigned static IP I am not getting any response:

> ping 192.168.57.103
PING 192.168.57.103 (192.168.57.103) 56(84) bytes of data.
^C
--- 192.168.57.103 ping statistics ---
942 packets transmitted, 0 received, 100% packet loss, time 946463ms

Please let me know if I am missing anything? Let me know if you need any other information that would be helpful for debugging this issue.

* Edited with solution *

As per @cslotty's response below the problem was that the ICMP echo port was blocked in windows firewall. enabling that port fixed the issue.

enter image description here

1 Answer 1

1

Try to change the subnet mask to 255.255.255.255! You're not configuring that Windows VM to use a whole subnet, but only one address, right?

http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/

After all settings are correct, the Windows firewall could be the blocking issue.

6
  • you are right I am planning on using that windows VM to use only a single IP and not the whole subnet so I changed the mask to 255.255.255.255. But unforunately that did not resolve the issue.
    – Amrish
    Sep 18, 2015 at 14:13
  • Have you tried pinging out of that VM?
    – cslotty
    Sep 18, 2015 at 14:15
  • And you could try to set the default gateway in your Windows network config, too, otherwise it might not have any route.
    – cslotty
    Sep 18, 2015 at 14:18
  • I am able to ping the host from the guest. Not the other way round though.
    – Amrish
    Sep 18, 2015 at 14:33
  • 1
    You were right! ICMP port for echo request was blocked by default! I don't know how that happened. Enabling that port fixed the issue. Thanks!
    – Amrish
    Sep 18, 2015 at 15:08

You must log in to answer this question.

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