...
Note |
---|
Important! Zones must be placed to the |
You can use the installation script or do the following steps.
First configure and install template zones cz-orig, sz-orig and rz-orig, from which test zones will be created later:
...
Code Block |
---|
ztest@dilos:~# cat > rz.cfg <<EOT create set zonepath=/zones/rz set autoboot=false set ip-type=exclusive add net set physical=int3 set global-nic="vsw0" add property (name="ip",value="dhcp") add property (name="primary",value="true") end commit exit EOT ztest@dilos:~# sudo zonecfg -z rz -f rz.cfg |
...
Install the socat package for every template zone
The zones have not configured net, need to install it from the global zone.
...
Code Block |
---|
sudo apt -y -o Dir=/zones/cz-orig/root update sudo apt -y -o Dir=/zones/cz-orig/root upgrade sudo dpkg -i --root=/zones/cz-orig/root socat_1.7.3.1-2+deb9u1+dilos2_solaris-i386.deb sudo apt -y -o Dir=/zones/sz-orig/root update sudo apt -y -o Dir=/zones/sz-orig/root upgrade sudo dpkg -i --root=/zones/sz-orig/root socat_1.7.3.1-2+deb9u1+dilos2_solaris-i386.deb sudo apt -y -o Dir=/zones/rz-orig/root update sudo apt -y -o Dir=/zones/rz-orig/root upgrade sudo dpkg -i --root=/zones/rz-orig/root socat_1.7.3.1-2+deb9u1+dilos2_solaris-i386.deb sudo reboot |
...
4. Login by user ztest and run tests
Copy the attached stability-test.sh to your test VM. Then check that dhcp zone and server are running after reboot and run tests. To do this you should put the number of cycles in parameters of the test script:
...