Copy of How to run net tests

Setup VM with:

  • CPU - 4

  • Memory - 8GB

  • Hard disk - 100GB

  • Have to use DEBUG build, where we have debug macro

Create user:

sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest # add password for remote ssh sudo passwd ztest

Add user to sudo:

echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztest

Install packages for net tests:

sudo apt update sudo apt install system-test-nettest testrunner python

Login by user ztest and create zones:

Zones must be created according to the file:
/opt/net-tests/config/ip_forwarding.config
Currently accepted names: cz, sz, rz

Important! Zones must be in the / zones directory

Create dataset:

Configure zones

The zone configuration should be considered for the cz zone, for other zones, the setting is the same:

Install and run zones (example for zone cz):

Install the socat package for every zone:

The zones have not configured net, need to install it from the global zone.

Download it in the global zone:

In the current version, the name of the downloaded file is socat_1.7.3.1-2+deb9u1+dilos2_solaris-i386.deb

Install into the zones (example for zone cz):

Launch tests:

Wait for several minutes and have found full logs at:

/var/tmp/test_results/<ISO TIME>