Difference between revisions of "VPP/HostStack/LDP/sshd"
From fd.io
Florin.coras (Talk | contribs) (→Server configuration) |
Florin.coras (Talk | contribs) (→Server configuration) |
||
Line 13: | Line 13: | ||
socksvr { socket-name /tmp/vpp-api.sock} | socksvr { socket-name /tmp/vpp-api.sock} | ||
− | These ensure that vpp starts with gid vpp, the session layer uses memfd segments for event queues and that the binary api can work with a socket transport. | + | These ensure that vpp starts with gid vpp, the session layer uses memfd segments for event queues and that the binary api can work with a socket transport. It is also important that the user that starts vpp is part of the vpp gid. |
+ | |||
+ | VCL's startup file in <code>/etc/vpp/vcl.conf</code> should look like this: | ||
+ | |||
+ | vcl { | ||
+ | heapsize 64M | ||
+ | rx-fifo-size 4000000 | ||
+ | tx-fifo-size 4000000 | ||
+ | api-socket-name /tmp/vpp-api.sock | ||
+ | } |
Revision as of 22:27, 4 December 2018
Example of how to run sshd via LDP and VCL on top of VPP's host stack. This is known to work as of vpp gerrit 16340 with OpenSSH 7.6p1 on Ubuntu 18.04.1.
To run the test two hosts with networking connectivity are needed: - server where vpp and sshd run - client where the ssh client runs on top of the linux host stack
Server configuration
Since this is experimental work, it is recommended to start vpp in debug mode with the following additions to startup.conf:
unix { gid vpp } session { evt_qs_memfd_seg } socksvr { socket-name /tmp/vpp-api.sock}
These ensure that vpp starts with gid vpp, the session layer uses memfd segments for event queues and that the binary api can work with a socket transport. It is also important that the user that starts vpp is part of the vpp gid.
VCL's startup file in /etc/vpp/vcl.conf
should look like this:
vcl { heapsize 64M rx-fifo-size 4000000 tx-fifo-size 4000000 api-socket-name /tmp/vpp-api.sock }