[one-users] Using White-port correctly
Sean Abbott
seabbott at akamai.com
Fri May 11 10:08:08 PDT 2012
The hosts connect to each other through a backend network. They're all
on the same switch, and they use a bridge to that backend network to
provide inter-vm connectivity.
So, in the templates below, fullbackend is connected to a bridge that
goes to a private network. natnet0 is connected to virbr0, which does
IP masquerading out to the world via libvirt's default nat with
libvirt's default iptables rules. As I said, all that's working fine.
So regardless of whether opennebula truly SUPPORTS it, it does work. :-)
All I need to go is get one port to forward to one vm and my setup will
work wonderfully.
On 05/11/2012 11:01 AM, Jaime Melis wrote:
> Dear Sean,
>
> OpenNebula does not support Libvirt's NAT-network(192.168.122.0/24).
> You have to create a network environment as described here:
> http://opennebula.org/documentation:rel3.4:plan#networking
>
> How are your hosts connected to each other?
>
> Regards,
> Jaime
>
> On Fri, May 11, 2012 at 4:40 PM, Sean Abbott <seabbott at akamai.com> wrote:
>> Hello,
>>
>> I have a setup intended for selenium grid. I'll have a bunch of
>> machines using the default NAT for internet access and a management
>> network for communication between each other. The template for these
>> VMs is:
>>
>> NIC=[
>> MODEL=virtio,
>> NETWORK="natnet0",
>> NETWORK_UNAME=oneadmin ]
>> NIC=[
>> MODEL=virtio,
>> NETWORK="fullbackend",
>> NETWORK_UNAME=oneadmin ]
>>
>>
>> That's all working. I need one VM to be able to communicate with the
>> outside world on a single port (4444). I've set up template as follows:
>>
>> NIC=[
>> MODEL=virtio,
>> NETWORK="natnet0",
>> NETWORK_UNAME=oneadmin,
>> IP=192.168.122.100,
>> WHITE_PORTS_TCP=4444 ]
>> NIC=[
>> MODEL=virtio,
>> NETWORK="fullbackend",
>> NETWORK_UNAME=oneadmin ]
>>
>> The resulting VM can still use the internet and it can still communicate
>> with the other VMs. I can communicate with it on port 4444 from the
>> host that it's on, but not from outside.
>>
>> Is this what WHITE_PORTS_TCP is intended for? Am I doing something wrong?
>>
>> Thanks!
>>
>> sean
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list