Appendix A: Install and Configure Spirent Virtual LabServer
Spirent Virtual LabServer (vLS)
Deploying Spirent Virtual LabServer as a Docker Container
The documentation for Docker at
setting up Docker on Linux.
When Docker is installed, follow these steps to get the LabServer container running:
1
2
3
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
2
To completely remove the container and/or the LabServer image from the host:
Use the docker rm and docker rmi commands, respectively.
62
|
Getting Started with Spirent TestCenter
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
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'
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
'SPIRENTD_LICENSE_FILE=@license.site.customer.com' $(docker
images -q registry.oriontest.net/lab
server:latest)
Use the docker stop command to stop the container.
docker stop labserver
Execute the docker run command again with the SPIRENTD_LICENSE_FILE
environment variable set to the new license server host.
docker rm -f labserver
docker rmi -f $(docker images -a -q registry.oriontest.net/
labserver:latest)
https://docs.docker.com/engine
group.
provides instructions for
Need help?
Do you have a question about the TestCenter and is the answer not in the manual?
Questions and answers