Version 2

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:

Set network interfaces for dhcp

sudo dladm create-etherstub vsw0

sudo dladm create-vnic -l vsw0 int0

set config file interface /etc/hostname.int0

192.168.0.254 netmask 255.255.255.0 broadcast + up

reboot system

Set dhcp for zones

use this guide https://dilos-dev.atlassian.net/wiki/spaces/DS/pages/74961036

Configure zones

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

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

The zone configuration should be considered for the rz 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>

Script for preparing the working environment of a network test

After the script completes, restart the server and start cz, sz, rz zones and start net test.