how to create more than one vboxnetN

Discussions related to using VirtualBox on Linux hosts.
Post Reply
guybrush-
Posts: 2
Joined: 22. Apr 2009, 21:02
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: OEL 5

how to create more than one vboxnetN

Post by guybrush- »

Hi guys,
I'm just starting with the virtualbox latest release 2.2 buitl from the source code on a debian lenny amd64.
The thing I that I need to create 2 or 3 virtual machines on the same host. sharing between them 3 isolated networks.
I would like to be able to connect from the host with the guest though any of the 3 networks, but I don't need any internet access or whatever.

I think I should use hostonlyif but the think is that I'm only able to setup vboxnet0 not vboxnet1 or vboxnet2 (so as a workarround) now I have
on my guests eth0 using hostonly. eth1 and eth2 using private network.

So can access to the host only though one adapter but it's better than nothing.

Any idea?. I have tried brighet network but I only have a phisical adapter and I cant use virtual adapter on virtualbox like eth0:0 eth0:1 eth0:2 in order to create 3 different networks.

Kind regards. I hope any one tell me how to setup this issue, I think the issue is setting up the vboxdrv but I don't know how. :-)

bye
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: how to create more than one vboxnetN

Post by Sasquatch »

You can connect more than one VM to the Host-Only interface, so you don't need several adapters etc. If you even want the VMs to be separated from each other, use the old method of Host Interface noted in the VirtualBox FAQ, where you need the package UML-utilities to create TAP interfaces. A bit overkill if you ask me though.
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.
guybrush-
Posts: 2
Joined: 22. Apr 2009, 21:02
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: OEL 5

Re: how to create more than one vboxnetN

Post by guybrush- »

hi,
thanks for your answer. I don't know if I understood it right.
by VM you mean virtual machines don't you?

if a virtual machine has 3 interfaces, and all of them use the same hostintif this only asing an IP to the vboxnet0 interface on the host, so how can I have connection between the host and the guess?.

example.
host vboxnet => 10.0.0.1
guest => eth0 => 10.0.0.2 eth1=> 10.1.0.2, eth2 =>10.2.0.2.

I cant see how the host can comunicate with the guest using the eth1 or eth2.

Regards.
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: how to create more than one vboxnetN

Post by Sasquatch »

You state that you want to create two or three VMs (Virtual Machines), and they need to be able to communicate with the Host. My solution does just that. Why are you changing the subject to three interfaces for only one VM? What happened to the other two VMs? What are you trying to accomplish here?
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