[Lxc-users] Alternative network protocols

Daniel Lezcano daniel.lezcano at free.fr
Tue Jul 17 07:50:44 UTC 2012


On 07/17/2012 05:12 AM, Joe Stringer wrote:
> On 17 July 2012 13:59, Stéphane Graber <stgraber at ubuntu.com> wrote:
>> On 07/16/2012 09:24 PM, Joe Stringer wrote:
>>> Hi there,
>>>
>>> I've come across an issue when trying to use SCTP with lxc, and I
>>> wonder if anyone might have some insight into what's causing this.
>>>
>>> My set up has two lxc hosts connected to an instance of Open vSwitch,
>>> vm0 and vm1. When I attempt to use the sctp_test utility that comes
>>> with the debian package lksctp-tools from within either VM, it reports
>>> back that the address family is not supported:-
>>>
>>>
>>> root at vm0:~# sctp_test -H 0 -P 250 -l
>>> local:addr=0.0.0.0, port=250, family=2
>>> seed = 1342081047
>>>
>>> Starting tests...
>>>         socket(SOCK_SEQPACKET, IPPROTO_SCTP)
>>>
>>>                *** socket: failed to create socket:  Address family
>>> not supported by protocol ***
>>>
>>>
>>> The interfaces appear to be set up fine, I can ping from one vm to the
>>> other with no trouble. The host can successfully run the above command
>>> as well.
>>>
>>> Is this because of socket using SOCK_SEQPACKET?
>>>
>>> Cheers,
>>> Joe
>> It's not easy to tell whether it's the case here, but some protocols
>> require extra kernel modules to work properly.
>> On a regular system these modules are loaded dynamically the first time
>> you try to create a socket of that type, but in a container, it
>> typically won't work.
>>
>> If that's the case, check on a regular system what the modules are and
>> load them on your host, then try again from the container.
>>
>> --
>> Stéphane Graber
>> Ubuntu developer
>> http://www.ubuntu.com
>>
>>
> Hi Stéphane,
>
> Thanks for the quick reply. You're right regarding the use of a kernel
> module to support SCTP. I have loaded the 'sctp' module on the host,
> but the container still throws up the same error with sctp_test. I
> tried restarting the containers after loading the module, but this
> doesn't make a difference.
>
> Are there any configuration files I could post that might help to
> identify the cause of this?

Hi Joe,

never mind the kernel version question.

I looked at the kernel source code and the stcp protocol is not modified
to be used with containers AFAICT.

pfff ...

Thanks for reporting this

  -- Daniel






More information about the lxc-users mailing list