Hi Gurus,
Need your help.
I have installed VMbox on my Win7 host and have installed Linux on guest (The image is on External HDD)
I have NAT connection
So the problem is I am not able to ping my linux (Guest) on external hdd but it works the other way around. I am able to ping from Linux to Win7 (Host).
All firewalls on Win7 are disabled. Please help what I am doing wrong.
Host(Win7) not able to ping Guest (Linux)
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Host(Win7) not able to ping Guest (Linux)
NAT will not allow communication started from the host to the guest, so pinging host to guest will fail. NAT allows the guest to see the host's network, so pining guest to host will work.
To get ping to go both ways, try Bridged or Host-Only.
To get ping to go both ways, try Bridged or Host-Only.
Re: Host(Win7) not able to ping Guest (Linux)
Hi scottgus1,
Already tried that but it did not work either. Again this issue happens only when my vm disk is stored in external hdd. If I keep it on same laptop, it works fine. Not sure if this will work at all from portable hdd.
Already tried that but it did not work either. Again this issue happens only when my vm disk is stored in external hdd. If I keep it on same laptop, it works fine. Not sure if this will work at all from portable hdd.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Host(Win7) not able to ping Guest (Linux)
I can't see any reason why where the virtual disk is stored would make any difference to the networking.
What exactly happens if you try to use host only. "Did not work" is not much information to work with. Please give details of what network setting the guest has and what network config the guest receives.
What exactly happens if you try to use host only. "Did not work" is not much information to work with. Please give details of what network setting the guest has and what network config the guest receives.
Bill
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Host(Win7) not able to ping Guest (Linux)
There can be no "Again", because you did not mention the "work/no-work depending on the drive used" issue in your first post. You only said the guest was on an external drive, no mention of another test on an internal drive.aoza wrote: Again this issue happens only when my vm disk is stored in external hdd. If I keep it on same laptop, it works fine.
To get good help, in addition to Bill's advice to relate details more than "didn't work", please tell the whole story. Further:
Already tried what? There were two suggestions for network settings.Already tried that
The location of the guest's disk on the host drives, internal or external, has nothing to do with whether ping goes through on NAT or not. Two entirely different situations. Unless you usage of the term "VM disk" or "image" is different that what we use those terms for.
A guest consists, at the least, of a .vbox xml file and a virtual disk file. It is possible, though not recommended, for the .vbox file to be on one host disk and the virtual disk file to be on another disk. If you have your .vbox file on your host and are bouncing your virtual disk file between the internal drive and external drive, that's one scenario. How moving the virtual disk between internal and external drives changes ping behavior is beyond me. If, though, you have a .vbox file and virtual disk on an internal drive, and a different .vbox file and virtual disk on the external drive, then you are really running two different guests, and each guest can have very different settings that can make both-ways-ping work on one guest and not on the other.
Start the guest under the condition where both-ways-ping works. Run a few pings both ways. Then shut down the guest and post a zipped log marked as "ping working" here.
Start the guest again under the condition where both-ways-ping does not work. Attempt to run a few pings both ways. Then shut down the guest and post a zipped log marked as "ping failing" here.