Page 1 of 1

how to create more than one vboxnetN

Posted: 22. Apr 2009, 21:41
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

Re: how to create more than one vboxnetN

Posted: 22. Apr 2009, 22:04
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.

Re: how to create more than one vboxnetN

Posted: 23. Apr 2009, 14:43
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.

Re: how to create more than one vboxnetN

Posted: 23. Apr 2009, 21:24
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?