Only a single VM can use host interface networking at a time

Discussions related to using VirtualBox on Linux hosts.
Post Reply
The Metatron
Posts: 6
Joined: 20. Jan 2008, 21:28
Location: Brazil
Contact:

Only a single VM can use host interface networking at a time

Post by The Metatron »

Hello,

I installed VirtualBox 1.6.0 on my Arch Linux host, and have been successfully using it.

I configured a host interface (bridging) so that my guest OSes would be able to see the other machines in the LAN (my network card connects to a router).

It works OK as long as I start only one VM, but when I try to start a second VM it fails with error VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).

This makes VirtualBox less useful for me, as I need multiple VMs running to test network environments.

How can I fix this?

Thanks.
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

Post by Sasquatch »

You need a separate Host Interface for each VM you want to run at the same time. If you created only one Host Interface, create more and select those in the settings of each VM. So VM1 will have vbox0, VM2 will have vbox1 and so on.
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.
CaptainFlint
Posts: 107
Joined: 9. Oct 2007, 10:17
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Various Windows and Linux distros
Location: Moscow, Russia
Contact:

Post by CaptainFlint »

So, if I have 20 VMs, I have to create 20 Host Interfaces to be sure that I'm able to run every 2 machines simultaneously? What's the reason of such design? For example, Parallels Workstation needs only 1 single Loopback adapter, and all virtual machines can be connected to it and work together. That's one of the few points that really disappoints me in VirtualBox…
DracoZA
Posts: 12
Joined: 13. May 2008, 15:25
Location: South Africa

Post by DracoZA »

You need x amount of interfaces for however many concurrent virtual machines you are going to run. If you only run one at a time then change the interface name before you connect if you dont want to create additional interfaces.
Virtual Box 1.5.6 - Ubuntu 8.04 Host with Windows XP, Windows 2003 Server as guests.
CaptainFlint
Posts: 107
Joined: 9. Oct 2007, 10:17
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Various Windows and Linux distros
Location: Moscow, Russia
Contact:

Post by CaptainFlint »

DracoZA wrote:If you only run one at a time then change the interface name before you connect if you dont want to create additional interfaces.
If the machine in the saved state (and most of them usually are), it's impossible to change the network interface.
DracoZA
Posts: 12
Joined: 13. May 2008, 15:25
Location: South Africa

Post by DracoZA »

If that is your scenario, then create enough interfaces for each machine.
Virtual Box 1.5.6 - Ubuntu 8.04 Host with Windows XP, Windows 2003 Server as guests.
The Metatron
Posts: 6
Joined: 20. Jan 2008, 21:28
Location: Brazil
Contact:

Post by The Metatron »

DracoZA wrote:If that is your scenario, then create enough interfaces for each machine.
This does it, I guess. Thank you.
Post Reply