Appendix A: Install and Configure Spirent Virtual LabServer
Spirent Virtual LabServer (vLS)
62
|
Getting Started with Spirent TestCenter
Deploying Spirent Virtual LabServer as a Docker Container
The documentation for Docker at
https://docs.docker.com/engine
provides instructions for
setting up Docker on Linux.
When Docker is installed, follow these steps to get the LabServer container running:
1
Copy the
labserver-4.97.xxxx.tar.xz
container image to the Linux host in a
temporary location, such as /tmp, then go to that directory and load the image using
the
docker load
command:
xzcat labserver-4.97.xxxx.tar.xz | docker load
Note:
The execution of Docker commands can only be done by user root or by a user
who is a member of the
docker
group.
2
Perform the following command to reserve the ports LabServer uses to communicate
with Spirent TestCenter sessions:
sudo sh -c 'echo "40000-46000" >
/proc/sys/net/ipv4/ip_local_reserved_ports'
3
Start the container by executing the
docker run
command:
Note:
In the
docker run
command below, replace
license.site.customer.com
with
the host name of your license server. The license server is only required if you are
using a virtual chassis. It is optional for physical chassis.
docker run --name labserver -v /data:/data --detach=true --
net=host --log-opt max-size=10m --log-opt max-file=5 -e
'[email protected]' $(docker
images -q registry.oriontest.net/lab
server:latest)
The deployment of the LabServer container is complete. You can connect to the
LabServer from the Session Manager using the IP address or hostname of the Linux host.
To change the license server of a container that is already running:
1
Use the
docker stop
command to stop the container.
docker stop labserver
2
Execute the
docker run
command again with the SPIRENTD_LICENSE_FILE
environment variable set to the new license server host.
To completely remove the container and/or the LabServer image from the host:
Use the
docker rm
and
docker rmi
commands, respectively.
docker rm -f labserver
docker rmi -f $(docker images -a -q registry.oriontest.net/
labserver:latest)
Содержание TestCenter
Страница 10: ...About this Guide How to Contact Us 10 Getting Started with Spirent TestCenter ...
Страница 86: ......