Host only networking fails to pass traffic.

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Perkins
Posts: 8
Joined: 7. Nov 2007, 09:53

Host only networking fails to pass traffic.

Post by Perkins »

Ubuntu 9.04 host.
Virtual Box PUEL 2.2.4 r47978

NAT networking is fine.
Bridged networking is fine.

Host only networking:
Host can ping its own address on the host-only adapter.
Guest gets a DHCP address and can ping itself.
Guest pinging host receives no response.
Host pinging guest gets the following error message: "ping: sendmsg: Operation not permitted"

I am not able to find any advice on this either on google, or these forums. Has this happened to anyone before? Or have I stumbled across a unique configuration?
Last edited by Perkins on 29. Jun 2009, 21:09, edited 1 time in total.
Perkins
Posts: 8
Joined: 7. Nov 2007, 09:53

Re: Host only networking fails to pass traffic.

Post by Perkins »

As usual, I have a brainstorm 30 seconds after posting and fix it myself.

Apparently, with this install, /dev/vboxdrv has rw permissions only for root. I had looked at it earlier and seen that it was in the vboxusers group and assumed that it was not the cause of the problem.

I changed the permissions to 660, and host-only networking now functions properly. Would I be correct in thinking that this should count as a bug?
Perkins
Posts: 8
Joined: 7. Nov 2007, 09:53

Re: Host only networking fails to pass traffic.

Post by Perkins »

Ok, so it's only half fixed. With the permissions change I can now ping the host from the guest. However, I still get the same "operation not permitted error" when attempting to ping the guest from the host.

Running the ping as root doesn't work either.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Host only networking fails to pass traffic.

Post by Sasquatch »

The privileges on my system for /dev/vboxdrv are crw------- root vboxusers. If that is not the case on your end, then you might want to recompile the module (sudo /etc/init.d/vboxdrv setup).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Perkins
Posts: 8
Joined: 7. Nov 2007, 09:53

Re: Host only networking fails to pass traffic.

Post by Perkins »

Those are precisely the permissions I had. And they are what it gets set back to on a reboot. Changing them to crw-rw---- made it partially work temporarily. I have since rebooted, and now even that change doesn't work. So there must be something else I'm missing here.

Recompiling the kernel module makes no noticeable difference either.
Perkins
Posts: 8
Joined: 7. Nov 2007, 09:53

Re: Host only networking fails to pass traffic.

Post by Perkins »

AHA! Oh that helpful little firewall program which decided that since it can only configure one interface, it should block *all* traffic on the others... I am pretty sure it's not supposed to do that... So now I get to go bother somebody else for a while. Thanks for the help.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Host only networking fails to pass traffic.

Post by Sasquatch »

Let me guess, firestarter? It's been a real PITA on my end too once. I quickly discovered the problem. It asked me which NIC I use for internet, gave it and it shut down any traffic on my peer lan between my PC and laptop.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply