So I would need to see how you are starting your container, but I think you
are not mapping in hugepages. I do need to more work in the area.
Currently, I start containers running VPP with --privileged. SELinunx is
still enabled. For example:
   docker run -it --privileged --device=/dev/hugepages:/dev/hugepages centos

I was able to reproduce what you saw by running:
   docker run -it centos


Once the container was up, ran the following in the container:
   yum install centos-release-fdio
   yum install vpp*

Then ran on host:
   docker exec <container id> /usr/bin/vpp -c /etc/vpp/startup.conf


Billy

On Wed, Aug 15, 2018 at 8:42 AM, <omer.maj...@sofioni.com> wrote:

> VPP is installed only in the container.
>
>
>
> On 2018-08-15 16:50, Billy wrote:
>
> I'll take a look. So is VPP only installed in the container, or is also
> installed on the host?
>
> Billy McFall
>
> On Wed, Aug 15, 2018 at 6:00 AM, <omer.maj...@sofioni.com> wrote:
>
>> Thanks Ed, in centos installing vpp automatically installs
>> vpp-selinux-policy with it. So enforcing selinux on the host machine make
>> vpp work.
>>
>> However, when I try installing VPP in centos container there vpp doesn't
>> start. Can't enforce selinux in container and vpp-selinux-policy is
>> installed with vpp due to dependency. When I run vpp in the container
>>
>> $docker exec <container ID> /usr/bin/vpp -c /etc/vpp/startup.conf
>>
>> I get following errors
>>
>> tls_openssl_init:650: failed to initialize TLS CA chain
>>
>>
>> dpdk_config: mount failed 1
>>
>> Seems like an selinux issue or what? Could I get any help there? :)
>>
>> Best Regards,
>>
>> Omer
>>
>>
>> On 2018-08-13 22:43, Edward Warnicke wrote:
>>
>> We do have an se linux package that should in principle let you keep
>> working with se linux enforce
>> try
>>
>> yum install vpp-selinux-policy
>>
>> and see if that helps :)
>>
>> Ed
>>
>> On August 13, 2018 at 12:41:37 PM, omer.maj...@sofioni.com (
>> omer.maj...@sofioni.com) wrote:
>>
>>
>>
>> Thank Ed.
>>
>> Changed SELINUX=enforcing in /etc/selinux/config
>>
>> Restarted the machine, and it worked.
>>
>> Best Regards,
>>
>> Omer
>>
>>
>>
>> On 2018-08-13 22:21, Edward Warnicke wrote:
>>
>> This feels like SE Linux may be involved...
>>
>> Ed
>>
>>
>>
>> On August 13, 2018 at 12:17:09 PM, omer.maj...@sofioni.com (
>> omer.maj...@sofioni.com) wrote:
>>
>>
>>
>> Hi,
>>
>> I've built VPP on centos 7.5.1804, took the RPM packages to another
>> machine to deploy VPP there.
>>
>> After installing RPM packages there when I run $vppctl it gives me
>> following error.
>>
>> *clib_socket_init: connect (fd 3, '/run/vpp/cli.sock'): No such file or
>> directory*
>>
>>
>> I thought there might be something wrong with the build or something so
>> took packages from following repository
>>
>> http://a.centos.org/centos/7.5.1804/nfv/x86_64/fdio/vpp/vpp-1804/
>>
>> I get the same error when running vppctl after installation. Could
>> someone help with the error?
>>
>> Best Regards,
>>
>> Omer
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#10126): https://lists.fd.io/g/vpp-dev/message/10126
>> Mute This Topic: https://lists.fd.io/mt/24505099/464962
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [hagb...@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#10127): https://lists.fd.io/g/vpp-dev/message/10127
>> Mute This Topic: https://lists.fd.io/mt/24505099/984664
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [
>> omer.maj...@sofioni.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#10129): https://lists.fd.io/g/vpp-dev/message/10129
>> Mute This Topic: https://lists.fd.io/mt/24505099/984664
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [
>> omer.maj...@sofioni.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#10159): https://lists.fd.io/g/vpp-dev/message/10159
>> Mute This Topic: https://lists.fd.io/mt/24532686/675237
>> Group Owner: vpp-dev+ow...@lists.fd.io
>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [bmcf...@redhat.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>
>
> --
> *Billy McFall*
> Networking Group
> CTO Office
> *Red Hat*
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#10160): https://lists.fd.io/g/vpp-dev/message/10160
> Mute This Topic: https://lists.fd.io/mt/24532686/984664
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [omer.maj...@sofioni.com
> ]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>


-- 
*Billy McFall*
Networking Group
CTO Office

*Red Hat*
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10175): https://lists.fd.io/g/vpp-dev/message/10175
Mute This Topic: https://lists.fd.io/mt/24532686/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to