Guest connected to 2 host-only networks can send only on one

Discussions related to using VirtualBox on Linux hosts.
Post Reply
moriarty
Posts: 2
Joined: 17. Jul 2009, 13:07
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Linux

Guest connected to 2 host-only networks can send only on one

Post by moriarty »

I have a Gentoo host, and two Ubuntu 8.04 Server guests, using VB 3.0.2. One of the guest is configured with two cards, connected to vboxnet0 and vboxnet1 respectively. However, traffic from the guest card configured for vboxnet1 is sent to vboxnet0 also. No traffic from vboxnet1 on the host shows up on any card on the guest either. I even configured different card models, so I can be sure which card is connected to which virtual network.

Anyone else had this problem? Or several networks is an uncommon usage pattern?
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: Guest connected to 2 host-only networks can send only on one

Post by Sasquatch »

Is the IP config the same for both networks, or different? If one card has 192.168.1.3 and the other has 192.168.1.6, then you're getting what you set.
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.
moriarty
Posts: 2
Joined: 17. Jul 2009, 13:07
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Linux

Re: Guest connected to 2 host-only networks can send only on one

Post by moriarty »

Yes, I disabled DHCP and manually set 192.168.204/24 for vboxnet0 and 10.9.8/24 for vboxnet1.
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: Guest connected to 2 host-only networks can send only on one

Post by Sasquatch »

Ok, now we need the full network config of your host (those two adapters), the Guests and the output from them of ifconfig and route.
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.
virta
Posts: 1
Joined: 21. Jul 2009, 09:11
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Linux (Debian, Ubuntu)
Location: Finland

Re: Guest connected to 2 host-only networks can send only on one

Post by virta »

moriarty wrote:Anyone else had this problem? Or several networks is an uncommon usage pattern?
I have the same problem. I'm running on Ubuntu 9.04. Also it seems that I have to create vboxnet1 again after every boot.

Also could be somehow connected to problem that I seem to loose connection to all virtual machines from GUI when I'm creating new vboxnet. Running vms show offline as status on GUI and I have to restart them.
hmw
Posts: 4
Joined: 21. Jul 2009, 15:30
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Linux

Re: Guest connected to 2 host-only networks can send only on one

Post by hmw »

Hi,

I might have a similar problem on a Debian host system. A had created two (or more) host only networks with disjunct subnets. If I start a VM that has it's NIC bound to the second host only network, the IP adress of the corresponding virtual adapter on the host system changes to the IP adress of the virtual adapter of the first host only network. So both share the same IP configuration. I guess this might be a bug. Can you verify if the virtual host interfaces are configured correctly after starting up the VMs, please? Any hints how to work around this are welcome, too.

Regards
hmw
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: Guest connected to 2 host-only networks can send only on one

Post by Sasquatch »

Confirmed. The second Host-Only adapter is not configured correctly. Please open a bug report in the Bugtracker (separate account needed).
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.
hmw
Posts: 4
Joined: 21. Jul 2009, 15:30
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Linux

Re: Guest connected to 2 host-only networks can send only on one

Post by hmw »

Hi,

thank you for the reply. Meanwhile I've found a bug report (http://www.virtualbox.org/ticket/4493) that seems to be similar, except that the IP addresses in the report seem to be in the same subnet. But I guess the bug is triggered by the same mechanism.

Regards
hmw
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: Guest connected to 2 host-only networks can send only on one

Post by Sasquatch »

You can add additional data to the current bug report. The more information they get, the better.
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